﻿/*====================================================================
  COUNTDOWN SECTION – Beautiful, Responsive, Dark-Mode, Chess-Themed
====================================================================*/

/* Overall Section */
.countdown-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--background-color), var(--accent-color) 10%) 100%);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

    /* Watercolor Blobs (Subtle Theme-Aware Background) */
    .countdown-section::before,
    .countdown-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        z-index: 0;
        background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 90%) 0%, transparent 70%);
    }

    .countdown-section::before {
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
    }

    .countdown-section::after {
        bottom: -80px;
        left: -80px;
        width: 300px;
        height: 300px;
    }

/* Title */
.countdown-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timer Blocks – Enhanced Your Existing Styles */
.countdown-timer {
    text-align: center;
    margin: 0.75rem;
    min-width: 90px;
    padding: 1.25rem 0.75rem;
    background: color-mix(in srgb, var(--surface-color), transparent 88%); /* Softer than your 0.12 opacity */
    border-radius: 12px;
    border-top: 6px solid var(--accent-color); /* Changed red to theme color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .countdown-timer:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .countdown-timer h3 {
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: var(--heading-color);
    }

    .countdown-timer h4 {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--default-color);
    }

/* Subtitle */
.countdown-subtitle {
    font-size: 1.1rem;
    color: var(--default-color);
    opacity: 0.85;
}

/* Responsive Tweaks – Enhanced Your Media Query */
@media (max-width: 575px) {
    .countdown-timer {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
        margin: 0.5rem;
    }

        .countdown-timer h3 {
            font-size: 1.75rem;
        }

        .countdown-timer h4 {
            font-size: 0.85rem;
        }

    .countdown-title {
        font-size: 2rem;
    }
}

/* Chess-Themed Animation (Subtle Bounce for Timers) */
@keyframes chess-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.countdown-timer {
    animation: chess-bounce 2s ease-in-out infinite;
    animation-delay: calc(0.2s * var(--timer-index)); /* Stagger for each timer */
}
