/* Load Share Tech Mono from /assets/fonts/ (one folder up from /assets/css/) */
@font-face {
    font-family: 'Share Tech Mono';
    src: url('../fonts/share-tech-mono-v16-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Main Background Container */
.countdown-banner {
    display: block;
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 12 / 7;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
    container-type: inline-size;
    text-decoration: none;
}

/* Clickable Link States */
.countdown-banner-link {
    cursor: pointer;
}

.countdown-banner-link:hover,
.countdown-banner-link:focus {
    text-decoration: none;
}

/* Ticker Overlay Box - Proportional to 720x420 */
.countdown-ticker {
    position: absolute;
    left: 3.75%;   /* 27px at 720px width */
    top: 38.81%;   /* 163px at 420px height */
    width: 39.58%; /* 285px at 720px width */
    height: 17.62%;/* 74px at 420px height */
    border-radius: 6px;
    border: 1px solid #462d8b;
    background-color: rgb(37,48,120. 0.3); 
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 1%;
}

/* Individual Time Segments */
.countdown-ticker .time-segment {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Digits Styling */
.countdown-ticker .digits {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.938rem, 4.16cqw, 1.875rem);
    font-weight: 700;
    color: #90c752;
}

/* Labels (Days, Hrs, Min, Sec) */
.countdown-ticker .label {
    font-family: 'Share Tech Mono', system-ui, -apple-system, sans-serif;
    font-size: clamp(7px, 1.53cqw, 11px);
    text-transform: uppercase;
    color: #e3e3e3;
    margin-top: 0.5cqw;
}

/* Colon Separators ONLY after Days, Hrs, and Min (:nth-child(-n+3)) */
.countdown-ticker .time-segment:nth-child(-n+3)::after {
    content: ":";
    position: absolute;
    right: -4px;
    top: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.938rem, 4.16cqw, 1.875rem);
    font-weight: 400;
    line-height: 1;
    color: #90c752;
    pointer-events: none;
}

/* Classic Digital Hard Blink (Active only while counting down) */
@media (prefers-reduced-motion: no-preference) {
    .countdown-ticker:not(.is-expired) .time-segment:nth-child(-n+3)::after {
        animation: colon-hard-blink 1s infinite steps(1, end);
    }
}

@keyframes colon-hard-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Expired ("Times Up") State */
.countdown-ticker.is-expired .time-segment {
    display: none;
}

.countdown-ticker .expired-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.938rem, 4.16cqw, 1.875rem);
    font-weight: 400;
    color: #90c752;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}