/* ============================================
   Shared Header & Footer Styles
   Copy this into pages that need consistent navigation
   ============================================ */

/* CSS Variables (required) */
:root {
    --twilight-purple: #A46BBD;
    --twilight-dark: #822B99;
    --twilight-darker: #351858;
    --rainbow-blue: #6BABDA;
    --rainbow-cyan: #37B0C9;
    --pinkie-pink: #E880B0;
    --pinkie-hot: #EC058E;
    --fluttershy-yellow: #E9D461;
    --fluttershy-cream: #FAF5AB;
    --rarity-white: #EAEEF0;
    --applejack-orange: #EF6F2F;
    --spike-green: #5FBB4E;
    --text-dark: #2D1F3D;
    --text-medium: #5A4A6A;
    --text-light: #8A7A9A;
    --bg-white: #FFFFFF;
    --bg-cream: #FDF8FF;
    --bg-light: #F8F4FB;
    --shadow-soft: 0 4px 20px rgba(130, 43, 153, 0.08);
    --shadow-medium: 0 8px 40px rgba(130, 43, 153, 0.12);
    --font-display: 'Baloo 2', 'Fredoka', cursive;
    --font-body: 'Quicksand', 'Segoe UI', sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --container-max: 1400px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   Header Styles
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(164, 107, 189, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-soft);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--twilight-purple);
    text-decoration: none;
}

.logo__icon {
    font-size: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-weight: 600;
    color: var(--text-medium);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav__link:hover {
    color: var(--twilight-purple);
    background: rgba(164, 107, 189, 0.1);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--twilight-purple), var(--pinkie-hot));
    color: white;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(236, 5, 142, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(236, 5, 142, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--twilight-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
    background: var(--twilight-darker);
    color: white;
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__link {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer__link:hover {
    color: white;
}

.footer__languages {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.footer__lang {
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__lang:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.footer__lang--active {
    background: var(--pinkie-hot);
    color: white;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social-link:hover {
    background: var(--pinkie-hot);
    transform: translateY(-3px);
}

.footer__bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

.footer__copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer__disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .nav__list {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Menu Active State */
.nav__list.active {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: var(--space-md);
    box-shadow: var(--shadow-medium);
    z-index: 999;
}
