/* ===================================
   MAGAZINE EDITORIAL LAYOUT - OPTION D
   Design: Editorial magazine style
   Typography: Playfair Display + Inter
   Color Palette: Black, White, Gold
   =================================== */

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

:root {
    /* Color Palette - New Design (Icy Blue, Slate Gray, White) */
    --color-primary-blue: #4A9FDB;
    --color-primary-blue-dark: #3A8FC9;
    --color-primary-blue-light: #6BB3E3;
    --color-slate: #475569;
    --color-slate-dark: #334155;
    --color-slate-light: #64748b;
    --color-white: #ffffff;
    --color-ice: #F0F9FF;
    --color-snow: #FAFBFC;

    /* Legacy colors for compatibility */
    --color-black: #000000;
    --color-gold: #c9a961;
    --color-gold-dark: #a68944;
    --color-gray-900: #1a1a1a;
    --color-gray-800: #2d2d2d;
    --color-gray-700: #404040;
    --color-gray-600: #666666;
    --color-gray-400: #999999;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;

    /* Typography - Using native system fonts for instant loading */
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-script: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 2px;
    --transition: all 0.3s ease;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.68);
    --glass-bg-heavy: rgba(255, 255, 255, 0.82);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-blur: blur(18px);
    --glass-blur-heavy: blur(24px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.22);
    --glass-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: #1a2332;
    background-image:
        linear-gradient(180deg, rgba(15,20,35,0.75) 0%, rgba(20,30,50,0.6) 30%, rgba(15,25,40,0.7) 60%, rgba(10,15,25,0.85) 100%),
        url('/static/images/mountain-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   HEADER - ELEGANT TOP BAR
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 25, 0.65);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    height: 80px;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
}

.issue-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
}

.header-center {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-script {
    font-family: var(--font-script);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-white);
}

.logo-separator {
    font-size: 1.25rem;
    color: var(--color-gold);
    font-weight: 300;
}

.logo-finder {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-white);
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link-cta {
    color: var(--color-gold);
    font-weight: 600;
}

/* ===================================
   HERO SECTION - FULL BACKGROUND
   =================================== */
.hero {
    margin-top: 80px;
    min-height: 700px;
    position: relative;
    background-image: url('/static/images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: var(--spacing-xl);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta-microcopy {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Visual - Live Card */
.hero-visual {
    position: relative;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-skier-image {
    display: none;
}

/* Live Top Resort Card */
.top-resort-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.8s ease-out 0.5s both;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-resort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: var(--color-gold);
}

.top-resort-card:active {
    transform: translateY(-2px);
}

.resort-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.resort-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-slate-light);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #EF4444;
    letter-spacing: 0.05em;
}

.resort-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-dark);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.resort-card-location {
    font-size: 0.875rem;
    color: var(--color-slate-light);
    margin: 0 0 12px 0;
}

/* Season Status Badge Styles */
.season-status-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 20px 0;
}

.season-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    transition: all 0.2s ease;
}

.season-open {
    background-color: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.season-closed {
    background-color: #6b7280;
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.season-message {
    font-size: 0.8125rem;
    color: var(--color-slate-light);
    line-height: 1.4;
    font-style: italic;
}

.resort-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
}

.resort-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resort-stat .stat-label {
    font-size: 0.75rem;
    color: var(--color-slate-light);
    font-weight: 500;
}

.resort-stat .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-dark);
}

.resort-card-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-blue-dark) 100%);
    border-radius: 8px;
}

.score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
}

.score-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}

/* Resort Card Updated Timestamp */
.resort-card-updated {
    font-size: 0.6875rem;
    color: var(--color-slate-light);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    opacity: 0.7;
}

/* Resort Card Description */
.resort-card-description {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-slate-dark);
    font-weight: 300;
}

/* Resort Card CTA Button */
.resort-card-cta {
    margin-top: 16px;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.resort-card-cta:hover {
    background-color: var(--color-primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 159, 219, 0.3);
}

.resort-card-cta:active {
    transform: translateY(0);
}

.resort-card-cta .btn-arrow {
    transition: transform 0.2s ease;
}

.resort-card-cta:hover .btn-arrow {
    transform: translateX(4px);
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.snowflake {
    position: absolute;
    top: -10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Randomize snowflake positions, sizes, and speeds */
.snowflake:nth-child(1) { left: 2%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 5%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 10%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 15%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 18%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 22%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 0s; }
.snowflake:nth-child(7) { left: 28%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 32%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: 1s; }
.snowflake:nth-child(9) { left: 35%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 0s; }
.snowflake:nth-child(10) { left: 40%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 3s; }
.snowflake:nth-child(11) { left: 43%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(12) { left: 48%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 1.5s; }
.snowflake:nth-child(13) { left: 52%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(14) { left: 55%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 0s; }
.snowflake:nth-child(15) { left: 60%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(16) { left: 63%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(17) { left: 68%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0s; }
.snowflake:nth-child(18) { left: 72%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 3s; }
.snowflake:nth-child(19) { left: 75%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0.5s; }
.snowflake:nth-child(20) { left: 80%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 1.5s; }
.snowflake:nth-child(21) { left: 83%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 2s; }
.snowflake:nth-child(22) { left: 88%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 0s; }
.snowflake:nth-child(23) { left: 92%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 2.5s; }
.snowflake:nth-child(24) { left: 95%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 1s; }
.snowflake:nth-child(25) { left: 98%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(26) { left: 3%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: 3s; }
.snowflake:nth-child(27) { left: 7%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 0.5s; }
.snowflake:nth-child(28) { left: 12%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 1.5s; }
.snowflake:nth-child(29) { left: 17%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(30) { left: 23%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 0s; }
.snowflake:nth-child(31) { left: 27%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 2.5s; }
.snowflake:nth-child(32) { left: 30%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 1s; }
.snowflake:nth-child(33) { left: 37%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: 0s; }
.snowflake:nth-child(34) { left: 42%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 3s; }
.snowflake:nth-child(35) { left: 45%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(36) { left: 50%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 1.5s; }
.snowflake:nth-child(37) { left: 53%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(38) { left: 58%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 0s; }
.snowflake:nth-child(39) { left: 62%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(40) { left: 67%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(41) { left: 70%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 0s; }
.snowflake:nth-child(42) { left: 77%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 3s; }
.snowflake:nth-child(43) { left: 82%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0.5s; }
.snowflake:nth-child(44) { left: 85%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 1.5s; }
.snowflake:nth-child(45) { left: 90%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 2s; }
.snowflake:nth-child(46) { left: 93%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 0s; }
.snowflake:nth-child(47) { left: 97%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 2.5s; }
.snowflake:nth-child(48) { left: 8%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 1s; }
.snowflake:nth-child(49) { left: 25%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(50) { left: 65%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 3s; }

/* ===================================
   SECTIONS - COMMON STYLES
   =================================== */
.section {
    padding: var(--spacing-3xl) 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.section-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.section-intro {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    margin-top: var(--spacing-sm);
}

/* ===================================
   RESORT SPOTLIGHT - GRID
   =================================== */
.resort-spotlight {
    background: transparent;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.spotlight-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.spotlight-card::after {
    content: '→';
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 1.5rem;
    color: var(--color-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--color-gold);
    background: var(--glass-bg-heavy);
}

.spotlight-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.spotlight-card:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.spotlight-card-loading {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

/* Add top spacing when forecast badge is present */
.spotlight-card:has(.forecast-badge) .spotlight-header {
    margin-top: 2rem;
}

.spotlight-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
}

.spotlight-location {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

.spotlight-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
}

.spotlight-conditions {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-gray-200);
}

.condition-item {
    flex: 1;
}

.condition-label {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

.condition-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
}

/* Forecast Badge */
.forecast-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: auto;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    z-index: 10;
    max-width: fit-content;
}

/* Powder Score Color Variants */
.spotlight-card.powder-good {
    border-left: 4px solid #3b82f6; /* Blue for 60-69 */
}

.spotlight-card.powder-good .spotlight-score {
    color: #3b82f6;
}

.spotlight-card.powder-great {
    border-left: 4px solid #f59e0b; /* Orange for 70-79 */
}

.spotlight-card.powder-great .spotlight-score {
    color: #f59e0b;
}

.spotlight-card.powder-epic {
    border-left: 4px solid #ef4444; /* Red for 80+ */
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--glass-bg) 100%);
}

.spotlight-card.powder-epic .spotlight-score {
    color: #ef4444;
}

.spotlight-card.powder-epic::before {
    content: '🔥';
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 1.5rem;
    opacity: 0.6;
}

/* ===================================
   SCIENCE SECTION
   =================================== */
.science-section {
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
}

.science-section .section-title {
    color: var(--color-white);
}

.science-section .section-line {
    background-color: var(--color-gold);
}

.science-section .section-intro {
    color: var(--color-gray-400);
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
}

.science-card {
    padding: var(--spacing-lg);
    border-left: 2px solid var(--color-gold);
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.science-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.science-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.science-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray-400);
    font-weight: 300;
}

/* ===================================
   BY THE NUMBERS - STATS SECTION
   =================================== */
.stats-section {
    background: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.stats-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--color-gold);
}

.stats-card-featured {
    border-left: 3px solid var(--color-gold);
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, var(--glass-bg) 100%);
}

.stats-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.1;
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.stats-detail {
    font-size: 0.8125rem;
    color: var(--color-gray-600);
    font-weight: 300;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: transparent;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: var(--spacing-2xl);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xl);
    font-weight: 300;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    background-color: var(--color-black);
    border: 2px solid var(--color-black);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-cta:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn-cta .btn-arrow {
    font-size: 1.25rem;
    transition: var(--transition);
}

.btn-cta:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===================================
   FOOTER - MINIMAL EDITORIAL
   =================================== */
.footer {
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg) 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.footer-top {
    text-align: center;
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--color-gray-800);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo .logo-script,
.footer-logo .logo-finder {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: var(--spacing-sm);
    font-style: italic;
}

.footer-middle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Newsletter Signup */
.footer-newsletter {
    grid-column: span 1;
}

.newsletter-description {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 10px 14px;
    border: 1px solid var(--color-gray-700);
    background-color: var(--color-gray-900);
    color: var(--color-white);
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    background-color: var(--color-gray-800);
}

.newsletter-input::placeholder {
    color: var(--color-gray-600);
}

.newsletter-button {
    padding: 10px 14px;
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-button:hover {
    background-color: var(--color-primary-blue-dark);
}

.newsletter-button:active {
    transform: scale(0.98);
}

.newsletter-success {
    font-size: 0.875rem;
    color: #10b981;
    margin-top: 0.5rem;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-gray-800);
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-social-link {
    color: var(--color-gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-social-link:hover {
    color: var(--color-gold);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-legal a {
    color: var(--color-gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-gold);
}

.footer-disclaimer {
    font-size: 0.6875rem;
    color: var(--color-gray-600);
    font-style: italic;
    margin-top: var(--spacing-xs);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-disclaimer .disclaimer-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: var(--transition);
    margin-left: var(--spacing-xs);
}

.footer-disclaimer .disclaimer-link:hover {
    color: var(--color-primary-blue-light);
    text-decoration: underline;
}

/* ===================================
   LOADING SHIMMER ANIMATION
   =================================== */
.loading-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-gray-200) 0%,
        var(--color-gray-300) 50%,
        var(--color-gray-200) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-visual {
        height: 500px;
    }

    .top-resort-card {
        width: 280px;
        padding: 20px;
        bottom: 16px;
        right: 16px;
    }

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

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

    .footer-middle {
        grid-template-columns: 1fr;
    }
}

/* Mobile UX Fix: Small phones (<375px) - Issue #275 */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.75rem; /* 28px instead of 36px */
        line-height: 1.2;
    }

    .hero-subheadline {
        font-size: 0.875rem; /* 14px instead of 16px */
    }
}

@media (max-width: 768px) {
    /* Mobile UX Fix: Reduce header height - Issue #275 */
    .header {
        height: 60px; /* Reduced from 80px */
    }

    .hero {
        margin-top: 60px; /* Match reduced header height */
    }

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

    .hero-subheadline {
        font-size: 1rem;
    }

    .hero-visual {
        height: 400px;
    }

    .top-resort-card {
        position: relative;
        width: 100%;
        bottom: auto;
        right: auto;
        margin-top: var(--spacing-lg);
    }

    /* Mobile UX Fix: Change to 2 columns for better readability - Issue #275 */
    .resort-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Mobile UX Fix: Make 3rd stat span full width - Issue #275 */
    .resort-card-stats .resort-stat:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* Mobile UX Fix: Increase button padding for 44px touch targets - Issue #275 */
    .resort-card-cta {
        padding: 14px 20px; /* Increased from 12px to meet WCAG 2.5.5 */
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-md) var(--spacing-md);
    }

    .header-left,
    .header-right {
        display: none;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

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

    .story-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* ===================================
   AUTHENTICATION UI
   =================================== */
.nav-link-auth {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
}

.nav-link-auth:hover {
    border-color: var(--color-gold);
    background: rgba(255,255,255,0.2);
}

.user-avatar-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.user-avatar-button:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.user-initial {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 150px;
    z-index: 1001;
    box-shadow: var(--glass-shadow);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    color: var(--color-gray-900);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(201,169,97,0.15);
    color: var(--color-gold);
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Fade in on load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header entrance animation */
header {
    animation: fadeIn 0.6s ease-out;
}

/* Hero section animations */
.hero-content {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-kicker {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.hero-headline {
    animation: fadeIn 1s ease-out 0.5s both;
}

.hero-tagline {
    animation: slideInRight 0.6s ease-out 0.7s both;
}

/* Hero image entrance animation - Jackson Hole area */
@keyframes heroImageEntrance {
    from {
        opacity: 0;
        transform: scale(1.2) translateX(30px);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
        filter: blur(0);
    }
}

.hero-image-placeholder {
    animation: heroImageEntrance 1.5s ease-out 0.8s both;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.hero-image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Resort card animations */
.resort-card {
    animation: scaleIn 0.5s ease-out both;
    transition: all 0.3s ease;
}

.resort-card:nth-child(1) { animation-delay: 0.1s; }
.resort-card:nth-child(2) { animation-delay: 0.2s; }
.resort-card:nth-child(3) { animation-delay: 0.3s; }
.resort-card:nth-child(4) { animation-delay: 0.4s; }
.resort-card:nth-child(5) { animation-delay: 0.5s; }
.resort-card:nth-child(6) { animation-delay: 0.6s; }

.resort-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Story card hover effects */
.story-card {
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-2px);
}

.story-card:hover .story-title {
    color: var(--color-gold);
}

/* Button animations */
.btn, .nav-link, .nav-link-cta, .nav-link-auth {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before, .nav-link-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before, .nav-link-cta:hover::before {
    left: 100%;
}

/* Stat number count-up effect */
.stat-value {
    transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
    color: var(--color-gold-dark);
    transform: scale(1.05);
}

/* Image lazy load fade */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Scroll-triggered animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation scroll effect */
header.scrolled {
    background: rgba(10, 15, 25, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
}

/* Loading state animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* ===================================
   LOGIN MODAL
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray-200);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-black);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-description {
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    margin: 0 0 var(--spacing-lg) 0;
    text-align: center;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.auth-button-google {
    background: var(--color-white);
    color: var(--color-gray-800);
    border-color: var(--color-gray-300);
}

.auth-button-google:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-button-github {
    background: #24292e;
    color: var(--color-white);
    border-color: #24292e;
}

.auth-button-github:hover {
    background: #1a1e22;
    border-color: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-icon {
    flex-shrink: 0;
}

/* Sign In button styling */
#sign-in-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#sign-in-button:hover {
    transform: scale(1.05);
}

/* Adjust header spacing */
.header-right {
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .auth-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   REFINED BRANDING
   =================================== */
.season-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    opacity: 0.7;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    text-transform: uppercase;
}

/* ===================================
   HERO CTA BUTTONS - NEW DESIGN
   =================================== */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin: 0;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(74, 159, 219, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 159, 219, 0.4);
    background: var(--color-primary-blue-dark);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-white);
    color: var(--color-slate-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   ELEVATED STAT CARDS
   =================================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-gray-200);
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
    border-color: var(--color-gold);
    background: var(--glass-bg-heavy);
}

.stat-icon {
    flex-shrink: 0;
    color: var(--color-gold);
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-gray-600);
    letter-spacing: 0.02em;
}

/* ===================================
   ENHANCED ANIMATIONS & PARALLAX
   =================================== */

/* Parallax scroll effect for hero image */
.hero-image-placeholder {
    transition: transform 0.6s ease-out;
    will-change: transform;
}

/* Staggered fade-in for stat cards */
@keyframes statCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(1) {
    animation: statCardFadeIn 0.6s ease-out 0.2s both;
}

.stat-card:nth-child(2) {
    animation: statCardFadeIn 0.6s ease-out 0.4s both;
}

.stat-card:nth-child(3) {
    animation: statCardFadeIn 0.6s ease-out 0.6s both;
}

/* CTA button entrance */
.hero-cta-group {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* Logo entrance animation */
.logo {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

/* Smooth transitions for interactive elements */
.stat-card,
.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-tagline {
        font-size: 0.5625rem;
    }
    
    .season-badge {
        font-size: 0.625rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Parallax scroll effect via JavaScript */
.hero-image-parallax {
    transform: translateY(var(--parallax-offset, 0));
}

/* ===================================
   ERROR STATES
   =================================== */

/* Top Resort Card Error */
.resort-card-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 300px;
}

.resort-card-error .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.resort-card-error .error-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.resort-card-error .error-message {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
}

.resort-card-error .error-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* General Error State */
.general-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 300px;
}

.general-error-state .error-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.general-error-state .error-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-slate-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.general-error-state .error-message {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    color: var(--color-slate);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.general-error-state .error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Spotlight Grid Error State */
.spotlight-error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--glass-radius);
    border: 1px solid var(--glass-border);
}

.spotlight-error-state .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.spotlight-error-state .error-message {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Error Action Buttons */
.btn-error-retry,
.btn-error-secondary {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-error-retry {
    background: var(--color-primary-blue);
    color: var(--color-white);
}

.btn-error-retry:hover {
    background: var(--color-primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 159, 219, 0.3);
}

.btn-error-secondary {
    background: transparent;
    color: var(--color-slate);
    border: 1px solid var(--color-gray-300);
}

.btn-error-secondary:hover {
    background: var(--color-gray-100);
    border-color: var(--color-slate);
}

.retry-icon {
    font-size: 1.125rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-error-retry:hover .retry-icon {
    transform: rotate(180deg);
}

/* Mobile Responsive Error States */
@media (max-width: 768px) {
    .resort-card-error,
    .general-error-state,
    .spotlight-error-state {
        padding: 2rem 1rem;
    }

    .resort-card-error .error-title,
    .general-error-state .error-title {
        font-size: 1.25rem;
    }

    .resort-card-error .error-message,
    .general-error-state .error-message,
    .spotlight-error-state .error-message {
        font-size: 0.9375rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-error-retry,
    .btn-error-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   MOBILE NAVIGATION MENU
   =================================== */

/* Mobile Menu Button - Hidden by default, shown on mobile */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-button:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.mobile-menu-button:active {
    background: rgba(255,255,255,0.2);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger animation when menu is open */
.mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: 0;
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-gold);
    padding-left: calc(var(--spacing-lg) + 0.5rem);
}

/* Mobile Authentication Section */
.mobile-auth-section {
    padding: var(--spacing-lg);
    border-top: 2px solid var(--color-gray-200);
    margin-top: var(--spacing-md);
}

.mobile-sign-in-button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-primary-blue);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 159, 219, 0.3);
    touch-action: manipulation;
}

.mobile-sign-in-button:hover {
    background: var(--color-primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 159, 219, 0.4);
}

.mobile-sign-in-button:active {
    transform: translateY(0);
}

/* Mobile User Info - When logged in */
.mobile-auth-logged-in {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: 8px;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-initial {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}

.mobile-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.mobile-logout-button {
    width: 100%;
    padding: var(--spacing-md);
    background: transparent;
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logout-button:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

/* Show mobile menu elements only on mobile */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-button {
        display: flex;
    }

    /* Show mobile nav drawer (controlled by JavaScript) */
    /* The drawer is visible (display: block) but positioned off-screen until .active is added */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 60px; /* Mobile UX Fix: Match reduced header height - Issue #275 */
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateX(100%);
        z-index: 999;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    /* Keep header-left and header-right hidden on mobile */
    .header-left,
    .header-right {
        display: none;
    }

    /* Adjust header container for mobile */
    .header-container {
        justify-content: space-between;
        padding: var(--spacing-md);
    }

    /* Center logo on mobile */
    .header-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
