/**
 * Styles pour le module WGL Timer Offre
 * Chemin: /modules/wgl_timeroffre/views/css/front.css
 */

.wgl-timer-container {
    padding: 15px;
    margin: 10px 0;
    /*text-align: center;*/
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;*/
    position: relative;
    overflow: hidden;
    width: 60%;
}

@keyframes wgl-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.wgl-timer-header {
    margin-bottom: 10px;
}

.wgl-timer-title {
    color: #1d202d;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px #fff;
}

.wgl-countdown {
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.wgl_countdown {
    display: flex;
    gap: 10px;
    background: linear-gradient(135deg, #bfd400  0%, #bfd400  100%);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #0d1234;
    width: 230px;
    justify-content: center;
}

.wgl_countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: wgl-shimmer 3s infinite;
}

.wgl_countdown div {
    display: flex;
    align-items: baseline;
}

.wgl_countdown .label {
    margin-left: 5px;
    font-size: 0.6em;
}

.title_countdown{
    font-weight: 700;
    color: #1d202d;
    text-transform: uppercase;
}

.countdown_container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wgl_sablier img {
    width: 24px;
    height: 39px;
}


@media (max-width: 1430px) {
    .wgl-timer-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wgl-timer-container {
        width: 100%;
    }
    
    .wgl-timer-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .wgl-countdown {
        gap: 5px;
    }
}

.wgl-timer-container {
    animation: wgl-slideInUp 0.6s ease-out;
}

.wgl-countdown-update {
    animation: wgl-pulse 0.3s ease;
}

@keyframes wgl-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #e74c3c; }
    100% { transform: scale(1); }
}


.wgl-countdown-urgent .wgl_countdown{
    animation: wgl-urgent-pulse 1s infinite;
}

.wgl-countdown-urgent .wgl_countdown {
    background: rgba(243, 156, 18, 0.1);
    border: 2px solid #f39c12;
}

@keyframes wgl-urgent-pulse {
    0%, 100% { box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 5px 10px rgba(243, 156, 18, 0.4); }
}


.wgl-countdown-critical .wgl_countdown{
    animation: wgl-critical-flash 0.5s infinite;
}

.wgl-countdown-critical .wgl_countdown {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
}


@keyframes wgl-critical-flash {
    0%, 100% { 
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 5px 10px rgba(231, 76, 60, 0.6);
        transform: scale(1.02);
    }
}

#category .wgl-timer-container,
#module-ambjolisearch-jolisearch .wgl-timer-container{
    padding: 0;
    margin: 5px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#category .wgl_countdown,
#module-ambjolisearch-jolisearch .wgl_countdown{
    padding: 5px;
    font-size: 12px;
}

#category .wgl-countdown,
#module-ambjolisearch-jolisearch .wgl-countdown{
    justify-content: center;
}
