/* Santa Tracker Landing Page - Game Menu Style */

/* Import Google Fonts - Fredoka (Chunky, Toy-like) + Nunito (Readable) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

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

:root {
    /* Cozy North Pole Night palette */
    --christmas-red: #dc2626;
    --christmas-dark-red: #991b1b;
    --christmas-crimson: #7f1d1d;
    --christmas-green: #166534;
    --pine-green: #166534;
    --holly-green: #15803d;
    --christmas-gold: #fbbf24;
    --warm-white: #f8fafc;
    --snow-white: #fffafa;
    --ice-blue: #60a5fa;

    /* Night sky gradient */
    --night-deep: #0f172a;
    --night-mid: #1e1b4b;
    --night-blue: #0a1929;

    /* Fonts - Fredoka for headings (Chunky/Toy-like), Nunito for body */
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at center, var(--night-mid) 0%, var(--night-deep) 70%);
    color: var(--warm-white);
    min-height: 100vh;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Glass Pill Navigation - Fixed Top Center */
.glass-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: var(--warm-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    background: rgb(255 255 255 / 15%);
}

.nav-link-active {
    background: rgb(255 255 255 / 20%);
}

/* Snowfall Animation */
#snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10vh;
    color: white;
    font-size: 1.5em;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(100px) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes snowfall-left {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(-100px) rotate(-360deg);
        opacity: 0.5;
    }
}

/* Hero Section - Full Screen Game Menu */
.hero {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: fade-in-up 1s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Santa */
.hero-santa {
    margin-bottom: 1.5rem;
}

.emoji-large {
    font-size: 6rem;
    display: inline-block;
    line-height: 1;
}

.santa-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Hero Title - Fredoka Chunky Font */
.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 4px 4px 8px rgb(0 0 0 / 50%);
    line-height: 1.1;
    text-align: center;
}

.text-red {
    color: var(--christmas-red);
}

.text-green {
    color: var(--holly-green);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--warm-white);
    opacity: 0.9;
    text-align: center;
}

/* Countdown Box - Glass Panel with Gold Border */
.countdown-box {
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 1.5rem 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
    border: 2px solid var(--christmas-gold);
    text-align: center;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
    }

    50% {
        box-shadow: 0 8px 32px rgb(0 0 0 / 30%), 0 0 30px rgb(251 191 36 / 30%);
    }
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--warm-white);
    opacity: 0.9;
}

.countdown-display {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--christmas-gold);
    text-shadow: 0 0 20px rgb(251 191 36 / 50%);
}

/* CTA Button Dock - Big Chunky Pill Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, var(--christmas-red), var(--christmas-dark-red));
    color: var(--warm-white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0 2.5rem;
    height: 4rem;
    min-width: 200px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--christmas-crimson), 0 8px 20px rgb(0 0 0 / 40%);
    transition: all 0.15s ease;
    border: none;
    position: relative;
}

.cta-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0;
}

.cta-button-advent {
    background: linear-gradient(to bottom, var(--pine-green), #14532d);
    box-shadow: 0 6px 0 #052e16, 0 8px 20px rgb(0 0 0 / 40%);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--christmas-crimson), 0 12px 30px rgb(0 0 0 / 50%);
}

.cta-button-advent:hover {
    box-shadow: 0 8px 0 #052e16, 0 12px 30px rgb(0 0 0 / 50%);
}

.cta-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--christmas-crimson), 0 4px 10px rgb(0 0 0 / 30%);
}

.cta-button-advent:active {
    box-shadow: 0 2px 0 #052e16, 0 4px 10px rgb(0 0 0 / 30%);
}

/* Stats Ticker - Fixed Bottom HUD Bar */
.stats-ticker {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgb(255 255 255 / 10%);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-white);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--christmas-gold);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Hide old features section */
.features {
    display: none;
}

/* Hide Decorative Elements on Game Menu */
.decoration {
    display: none;
}

/* Hide Footer on Game Menu - full screen experience */
.footer {
    display: none;
}

/* Responsive Design */
@media (width <= 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .countdown-display {
        font-size: 2.5rem;
    }

    .countdown-box {
        padding: 1rem 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
        height: 3.5rem;
        min-width: 160px;
        padding: 0 1.5rem;
    }

    .stats-ticker {
        bottom: 1.5rem;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .stat-label {
        display: none;
    }

    .glass-nav {
        top: 1rem;
        padding: 0.25rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .snowflake {
        display: none;
    }
}

/* Focus Styles */
*:focus {
    outline: 3px solid var(--christmas-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #snowfall,
    .decoration {
        display: none;
    }
}