/**
 * Fichier  : /ott/item/assets/css/live/countdown.css
 * Fonction : style du compte à rebours
 */


/* ==================================================
   COUNTDOWN
================================================== */

#countdown {
    position: relative;
    overflow: hidden;
}

#countdown {
    width: 100%;
    height: fit-content;
}

#countdown {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 14px 40px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
}


/* ==================================================
   CONTENT
================================================== */

#countdown .inner {
    position: absolute;
    inset: 0;
    z-index: 2;
}

#countdown .inner {
    padding: 32px;
}

#countdown .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#countdown .inner {
    text-align: center;
}


/* ==================================================
   TIME GRID
================================================== */

#countdown .time {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}


/* ==================================================
   COUNTDOWN ITEM
================================================== */

#countdown .countdown-item {
    min-width: 86px;
    padding: 16px 12px;
}

#countdown .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

#countdown .countdown-item {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.035)
        );
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

#countdown .countdown-item {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 10px 30px rgba(0,0,0,0.28);
}

#countdown .countdown-item {
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* ==================================================
   HOVER
================================================== */

#countdown .countdown-item:hover {
    transform: translateY(-2px);
}

#countdown .countdown-item:hover {
    border-color: rgba(255,120,0,0.22);
}

#countdown .countdown-item:hover {
    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        0 0 20px rgba(255,120,0,0.10);
}


/* ==================================================
   ITEM VALUE
================================================== */

#countdown .countdown-item strong {
    display: block;
}

#countdown .countdown-item strong {
    font-family: 'bold-font';
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}


/* ==================================================
   ITEM LABEL
================================================== */

#countdown .countdown-item small {
    display: block;
}

#countdown .countdown-item small {
    font-family: 'content-font';
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}


/* ==================================================
   ACTIVE ACCENT
================================================== */

#countdown .countdown-item:first-child {
    background:
        linear-gradient(
            135deg,
            rgba(142,14,0,0.92),
            rgba(233,64,27,0.82) 60%,
            rgba(255,123,0,0.78)
        );
    border-color: rgba(255,255,255,0.16);
}

#countdown .countdown-item:first-child {
    box-shadow:
        0 8px 24px rgba(233,64,27,0.35),
        0 0 18px rgba(255,123,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

#countdown .countdown-item:first-child small {
    color: rgba(255,255,255,0.86);
}


/* ==================================================
   UPDATE MESSAGE
================================================== */

#countdown .update {
    max-width: 560px;
}

#countdown .update {
    padding: 10px 14px;
}

#countdown .update {
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

#countdown .update p {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255,255,255,0.76);
}


/* ==================================================
   BACKGROUND
================================================== */

#countdown .background {
    position: relative;
    z-index: 1;
}

#countdown .background::before,
#countdown .background::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#countdown .background::before {
    z-index: 1;
}

#countdown .background::before {
    background:
        radial-gradient(
            circle at center,
            rgba(255,120,0,0.12),
            transparent 45%
        );
}

#countdown .background::after {
    z-index: 2;
}

#countdown .background::after {
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.50),
            rgba(0,0,0,0.78)
        );
}

#countdown .background img {
    display: block;
}

#countdown .background img {
    width: 100%;
    height: auto;
    min-height: 260px;
}

#countdown .background img {
    object-fit: contain;
}

#countdown .background img {
    filter: brightness(.72) saturate(1.08);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1024px) {

    #countdown .inner {
        padding: 26px;
        gap: 16px;
    }

    #countdown .countdown-item {
        min-width: 74px;
        padding: 14px 10px;
    }

    #countdown .countdown-item strong {
        font-size: 32px;
    }

}

@media screen and (max-width: 768px) {

    #countdown {
        border-radius: 14px;
    }

    #countdown .inner {
        padding: 20px;
        gap: 14px;
    }

    #countdown .time {
        gap: 8px;
    }

    #countdown .countdown-item {
        min-width: 64px;
        padding: 12px 8px;
        border-radius: 12px;
    }

    #countdown .countdown-item strong {
        font-size: 26px;
    }

    #countdown .countdown-item small {
        font-size: 9px;
        letter-spacing: .5px;
    }

    #countdown .update {
        max-width: 90%;
        padding: 9px 12px;
        border-radius: 12px;
    }

    #countdown .update p {
        font-size: 11px;
        line-height: 1.45;
    }

}

@media screen and (max-width: 480px) {

    #countdown .inner {
        padding: 14px;
        gap: 10px;
    }

    #countdown .time {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    #countdown .countdown-item {
        min-width: 0;
        padding: 10px 5px;
    }

    #countdown .countdown-item strong {
        font-size: 22px;
    }

    #countdown .countdown-item small {
        margin-top: 2px;
        font-size: 8px;
    }

    #countdown .update {
        padding: 8px 10px;
    }

    #countdown .background img {
        min-height: 190px;
    }

}

@media screen and (max-width: 360px) {

    #countdown .time {
        grid-template-columns: repeat(2, 1fr);
    }

    #countdown .countdown-item strong {
        font-size: 24px;
    }

}