/* ========================================
   COUNTDOWN TIMER - OFERTA COM URGÊNCIA
   Timer regressivo de 60 minutos
   ======================================== */

/* ========================================
   ⏱️ SEÇÃO DO COUNTDOWN
   ======================================== */

.countdown-section {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Alerta de Expiração */
.countdown-alert {
    background: #fff;
    color: #ff4b2b;
    font-size: 24px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse-alert 2s infinite;
    font-family: 'Nunito Sans', sans-serif;
}

@keyframes pulse-alert {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Timer Display */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.timer-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px 35px;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
}

.timer-number {
    font-size: 56px;
    font-weight: 800;
    color: #ff4b2b;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Nunito Sans', sans-serif;
}

.timer-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Nunito Sans', sans-serif;
}

/* Separador : */
.timer-separator {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    align-self: center;
    margin: 0 -10px;
}

/* Texto Principal */
.countdown-text {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito Sans', sans-serif;
}

/* Animação de urgência quando o tempo está acabando */
.countdown-urgent .timer-number {
    color: #c0392b;
    animation: blink 1s infinite;
}

.countdown-urgent .countdown-alert {
    animation: shake 0.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* ========================================
   📱 RESPONSIVIDADE COMPLETA
   Mobile S: 320px - 374px
   Mobile M: 375px - 424px
   Mobile L: 425px - 767px
   Tablet: 768px - 1023px
   Desktop: 1024px+
   ======================================== */

/* Tablet (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .countdown-section {
        padding: 45px 20px;
    }

    .countdown-alert {
        font-size: 22px;
        padding: 14px 30px;
        margin-bottom: 25px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .timer-box {
        padding: 25px 30px;
        min-width: 130px;
    }

    .timer-number {
        font-size: 50px;
    }

    .timer-label {
        font-size: 15px;
    }

    .timer-separator {
        font-size: 42px;
    }

    .countdown-text {
        font-size: 24px;
        margin-top: 25px;
    }
}

/* Mobile L (425px - 767px) */
@media screen and (max-width: 767px) {
    .countdown-section {
        padding: 35px 20px;
    }

    .countdown-alert {
        font-size: 20px;
        padding: 12px 25px;
        margin-bottom: 20px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .timer-box {
        padding: 20px 25px;
        min-width: 110px;
    }

    .timer-number {
        font-size: 42px;
    }

    .timer-label {
        font-size: 14px;
    }

    .timer-separator {
        font-size: 36px;
    }

    .countdown-text {
        font-size: 22px;
        margin-top: 20px;
    }
}

/* Mobile M (375px - 424px) */
@media screen and (max-width: 424px) {
    .countdown-section {
        padding: 30px 15px;
    }

    .countdown-alert {
        font-size: 18px;
        padding: 10px 20px;
        margin-bottom: 18px;
        border-radius: 8px;
    }

    .countdown-timer {
        gap: 8px;
        flex-wrap: wrap;
    }

    .timer-box {
        padding: 15px 20px;
        min-width: 90px;
    }

    .timer-number {
        font-size: 36px;
    }

    .timer-label {
        font-size: 12px;
    }

    .timer-separator {
        font-size: 30px;
        margin: 0 -5px;
    }

    .countdown-text {
        font-size: 18px;
        margin-top: 15px;
        padding: 0 10px;
    }
}

/* Mobile S (320px - 374px) */
@media screen and (max-width: 374px) {
    .countdown-section {
        padding: 25px 10px;
    }

    .countdown-alert {
        font-size: 16px;
        padding: 8px 15px;
        margin-bottom: 15px;
        border-radius: 6px;
    }

    .countdown-timer {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .timer-box {
        padding: 12px 15px;
        min-width: 75px;
        border-radius: 10px;
    }

    .timer-number {
        font-size: 30px;
    }

    .timer-label {
        font-size: 11px;
    }

    .timer-separator {
        font-size: 26px;
        margin: 0 -5px;
    }

    .countdown-text {
        font-size: 16px;
        margin-top: 12px;
        padding: 0 8px;
        line-height: 1.4;
    }
}

/* ========================================
   🎨 ESTADOS DO TIMER
   ======================================== */

/* Timer normal (>10 minutos) */
.countdown-normal .timer-box {
    background: rgba(255, 255, 255, 0.95);
}

.countdown-normal .timer-number {
    color: #ff4b2b;
}

/* Timer urgente (<10 minutos) */
.countdown-urgent .timer-box {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.5);
}

/* Timer expirado */
.countdown-expired .countdown-section {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.countdown-expired .timer-number {
    color: #7f8c8d;
}

.countdown-expired .countdown-alert {
    background: #ecf0f1;
    color: #7f8c8d;
}
