/* ============================================================
   DRIVER STATS PAGE — UKSOR CLEAN LAYOUT
============================================================ */

/* GRID LAYOUT */
.driver-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.driver-stats-left,
.driver-stats-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   SUMMARY + BREAKDOWN CARDS
============================================================ */

.driver-stats-grid .rc-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.driver-stats-grid .rc-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.driver-stats-grid .rc-card p,
.driver-stats-grid .rc-subcard p {
    margin: 3px 0;
    line-height: 1.3;
}

.driver-stats-grid .rc-subcard {
    background: #f9f9f9;
    color: #222;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--uksor-red);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.driver-stats-grid .rc-subcard:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.driver-stats-grid .rc-subcard h4 {
    margin-bottom: 8px;
    font-weight: 600;
    color: #000;
}

/* ============================================================
   DRIVER STATISTICS TITLE
============================================================ */

.driver-stats-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   FULL‑WIDTH HEADER BANNER
============================================================ */

.driver-header-banner {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: start;
    gap: 25px;
    padding: 25px;
    margin-bottom: 35px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* LEFT SIDE: PHOTO + FLAG + NUMBER */
.driver-header-banner .driver-header-left {
    text-align: center;
}

.driver-header-banner .driver-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--uksor-red);
    margin-bottom: 10px;
}

.driver-header-banner .flag-number-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.flag-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    object-fit: cover;
}

.driver-header-banner .driver-header-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--uksor-red);
    font-family: 'Montserrat', sans-serif;
}

/* CENTER INFO */
.driver-header-banner .driver-header-center p {
    margin: 6px 0;
}

.driver-header-banner .header-line {
    font-size: 18px;
    margin: 6px 0;
}

/* Formula pills */

.driver-header-banner .formula-pill-row {
    margin: 6px 0 12px 0;
}

.driver-header-banner .formula-pill {
    display: inline-block;
    background: #eee;
    padding: 4px 10px;
    margin-right: 6px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Status badge */

.driver-header-banner .driver-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 400;
    color: #fff;
}

.driver-header-banner .status-active {
    background: #28a745;
}

.driver-header-banner .status-banned {
    background: #dc3545;
}

.driver-header-banner .status-unknown {
    background: #999;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
    .driver-header-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .driver-stats-grid {
        grid-template-columns: 1fr;
    }

    .driver-header-banner .flag-number-row {
        justify-content: center;
    }
}

