/**
 * Countdown Tết Dương Lịch - Stylesheet
 *
 * Design Philosophy: Simple, Clean, Professional
 * - Pure black background (#000)
 * - Classic colors (NOT neon)
 * - Thin borders (1px)
 * - Subtle shadows (< 2 layers, opacity < 0.3)
 * - No flashy effects
 *
 * @version 1.0.0
 */

/* ========================================
   CSS Variables - Classic & Professional
   ======================================== */
:root {
    /* Background - Pure & Clean - DARK by default */
    --ctdl-bg-primary: #000000;
    --ctdl-bg-secondary: #0d0d0d;
    --ctdl-bg-tertiary: #1a1a1a;
    --ctdl-bg-card: #000000;        /* Pure black for card */

    /* Colors - Classic NOT Neon */
    --ctdl-primary: #DC2626;        /* Classic red */
    --ctdl-secondary: #F59E0B;      /* Classic gold */
    --ctdl-accent: #FBBF24;         /* Soft gold */

    /* Text - High Contrast for dark background */
    --ctdl-text-primary: #FFFFFF;
    --ctdl-text-secondary: #E5E7EB;
    --ctdl-text-muted: #9CA3AF;

    /* Borders - More visible on dark */
    --ctdl-border: rgba(255, 255, 255, 0.15);
    --ctdl-border-light: rgba(255, 255, 255, 0.2);

    /* Shadows - Minimal */
    --ctdl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --ctdl-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.25);
    --ctdl-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --ctdl-spacing-xs: 0.25rem;
    --ctdl-spacing-sm: 0.5rem;
    --ctdl-spacing-md: 1rem;
    --ctdl-spacing-lg: 1.5rem;
    --ctdl-spacing-xl: 2rem;

    /* Typography */
    --ctdl-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ========================================
   Screen Reader Only
   ======================================== */
.ctdl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Main Container
   ======================================== */
.ctdl-countdown {
    font-family: var(--ctdl-font-family);
    background: #000000 !important;  /* Force pure black */
    color: #FFFFFF !important;       /* Force white text */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    padding: var(--ctdl-spacing-xl);
    margin: var(--ctdl-spacing-lg) 0;
    box-shadow: var(--ctdl-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ctdl-countdown:hover {
    transform: translateY(-2px);
    box-shadow: var(--ctdl-shadow-lg);
}

/* Focus state for accessibility */
.ctdl-countdown:focus-within {
    outline: 2px solid var(--ctdl-primary);
    outline-offset: 4px;
}

/* ========================================
   Header
   ======================================== */
.ctdl-countdown__header {
    text-align: center;
    margin-bottom: var(--ctdl-spacing-lg);
    padding-bottom: var(--ctdl-spacing-md);
    border-bottom: 1px solid var(--ctdl-border);
}

.ctdl-countdown__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--ctdl-spacing-sm) 0;
    color: #DC2626 !important;  /* Force classic red */
    text-shadow: none; /* No glow effect */
}

.ctdl-countdown__date {
    display: block;
    font-size: 1rem;
    color: #E5E7EB !important;  /* Force light gray */
    font-weight: 400;
}

/* ========================================
   Body
   ======================================== */
.ctdl-countdown__body {
    text-align: center;
}

.ctdl-countdown__text {
    font-size: 1.125rem;
    color: #E5E7EB !important;  /* Force light gray */
    margin: 0 0 var(--ctdl-spacing-lg) 0;
}

.ctdl-countdown__text strong {
    color: #FBBF24 !important;  /* Force soft gold */
    font-weight: 700;
}

/* ========================================
   Timer
   ======================================== */
.ctdl-countdown__timer {
    display: flex;
    justify-content: center;
    gap: var(--ctdl-spacing-md);
    flex-wrap: wrap;
}

.ctdl-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: var(--ctdl-spacing-md);
    background: #0d0d0d !important;  /* Force very dark gray */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ctdl-countdown__unit:hover {
    background: #1a1a1a !important;  /* Force dark gray on hover */
    transform: translateY(-2px);
}

.ctdl-countdown__value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #DC2626 !important;  /* Force classic red */
    margin-bottom: var(--ctdl-spacing-xs);
    font-variant-numeric: tabular-nums;
    text-shadow: none; /* No glow */
}

.ctdl-countdown__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF !important;  /* Force muted gray */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Style Variations
   ======================================== */

/* Minimal Style */
.ctdl-countdown--minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: var(--ctdl-spacing-md) 0;
}

.ctdl-countdown--minimal:hover {
    transform: none;
    box-shadow: none;
}

.ctdl-countdown--minimal .ctdl-countdown__header {
    border-bottom: none;
    padding-bottom: var(--ctdl-spacing-sm);
}

.ctdl-countdown--minimal .ctdl-countdown__unit {
    background: transparent;
    border: none;
    padding: var(--ctdl-spacing-sm);
}

/* Compact Style */
.ctdl-countdown--compact {
    padding: var(--ctdl-spacing-md);
}

.ctdl-countdown--compact .ctdl-countdown__header {
    margin-bottom: var(--ctdl-spacing-md);
    padding-bottom: var(--ctdl-spacing-sm);
}

.ctdl-countdown--compact .ctdl-countdown__title {
    font-size: 1.25rem;
}

.ctdl-countdown--compact .ctdl-countdown__text {
    font-size: 1rem;
    margin-bottom: var(--ctdl-spacing-md);
}

.ctdl-countdown--compact .ctdl-countdown__unit {
    min-width: 60px;
    padding: var(--ctdl-spacing-sm);
}

.ctdl-countdown--compact .ctdl-countdown__value {
    font-size: 1.75rem;
}

.ctdl-countdown--compact .ctdl-countdown__label {
    font-size: 0.75rem;
}

/* ========================================
   Accessibility - Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .ctdl-countdown,
    .ctdl-countdown__unit {
        transition: none;
    }

    .ctdl-countdown:hover,
    .ctdl-countdown__unit:hover {
        transform: none;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    .ctdl-countdown {
        padding: var(--ctdl-spacing-lg);
    }

    .ctdl-countdown__title {
        font-size: 1.5rem;
    }

    .ctdl-countdown__timer {
        gap: var(--ctdl-spacing-sm);
    }

    .ctdl-countdown__unit {
        min-width: 70px;
        padding: var(--ctdl-spacing-sm);
    }

    .ctdl-countdown__value {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ctdl-countdown {
        padding: var(--ctdl-spacing-md);
    }

    .ctdl-countdown__title {
        font-size: 1.25rem;
    }

    .ctdl-countdown__text {
        font-size: 1rem;
    }

    .ctdl-countdown__timer {
        gap: var(--ctdl-spacing-xs);
    }

    .ctdl-countdown__unit {
        min-width: 60px;
        padding: var(--ctdl-spacing-xs) var(--ctdl-spacing-sm);
    }

    .ctdl-countdown__value {
        font-size: 1.5rem;
    }

    .ctdl-countdown__label {
        font-size: 0.75rem;
    }
}

/* ========================================
   Force Dark Theme - No Light Mode
   ======================================== */
/* Plugin ALWAYS uses dark theme for consistency and design philosophy */
/* If you want light theme, override variables in your theme CSS */

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .ctdl-countdown {
        box-shadow: none;
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }

    .ctdl-countdown__title,
    .ctdl-countdown__value {
        color: #000;
    }
}
