/**
 * Offer Countdown Timer - Frontend Styles
 */

.oct-countdown-banner {
    padding: 20px 20px 20px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    animation: oct-fade-in 0.5s ease-in-out;
}

@keyframes oct-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oct-message {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: red;
}

.oct-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.oct-time-unit {
    background: #434343;
    color: #ffffff;
    border-radius: 50%;
    padding: 0;
    width: 80px;
    height: 80px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/*.oct-time-unit:hover {*/
/*    transform: scale(1.05);*/
/*}*/

.oct-time-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.oct-time-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.oct-separator {
    color: #434343;
    font-size: 24px;
    font-weight: bold;
    margin: 0 -2px;
    align-self: center;
}

/* Animation for value changes */
.oct-time-unit.oct-value-changing {
    animation: oct-pulse 0.3s ease;
}

@keyframes oct-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .oct-countdown-banner {
        padding: 15px;
    }

    .oct-message {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .oct-time-unit {
        width: 60px;
        height: 60px;
    }

    .oct-time-value {
        font-size: 18px;
    }

    .oct-time-label {
        font-size: 8px;
    }

    .oct-separator {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .oct-countdown {
        gap: 5px;
    }

    .oct-time-unit {
        width: 50px;
        height: 50px;
    }

    .oct-time-value {
        font-size: 16px;
    }

    .oct-time-label {
        font-size: 7px;
    }

    .oct-separator {
        font-size: 16px;
    }
}

/* Hide banner animation */
.oct-countdown-banner.oct-hidden {
    animation: oct-fade-out 0.5s ease-in-out forwards;
}

@keyframes oct-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        display: none;
    }
}