/* CSS Variables - Aurora & Maple Color Palette */
:root {
    --aurora-teal: #4ECDC4;
    --aurora-coral: #FF6B6B;
    --aurora-mint: #95E1D3;
    --aurora-deep: #2C7873;
    --maple-gold: #D4A574;
    --maple-amber: #E8925C;
    --maple-brown: #8B4513;
    --forest-green: #2D5F3F;
    --night-sky: #1a1a2e;
    --twilight: #16213e;
    --snow-white: #F8F9FA;
    --frost: #E8F4F8;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--twilight);
    background: var(--snow-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aurora-deep);
    transition: var(--transition);
}

.logo-icon {
    font-size: 2rem;
    animation: gentle-spin 20s linear infinite;
}

@keyframes gentle-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--twilight);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aurora-teal);
    transition: var(--transition);
}

.nav-menu a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-deep));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--aurora-deep);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--frost) 0%, var(--snow-white) 50%, var(--aurora-mint) 100%);
    z-index: -1;
}

.aurora-light {
    position: absolute;
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(78, 205, 196, 0.3) 25%,
        rgba(255, 107, 107, 0.3) 50%,
        rgba(149, 225, 211, 0.3) 75%,
        transparent 100%);
    filter: blur(60px);
    animation: aurora-wave 15s ease-in-out infinite;
    top: 20%;
}

.aurora-light-2 {
    animation: aurora-wave-2 20s ease-in-out infinite;
    top: 60%;
    opacity: 0.5;
}

@keyframes aurora-wave {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(50%) scaleY(1.5); }
}

@keyframes aurora-wave-2 {
    0%, 100% { transform: translateX(50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.5); }
}

.maple-leaves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.leaf {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: fall-leaf 15s linear infinite;
}

.leaf::before {
    content: '🍁';
}

.leaf:nth-child(1) { left: 10%; animation-delay: 0s; }
.leaf:nth-child(2) { left: 30%; animation-delay: 3s; font-size: 2rem; }
.leaf:nth-child(3) { left: 50%; animation-delay: 6s; }
.leaf:nth-child(4) { left: 70%; animation-delay: 9s; font-size: 2.5rem; }
.leaf:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes fall-leaf {
    0% {
        top: -10%;
        transform: rotate(0deg);
    }
    100% {
        top: 110%;
        transform: rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--aurora-deep);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fade-slide-up 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--forest-green);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fade-slide-up 1s ease-out 0.2s backwards;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fade-slide-up 1s ease-out 0.4s backwards;
}

.hero-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--maple-brown);
    font-size: 0.9rem;
    animation: fade-slide-up 1s ease-out 0.6s backwards;
}

.icon-18 {
    background: var(--maple-amber);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-deep));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--maple-amber), var(--maple-gold));
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--aurora-deep);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--aurora-teal);
}

.btn-outline:hover {
    background: var(--aurora-teal);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--aurora-deep);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--forest-green);
}

/* Games Section */
.games-section {
    padding: 5rem 0;
    background: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--aurora-teal);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce-soft 3s ease-in-out infinite;
}

.game-card:nth-child(2) .game-icon {
    animation-delay: 1s;
}

.game-card:nth-child(3) .game-icon {
    animation-delay: 2s;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-card h3 {
    font-size: 1.8rem;
    color: var(--aurora-deep);
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--frost) 0%, white 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--aurora-deep);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--forest-green);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-deep));
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: var(--aurora-deep);
}

.cta-section .btn-primary:hover {
    background: var(--snow-white);
}

/* Footer */
.footer {
    background: var(--twilight);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--aurora-mint);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--aurora-teal);
    padding-left: 5px;
}

.footer-disclaimer {
    margin: 2rem 0;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--aurora-coral);
    padding: 1.5rem;
    border-radius: 10px;
}

.disclaimer-box h4 {
    color: var(--aurora-coral);
    margin-bottom: 0.5rem;
}

.disclaimer-box p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.support-links {
    margin-top: 1rem;
}

.support-links p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.support-links a {
    display: inline-block;
    color: var(--aurora-mint);
    text-decoration: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.support-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-xl);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-modal-content {
    text-align: center;
}

.age-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-modal-content h2 {
    color: var(--aurora-deep);
    margin-bottom: 1rem;
}

.age-modal-content p {
    color: var(--forest-green);
    margin-bottom: 1rem;
}

.age-disclaimer {
    background: var(--frost);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.age-checkbox-wrapper {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--twilight);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--aurora-mint);
}

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-deep));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.page-content h2 {
    color: var(--aurora-deep);
    margin: 2rem 0 1rem;
    font-size: 2rem;
}

.page-content h3 {
    color: var(--forest-green);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Game Pages */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--aurora-deep);
    margin-bottom: 0.5rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-label {
    color: var(--forest-green);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    color: var(--aurora-deep);
    font-size: 1.8rem;
    font-weight: 700;
}

.game-board {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .games-grid, .features-grid {
        grid-template-columns: 1fr;
    }

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

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}