/**
 * RaceForge: Championship Standings Page Styles
 */

/* =================================================================== */
/* ==   1. Main Structure (reused from other pages)                 == */
/* =================================================================== */
.telemetry-wrapper { width: 100%; max-width: 900px; margin: 0 auto; }
.telemetry-fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.timing-deck { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 20px; min-height: 400px; }
.deck-header { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.deck-title { color: var(--text-primary); font-size: 1.4rem; font-family: var(--font-mono); text-transform: uppercase; margin: 0; }
.deck-metadata { font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent-blue); letter-spacing: 2px; }
.deck-header .deck-title .sim-tag { font-size: 0.9rem; letter-spacing: 1px; padding: 5px 10px; border-radius: 4px; background-color: rgba(0, 170, 255, 0.1); }
.grid-empty { text-align: center; font-family: var(--font-mono); padding: 4rem 1rem; color: var(--text-secondary); }

/* =================================================================== */
/* ==   2. Timing Grid Layout for Standings                         == */
/* =================================================================== */
.timing-grid { width: 100%; }
.grid-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); min-height: 45px; padding: 5px 15px; font-size: 0.9rem; }
.grid-row:hover:not(.grid-head) { background: rgba(0, 170, 255, 0.04); }
.grid-head { color: var(--accent-blue); font-weight: bold; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; background: rgba(255, 255, 255, 0.02); }

/* --- Podium Row Highlights --- */
.p1-row { border-left: 3px solid #FFD700; background: rgba(255, 215, 0, 0.03); }
.p2-row { border-left: 3px solid #C0C0C0; }
.p3-row { border-left: 3px solid #CD7F32; }


/* --- Column Definitions --- */
.g-pos { flex: 0 0 50px; font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.7; }
.g-driver { flex: 4; color: var(--text-primary); font-weight: 600; }
.g-wins { flex: 1; text-align: center; font-family: var(--font-mono); }
.g-points { flex: 1; text-align: right; font-family: var(--font-mono); font-weight: bold; font-size: 1.1rem; color: var(--accent-blue); }


/* =================================================================== */
/* ==   NEW: Back to League Link Style                              == */
/* =================================================================== */
.back-to-league-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.back-to-league-link:hover {
    color: var(--accent-blue);
}
.back-to-league-link i {
    margin-right: 8px;
}