/* =============================================
   Winterspell Reveals Countdown Timer Styles
   ============================================= */

/* ===== Reveals Hero Section ===== */
.reveals-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 30%, #2d3a5a 50%, #1a2a4a 70%, #0a1628 100%);
    overflow: hidden;
    padding: 120px 20px 60px;
}

.reveals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(100, 150, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(150, 200, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.reveals-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.4);
    pointer-events: none;
}

.reveals-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Winterspell Logo ===== */
.winterspell-logo {
    margin-bottom: 1.5rem;
}

.winterspell-logo-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(150, 200, 255, 0.5));
    animation: logoGlow 3s ease-in-out infinite;
}

.winterspell-title-fallback {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #e8f4ff;
    text-shadow: 0 0 30px rgba(150, 200, 255, 0.5);
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(150, 200, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(180, 220, 255, 0.7));
    }
}

.reveals-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Snowflakes Animation ===== */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: snowfall linear infinite;
    text-shadow: 0 0 10px rgba(200, 230, 255, 0.8);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; font-size: 1rem; }
.snowflake:nth-child(4) { left: 45%; animation-duration: 18s; animation-delay: 1s; font-size: 2rem; }
.snowflake:nth-child(5) { left: 60%; animation-duration: 14s; animation-delay: 3s; font-size: 1.4rem; }
.snowflake:nth-child(6) { left: 75%; animation-duration: 11s; animation-delay: 5s; font-size: 1.6rem; }
.snowflake:nth-child(7) { left: 85%; animation-duration: 16s; animation-delay: 2.5s; font-size: 1.1rem; }
.snowflake:nth-child(8) { left: 95%; animation-duration: 13s; animation-delay: 4.5s; font-size: 1.3rem; }

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Hero Countdown Timer ===== */
.hero-countdown-wrapper {
    margin-top: 2rem;
}

.hero-timer,
.hero-timer-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timer-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 80px;
    text-align: center;
}

.timer-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(150, 200, 255, 0.5);
}

.timer-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.timer-separator {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.25rem;
}

.next-reveal-info {
    margin-bottom: 1.5rem;
}

.next-reveal-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.next-reveal-creator {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(212, 168, 83, 0.5);
}

.hero-countdown-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    font-size: 1.5rem;
    color: var(--secondary);
}

.complete-icon {
    font-size: 3rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* ===== Filters Section ===== */
.filters-section {
    background: var(--bg-darker);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 75px;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.region-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.toggle-past-btn {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-past-btn:hover,
.toggle-past-btn.active {
    background: var(--secondary);
    color: var(--bg-dark);
}

/* ===== Reveals Section ===== */
.reveals-section {
    background: var(--bg-dark);
    padding: 3rem 0;
    min-height: 50vh;
}

.reveals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ===== Reveal Card ===== */
.reveal-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.reveal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 93, 199, 0.2);
    border-color: rgba(124, 93, 199, 0.3);
}

.reveal-card.past {
    opacity: 0.7;
}

.reveal-card.past:hover {
    opacity: 1;
}

.reveal-card.live {
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(231, 76, 60, 0.5);
    }
}

.reveal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal-region {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.reveal-platform {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.reveal-card-body {
    padding: 1.25rem;
}

.reveal-creator {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.reveal-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.reveal-date {
    font-size: 0.9rem;
    color: var(--secondary);
}

.reveal-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reveal-countdown {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(124, 93, 199, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    letter-spacing: 2px;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.revealed {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.live {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: liveFlash 1s ease-in-out infinite;
}

@keyframes liveFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.reveal-card-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.reveal-link:hover {
    color: var(--secondary-dark);
}

.reveal-link .link-arrow {
    transition: transform var(--transition-fast);
}

.reveal-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ===== No Reveals Message ===== */
.no-reveals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.no-reveals p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ===== Back Section ===== */
.back-section {
    background: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--secondary);
}

.back-arrow {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.back-link:hover .back-arrow {
    transform: translateX(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .reveals-hero {
        min-height: 50vh;
        padding: 100px 15px 40px;
    }

    .winterspell-logo-img {
        max-width: 280px;
    }

    .winterspell-title-fallback {
        font-size: 2.5rem;
    }

    .reveals-subtitle {
        font-size: 1rem;
    }

    .timer-block {
        min-width: 60px;
        padding: 0.75rem 1rem;
    }

    .timer-value {
        font-size: 1.75rem;
    }

    .timer-separator {
        font-size: 1.75rem;
    }

    .filters-section {
        top: 65px;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .region-filters {
        justify-content: center;
    }

    .toggle-past-btn {
        align-self: center;
    }

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

    .reveal-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .timer-block {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
    }

    .timer-value {
        font-size: 1.4rem;
    }

    .timer-label {
        font-size: 0.65rem;
    }

    .timer-separator {
        font-size: 1.4rem;
        margin: 0 0.1rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}
