/* =========================================================
   COUNTDOWN.CSS
   HAZLO FACIL TRAVEL
========================================================= */

/* =========================================================
   COUNTDOWN WRAPPER
========================================================= */

.countdown-wrapper {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 24px;

    margin-top: 70px;

    z-index: 5;

}

/* =========================================================
   COUNT BOX
========================================================= */

.count-box {

    position: relative;

    overflow: hidden;

    width: 165px;
    height: 165px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    border-radius:
        var(--radius-lg);

    background:
        rgba(255,255,255,.08);

    border:
        1px solid rgba(255,255,255,.12);

    backdrop-filter:
        blur(22px);

    box-shadow:
        var(--shadow-md);

    transition:
        var(--transition-normal);

    animation:
        countdownPulse 4s ease-in-out infinite;

}

/* =========================================================
   GLOW EFFECT
========================================================= */

.count-box::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.12),
            transparent
        );

    pointer-events: none;

}

.count-box::after {

    content: '';

    position: absolute;

    inset: -2px;

    border-radius:
        inherit;

    border:
        1px solid rgba(90,168,255,.18);

    opacity: 0;

    transition:
        var(--transition-normal);

}

/* =========================================================
   HOVER
========================================================= */

.count-box:hover {

    transform:
        translateY(-8px)
        scale(1.03);

    box-shadow:
        var(--shadow-blue);

}

.count-box:hover::after {

    opacity: 1;

}

/* =========================================================
   NUMBERS
========================================================= */

.count-box span {

    position: relative;

    z-index: 2;

    font-family:
        var(--font-primary);

    font-size: 4rem;

    font-weight:
        var(--fw-black);

    line-height: 1;

    color: #fff;

    text-shadow:
        0 0 18px rgba(255,255,255,.18);

}

/* =========================================================
   LABELS
========================================================= */

.count-box small {

    position: relative;

    z-index: 2;

    margin-top: 14px;

    font-size: .95rem;

    letter-spacing: 2px;

    text-transform: uppercase;

    color:
        rgba(255,255,255,.72);

}

/* =========================================================
   SPECIAL COLORS
========================================================= */

.count-box.days {

    border-color:
        rgba(90,168,255,.18);

}

.count-box.hours {

    border-color:
        rgba(255,47,91,.18);

}

.count-box.minutes {

    border-color:
        rgba(92,23,255,.18);

}

.count-box.seconds {

    border-color:
        rgba(37,211,102,.18);

}

/* =========================================================
   SPECIAL HOVERS
========================================================= */

.count-box.days:hover {

    box-shadow:
        0 0 35px rgba(90,168,255,.35);

}

.count-box.hours:hover {

    box-shadow:
        0 0 35px rgba(255,47,91,.35);

}

.count-box.minutes:hover {

    box-shadow:
        0 0 35px rgba(92,23,255,.35);

}

.count-box.seconds:hover {

    box-shadow:
        0 0 35px rgba(37,211,102,.35);

}

/* =========================================================
   COUNTDOWN TITLE
========================================================= */

.countdown-title {

    text-align: center;

    margin-bottom: 30px;

}

.countdown-title h2 {

    font-family:
        var(--font-primary);

    font-size:
        clamp(
            2rem,
            5vw,
            3.5rem
        );

    font-weight:
        var(--fw-black);

    margin-bottom: 15px;

}

.countdown-title p {

    font-size: 1.15rem;

    color:
        var(--text-light);

}

/* =========================================================
   SEPARATOR DOTS
========================================================= */

.count-separator {

    display: flex;

    flex-direction: column;

    gap: 10px;

}

.count-separator span {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.45);

}

/* =========================================================
   COUNTDOWN SECTION
========================================================= */

.countdown-section {

    position: relative;

    padding:
        80px 0;

}

/* =========================================================
   BACKGROUND EFFECT
========================================================= */

.countdown-bg-glow {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 900px;
    height: 900px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(90,168,255,.12),
            transparent 70%
        );

    filter:
        blur(100px);

    z-index: 0;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:991px){

    .count-box {

        width: 140px;
        height: 140px;

    }

    .count-box span {

        font-size: 3rem;

    }

}

@media(max-width:768px){

    .countdown-wrapper {

        gap: 18px;

    }

    .count-box {

        width: 120px;
        height: 120px;

        border-radius:
            24px;

    }

    .count-box span {

        font-size: 2.4rem;

    }

    .count-box small {

        font-size: .75rem;

    }

}

@media(max-width:576px){

    .countdown-wrapper {

        gap: 12px;

    }

    .count-box {

        width: 95px;
        height: 95px;

        border-radius:
            20px;

    }

    .count-box span {

        font-size: 1.9rem;

    }

    .count-box small {

        font-size: .65rem;

        letter-spacing: 1px;

    }

    .count-separator {

        display: none;

    }

}