/**
 * Babay Shared Styles
 * Common CSS variables and base styles for all Babay pages
 * Include: <link rel="stylesheet" href="/babay-common.css">
 */

:root {
    /* Light theme - Babay pink/soft colors */
    --bg-primary: #fffbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fdf2f5;
    --bg-elevated: #ffffff;
    --bg-cloud: #ffffff;
    --text-primary: #4a4458;
    --text-secondary: #7a7589;
    --text-muted: #a9a4b4;
    --accent: #e8a4b8;
    --accent-soft: #f5c4d4;
    --accent-dim: rgba(232, 164, 184, 0.15);
    --accent-hover: #d88a9f;
    --border: #f0e8ec;
    --border-light: #fdf2f5;
    --lavender: #c4b5fd;
    --mint: #a7f3d0;
    --peach: #fed7aa;
    --sky: #bae6fd;
    --success: #b8e8d4;
    --warning: #f5d5a8;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(232, 164, 184, 0.1);
    --shadow-md: 0 4px 12px rgba(232, 164, 184, 0.15);
    --shadow-lg: 0 8px 24px rgba(232, 164, 184, 0.2);
}

[data-theme="dark"] {
    --bg-primary: #1a1518;
    --bg-secondary: #252023;
    --bg-tertiary: #3d2a32;
    --bg-elevated: #2d2528;
    --bg-cloud: #2d2528;
    --text-primary: #f5f0f2;
    --text-secondary: #c9c4ce;
    --text-muted: #8a8590;
    --accent: #e8a4b8;
    --accent-soft: #4a3040;
    --accent-dim: rgba(232, 164, 184, 0.2);
    --accent-hover: #d88a9f;
    --border: #3d353a;
    --border-light: #2d2528;
    --success: #b8e8d4;
    --warning: #f5d5a8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Floating clouds background */
.clouds-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: linear-gradient(180deg, #fff 0%, #f0eeff 100%);
    border-radius: 100px;
    opacity: 0.4;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 10%;
    left: -5%;
    animation: float-cloud 30s ease-in-out infinite;
}
.cloud-1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud-1::after { width: 60px; height: 60px; top: -30px; left: 90px; }

.cloud-2 {
    width: 150px;
    height: 45px;
    top: 40%;
    right: -3%;
    animation: float-cloud 25s ease-in-out infinite reverse;
}
.cloud-2::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-2::after { width: 45px; height: 45px; top: -20px; left: 70px; }

.cloud-3 {
    width: 180px;
    height: 50px;
    top: 70%;
    left: -8%;
    animation: float-cloud 35s ease-in-out infinite;
}
.cloud-3::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.cloud-3::after { width: 50px; height: 50px; top: -25px; left: 85px; }

[data-theme="dark"] .cloud {
    background: linear-gradient(180deg, #2a2438 0%, #231e2e 100%);
    opacity: 0.3;
}

@keyframes float-cloud {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* Common button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    text-decoration: none;
}

/* Common card styles */
.card {
    background: var(--bg-cloud);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
