@charset "utf-8";
/* ==========================================================================
   ULD TIMER MODULE STYLES (mod_uldtimer v1.1.0)
   4 темы оформления для шапки uraldrift.ru:
   1. .uld-timer--cards     (Классические карточки ULD Modern)
   2. .uld-timer--skew      (Гоночный скос -12°, в стиле кнопок и меню)
   3. .uld-timer--telemetry (Гоночная телеметрия / табло с двоеточиями)
   4. .uld-timer--gold      (Контрастный неон с жёлтой шапкой)
   ========================================================================== */

.uld-timer-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    background: rgba(17, 19, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 9px 10px 10px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.uld-timer-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    line-height: 1.1;
    margin: 0;
}

.uld-timer-label::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd600;
    box-shadow: 0 0 8px #ffd600;
    flex-shrink: 0;
}

.uld-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.uld-timer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-top-color: rgba(255, 214, 0, 0.32);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.uld-timer-cell-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.uld-timer-val {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.uld-timer-cell:first-child .uld-timer-val {
    color: #ffd600;
}

.uld-timer-unit {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    line-height: 1;
}

/* ==========================================================================
   ДИЗАЙН 2: ГОНОЧНЫЙ СКОС (-12°, в едином стиле с кнопкой билетов и пагинацией)
   ========================================================================== */

.uld-timer--skew {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 2px 4px 4px;
    gap: 8px;
}

.uld-timer--skew .uld-timer-label {
    font-family: 'Russo One', 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #f3f4f6;
}

.uld-timer--skew .uld-timer-label::after {
    content: "///";
    color: #ffd600;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-left: 2px;
    opacity: 0.85;
}

.uld-timer--skew .uld-timer-grid {
    gap: 7px;
}

.uld-timer--skew .uld-timer-cell {
    background: linear-gradient(180deg, #232733 0%, #141720 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 2.5px solid #ffd600;
    border-radius: 4px;
    transform: skewX(-12deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    padding: 8px 3px 6px;
}

.uld-timer--skew .uld-timer-cell:first-child {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.18) 0%, #1a1d26 100%);
    border-color: rgba(255, 214, 0, 0.55);
}

.uld-timer--skew .uld-timer-cell-inner {
    transform: skewX(12deg);
}

.uld-timer--skew .uld-timer-val {
    font-size: 19px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   ДИЗАЙН 3: ТЕЛЕМЕТРИЯ / ТАБЛО (единая приборная панель с двоеточиями)
   ========================================================================== */

.uld-timer--telemetry {
    background: linear-gradient(180deg, #16181f 0%, #0c0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #ffd600;
    border-radius: 6px;
    padding: 9px 12px 10px;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.6);
}

.uld-timer--telemetry .uld-timer-label {
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 5px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #ffd600;
}

.uld-timer--telemetry .uld-timer-label::before {
    display: none;
}

.uld-timer--telemetry .uld-timer-label::after {
    content: "LIVE";
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 800;
    color: #0b0c0e;
    background: #ffd600;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
}

.uld-timer--telemetry .uld-timer-grid {
    gap: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 6px 2px 5px;
}

.uld-timer--telemetry .uld-timer-cell {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 2px 2px;
}

.uld-timer--telemetry .uld-timer-cell:not(:last-child)::after {
    content: ":";
    position: absolute;
    right: -4px;
    top: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 800;
    color: rgba(255, 214, 0, 0.75);
    line-height: 1;
    animation: uldTimerBlink 1s steps(1) infinite;
}

.uld-timer--telemetry .uld-timer-val {
    color: #ffd600;
    font-size: 20px;
    text-shadow: 0 0 12px rgba(255, 214, 0, 0.28);
}

.uld-timer--telemetry .uld-timer-cell:last-child .uld-timer-val {
    color: #ffffff;
    text-shadow: none;
}

@keyframes uldTimerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* ==========================================================================
   ДИЗАЙН 4: КОНТРАСТНЫЙ НЕОН (фирменная жёлтая плашка заголовка как в сайдбаре)
   ========================================================================== */

.uld-timer--gold {
    background: rgba(18, 20, 26, 0.95);
    border: 1px solid rgba(255, 214, 0, 0.45);
    border-radius: 8px;
    padding: 0 0 9px 0;
    gap: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 214, 0, 0.12);
}

.uld-timer--gold .uld-timer-label {
    background: linear-gradient(90deg, #ffd600 0%, #e0b400 100%);
    color: #0b0c0e;
    font-family: 'Russo One', 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    justify-content: space-between;
}

.uld-timer--gold .uld-timer-label::before {
    display: none;
}

.uld-timer--gold .uld-timer-label::after {
    content: "///";
    font-weight: 900;
    letter-spacing: -1.5px;
    opacity: 0.4;
    color: #0b0c0e;
}

.uld-timer--gold .uld-timer-grid {
    padding: 0 9px;
    gap: 6px;
}

.uld-timer--gold .uld-timer-cell {
    background: #181b22;
    border: 1px solid rgba(255, 214, 0, 0.25);
    border-bottom: 2px solid #ffd600;
    border-radius: 5px;
    padding: 6px 3px 5px;
}

.uld-timer--gold .uld-timer-val {
    color: #ffd600;
    font-size: 19px;
}

.uld-timer--gold .uld-timer-unit {
    color: #d1d5db;
}
