/**
 * chrome.css — shared styles for header, footer, and base tokens.
 *
 * All pages load this stylesheet. Page-specific styles remain in each
 * page's own <style> block.
 */

/* ============ RESET & TOKENS ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-coral: #FF6B6B;
    --brand-sunset: #FFB84D;
    --brand-purple: #9B59B6;
    --brand-teal: #4ECDC4;
    --light-bg-primary: #FFFFFF;
    --light-bg-secondary: #F8F9FA;
    --light-text-primary: #1A1A1A;
    --light-text-secondary: #4A4A4A;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--light-text-primary);
    overflow-x: hidden;
}

/* ============ HEADER & NAVIGATION ============ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Righteous', cursive;
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--brand-coral) 0%, var(--brand-purple) 50%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-purple);
}

/* ============ FOOTER ============ */
footer {
    background: var(--light-bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--brand-coral) 0%, var(--brand-purple) 50%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: var(--light-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-purple);
}

.footer-bottom {
    color: var(--light-text-secondary);
    font-size: 0.85rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============ HAMBURGER BUTTON ============ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--light-text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        padding: 0.5rem 0;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}
