/* ========================================
 * F1nal Lap - Next Race Banner
 * Sidebar widget / shortcode UI styles.
 * ======================================== */

.f1nl-next-race {
    background: linear-gradient(135deg, #0f1923 0%, #1a2a2a 50%, #0f1923 100%);
    border: 1px solid #2a3a3a;
    border-radius: 12px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}
.f1nl-next-race::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #0d9488);
}
.f1nl-race-round {
    font-size: 11px;
    color: #0d9488;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.f1nl-sprint-badge {
    display: inline-block;
    background: #0d9488;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 1px;
}
.f1nl-race-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.f1nl-race-flag {
    font-size: 22px;
    line-height: 1;
}
.f1nl-race-title {
    font-size: 16px;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1.2;
}
.f1nl-race-circuit {
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
    padding-left: 30px;
}

/* Session info box */
.f1nl-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.f1nl-session-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.f1nl-session-name {
    font-size: 15px;
    font-weight: 700;
    color: #14b8a6;
}
.f1nl-session-date {
    font-size: 12px;
    color: #aaa;
    text-align: right;
}

/* Countdown */
.f1nl-countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.f1nl-countdown-unit {
    text-align: center;
    min-width: 48px;
}
.f1nl-countdown-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px 4px;
}
.f1nl-countdown-label {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.f1nl-countdown-sep {
    font-size: 20px;
    color: #444;
    font-weight: bold;
    align-self: flex-start;
    padding-top: 8px;
}

/* Live indicator */
.f1nl-live-indicator {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    padding: 12px 0;
    animation: f1nl-pulse 1.5s ease-in-out infinite;
}
@keyframes f1nl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Schedule link */
.f1nl-schedule-link {
    display: block;
    text-align: center;
    color: #0d9488;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding-top: 10px;
    border-top: 1px solid #2a3a3a;
    transition: color 0.2s;
}
.f1nl-schedule-link:hover {
    color: #14b8a6;
}
.f1nl-schedule-link span {
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}
.f1nl-schedule-link:hover span {
    transform: translateX(3px);
}

/* Schedule accordion */
.f1nl-acc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin: 0 16px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #2a3a3a;
    transition: opacity 0.15s;
}
.f1nl-acc-toggle:hover {
    opacity: 0.8;
}
.f1nl-acc-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}
.f1nl-acc-toggle-icon {
    font-size: 11px;
    color: #00b4a6;
    transition: transform 0.3s ease;
}
.f1nl-acc-toggle.is-open .f1nl-acc-toggle-icon {
    transform: rotate(180deg);
}
.f1nl-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.f1nl-acc-body.is-open {
    max-height: 400px;
}
.f1nl-acc-list {
    padding: 0 16px 10px;
}
.f1nl-acc-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.f1nl-acc-row:last-child {
    border-bottom: none;
}
.f1nl-acc-name {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    width: 76px;
    flex-shrink: 0;
    text-align: left;
}
.f1nl-acc-row.is-next .f1nl-acc-name {
    color: #00b4a6;
    font-weight: 700;
}
.f1nl-acc-row.is-done .f1nl-acc-name {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
}
.f1nl-acc-datetime {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-left: auto;
    text-align: right;
}
.f1nl-acc-row.is-next .f1nl-acc-datetime {
    color: #00b4a6;
    font-weight: 700;
}
.f1nl-acc-row.is-done .f1nl-acc-datetime {
    color: rgba(255, 255, 255, 0.25);
}

/* Offseason fallback */
.f1nl-offseason {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}
