/* ═══════════════════════════════════════════════════════════════
   PREMIUM COUNTDOWN TIMER - Elaborate & Eye-Catching Design
   Horizontal layout with gradients, glows, and animations
   ═══════════════════════════════════════════════════════════════ */

.premium-timer-wrapper {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.15) 0%, rgba(13, 27, 42, 0.95) 100%);
    border: 2px solid #D4A017;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Animated background gradient */
.premium-timer-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   TIMER HEADER
   ═══════════════════════════════════════════════════════════════ */

.timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.timer-icon {
    font-size: 1.5rem;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.timer-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: glow-text 2s ease-in-out infinite;
}

@keyframes glow-text {

    0%,
    100% {
        text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
        opacity: 1;
    }

    50% {
        text-shadow: 0 2px 16px rgba(255, 215, 0, 0.8), 0 0 24px rgba(255, 215, 0, 0.6);
        opacity: 0.9;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MAIN TIMER CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.countdown-timer-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TIMER BLOCKS
   ═══════════════════════════════════════════════════════════════ */

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-digit-wrapper {
    background: linear-gradient(145deg, rgba(27, 38, 59, 0.9), rgba(13, 27, 42, 0.95));
    border: 2px solid rgba(212, 160, 23, 0.6);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 90px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        0 0 20px rgba(212, 160, 23, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timer-digit-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.timer-digit-wrapper:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 23, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(212, 160, 23, 0.4);
}

.timer-digit {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-heading), 'Arial Black', sans-serif;
    color: #FFD700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(212, 160, 23, 0.3);
    background: linear-gradient(180deg, #FFD700 0%, #D4A017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.timer-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 215, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════
   TIMER SEPARATOR
   ═══════════════════════════════════════════════════════════════ */

.timer-colon {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4A017;
    text-shadow: 0 0 15px rgba(212, 160, 23, 0.6);
    animation: blink-colon 1s ease-in-out infinite;
    margin: 0 -5px;
    padding-bottom: 30px;
}

@keyframes blink-colon {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.3;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TIMER FOOTER
   ═══════════════════════════════════════════════════════════════ */

.timer-footer {
    text-align: center;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.timer-warning {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
        transform: scale(1.02);
    }
}

/* ═══════════════════════════════════════════════════════════════
   URGENT STATE (< 5 minutes)
   ═══════════════════════════════════════════════════════════════ */

.countdown-timer-premium.urgent .timer-digit-wrapper {
    border-color: #FF4444;
    background: linear-gradient(145deg, rgba(42, 13, 13, 0.9), rgba(60, 20, 20, 0.95));
    animation: shake 0.5s ease-in-out infinite;
}

.countdown-timer-premium.urgent .timer-digit {
    color: #FF4444;
    background: linear-gradient(180deg, #FF6B6B 0%, #FF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 68, 68, 0.6),
        0 0 40px rgba(255, 68, 68, 0.4);
}

.countdown-timer-premium.urgent .timer-text {
    color: rgba(255, 107, 107, 0.9);
}

.countdown-timer-premium.urgent .timer-colon {
    color: #FF4444;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .premium-timer-wrapper {
        padding: 20px 16px;
    }

    .timer-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .timer-icon {
        font-size: 1.2rem;
    }

    .countdown-timer-premium {
        gap: 12px;
        padding: 16px 8px;
    }

    .timer-digit-wrapper {
        padding: 12px 18px;
        min-width: 70px;
    }

    .timer-digit {
        font-size: 2.2rem;
    }

    .timer-text {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .timer-colon {
        font-size: 2rem;
        padding-bottom: 24px;
    }

    .timer-warning {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

@media (max-width: 360px) {
    .countdown-timer-premium {
        gap: 8px;
    }

    .timer-digit-wrapper {
        padding: 10px 14px;
        min-width: 60px;
    }

    .timer-digit {
        font-size: 1.8rem;
    }

    .timer-colon {
        font-size: 1.6rem;
    }
}