/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* Calendar Section Styling */
.calendar-section {
    padding: 1.5rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calendar-section .features-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.calendar-section p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Adjust calendar container for landing page */
.calendar-section .calendar-container {
    max-width: 100%;
    position: relative;
}

/* Textured background */
body {
    background:
        repeating-linear-gradient(
            45deg,
            #0a0a0a,
            #0a0a0a 10px,
            #0d0d0d 10px,
            #0d0d0d 20px
        ),
        radial-gradient(circle at 20% 50%, rgba(121, 189, 233, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(121, 189, 233, 0.03) 0%, transparent 50%),
        #0a0a0a;
}

/* Hero Section */
.hero {
    min-height: calc(100dvh - 73px - (var(--gallery-slide-height) + 3rem));
    padding: 2rem clamp(1rem, 10vw, 10rem);
    justify-content: center;
    align-content: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
}

.hero-content.has-embed {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    justify-items: start;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.hero-content.has-embed .hero-text {
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 400px) {
    .hero-content {
        gap: 0;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.hero-gradient {
    color: var(--stockton-blue);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

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

.hero-twitch {
    width: 100%;
}

#twitchEmbed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

#twitchEmbed iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1vw, .875rem);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--stockton-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Features Section */
.features {
    padding: 1.5rem 0 1rem 0;

}

.features-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.features-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.features-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--stockton-blue);
    box-shadow: 0 8px 16px rgba(121, 189, 233, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--stockton-blue);
    padding-bottom: min(0.5rem, 10%);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Stats Section */
.stats {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 1300px) {
    .stats {
        max-width: none;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

.stats h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--stockton-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 1rem 2rem;
    margin-bottom: 0;
}

.cta h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
}

/* =========================
   Mobile friendliness
   ========================= */
@media (max-width: 768px) {
    .scroll-arrow {
        font-size: 1.75rem;
    }

    .scroll-indicator {
        bottom: 0.25rem;
    }

    .hero-content.has-embed {
        grid-template-columns: 1fr;
        justify-content: center;
        align-content: center;
    }

    .hero-content.has-embed .hero-text {
        text-align: center;
        align-items: center;
    }

    #twitchContainer {
        display: none !important;
    }
}