/* assets/css/ntcd-countdown.css */
/*
 * Front-end styles for Nortek Countdown.
 *
 * Boxed: colours come from CSS custom properties set inline per
 * countdown (see NTCD_Shortcode::style_vars); the fallbacks match the
 * sled-dog-race-registration countdown box.
 *
 * Inline: deliberately unstyled so it inherits the surrounding text.
 */

/* Shared */

.ntcd-countdown[hidden],
.ntcd-countdown [hidden] {
    display: none !important;
}

/* Boxed */

.ntcd-boxed {
    box-sizing: border-box;
    margin: 0 0 30px;
    padding: 30px;
    text-align: center;
    color: var(--ntcd-text, #1d2327);
    background: var(--ntcd-bg, #e7f3ff);
    border: 2px solid var(--ntcd-border, #2271b1);
    border-radius: 8px;
}

.ntcd-boxed .ntcd-heading {
    margin: 0 0 15px;
    font-size: 28px;
    color: var(--ntcd-heading, #135e96);
}

.ntcd-boxed .ntcd-message p,
.ntcd-boxed .ntcd-expired-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
}

.ntcd-boxed .ntcd-timer {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: var(--ntcd-timer, #2271b1);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.ntcd-boxed .ntcd-timer:first-child {
    margin-top: 0;
}

/* Inline: equal-width digits reduce jitter without changing the font. */

.ntcd-inline .ntcd-timer {
    font-variant-numeric: tabular-nums;
}

/* Problem notice, administrators only */

.ntcd-admin-notice {
    display: inline-block;
    padding: 4px 10px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .ntcd-boxed {
        padding: 20px 15px;
    }

    .ntcd-boxed .ntcd-heading {
        font-size: 22px;
    }

    .ntcd-boxed .ntcd-timer {
        padding: 10px 16px;
        font-size: 20px;
    }
}
