/**
 * Driver Profile Styles
 * 
 * @package AutoSportsTournament
 * @since 1.2.3
 * @updated 1.2.4 - Added team logo, championship badges, GTC stats, member since
 * @updated 1.6.0 - Added country flags, tournament stats, race history page, color styling
 * @updated 1.7.0 - Fixed GTC stats colors (wins=gold, podiums=silver, top5=bronze)
 * @updated 1.7.1 - GTC stats colors now configurable via admin settings
 * @updated 1.8.0 - Championship badges by class (PRO, PRO-AM, AM) - single coin on directory, row on profile
 */

/* ==========================================================================
   Profile View
   ========================================================================== */

.ast-driver-profile {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ast-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #001731 0%, #002347 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
}

.ast-profile-avatar {
    flex-shrink: 0;
}

.ast-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.ast-profile-info {
    flex: 1;
}

.ast-profile-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.ast-profile-realname {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
}

/* Team with logo */
.ast-profile-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.ast-team-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

/* Badges row (class + championships) */
.ast-profile-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ast-profile-class {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.ast-class-pro {
    background: linear-gradient(135deg, #FD0020 0%, #cc001a 100%);
    color: #fff;
}

.ast-class-proam {
    background: linear-gradient(135deg, #0057AB 0%, #004588 100%);
    color: #fff;
}

/* Championship badges */
.ast-championship-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ast-championship-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: help;
}

.ast-championship-badge:hover {
    transform: scale(1.2);
}

/* Header right side (edit button + member since) */
.ast-profile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.ast-profile-actions {
    /* Edit button */
}

/* Member since */
.ast-member-since {
    text-align: right;
}

.ast-member-since-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 2px;
}

.ast-member-since-date {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

/* Profile Details */
.ast-profile-details {
    display: grid;
    gap: 24px;
}

.ast-profile-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.ast-profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* Driver Numbers */
.ast-profile-numbers {
    display: flex;
    gap: 20px;
}

.ast-number-box {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
}

.ast-number-pro {
    border: 2px solid #FD0020;
}

.ast-number-proam {
    border: 2px solid #0057AB;
}

.ast-number-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.ast-number-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
}

/* GTC Stats */
.ast-gtc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* GTC Stats - Hardcoded colors for wins/podiums/top5 (v1.7.0) */
.ast-gtc-stats .ast-stat-wins .ast-stat-value {
    color: #B8860B !important; /* Dark Gold */
}

.ast-gtc-stats .ast-stat-podiums .ast-stat-value {
    color: #C0C0C0 !important; /* Silver */
}

.ast-gtc-stats .ast-stat-top5 .ast-stat-value {
    color: #CD7F32 !important; /* Bronze */
}

/* Profile Stats */
.ast-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.ast-stat-box {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ast-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ast-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Profile Table */
.ast-profile-table {
    width: 100%;
    border-collapse: collapse;
}

.ast-profile-table th,
.ast-profile-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.ast-profile-table th {
    font-weight: 600;
    color: #666;
    width: 140px;
}

.ast-profile-table td {
    color: #333;
}

.ast-profile-table tr:last-child th,
.ast-profile-table tr:last-child td {
    border-bottom: none;
}

/* Social Links */
.ast-profile-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ast-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.ast-social-link:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.ast-social-icon {
    font-size: 18px;
}

/* ==========================================================================
   Profile Edit Form
   ========================================================================== */

.ast-profile-edit {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* v2.1.42: Edit-form identity banner. The banner reuses .ast-profile-header so it picks up
   all the existing Driver Profile Header admin settings (background gradient, header text, subtext).
   We just need a wider max-width than the form sections below it (since the banner has more horizontal
   content) and proper bottom spacing to match the read-only profile view's banner. */
.ast-profile-edit-header {
    margin-bottom: 30px !important;
}

.ast-profile-edit h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1a1a2e;
}

.ast-form-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.ast-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.ast-form-row {
    margin-bottom: 20px;
}

.ast-form-row:last-child {
    margin-bottom: 0;
}

.ast-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.ast-form-row input[type="text"],
.ast-form-row input[type="email"],
.ast-form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.ast-form-row input:focus,
.ast-form-row select:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.ast-form-help {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

.ast-form-row-inline {
    display: flex;
    gap: 20px;
}

.ast-form-col {
    flex: 1;
}

.ast-input-prefix {
    display: flex;
    align-items: center;
}

.ast-input-prefix span {
    padding: 10px 14px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #666;
}

.ast-input-prefix input {
    border-radius: 0 6px 6px 0 !important;
}

/* Avatar Edit */
.ast-avatar-edit {
    text-align: center;
}

.ast-avatar-edit img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
}

/* Team Logo Upload */
.ast-team-logo-upload {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.ast-team-logo-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.ast-team-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ast-no-logo {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 10px;
}

.ast-team-logo-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.ast-team-logo-controls .ast-btn {
    padding: 8px 14px;
    font-size: 13px;
}

#ast-logo-status {
    font-size: 12px;
    color: #666;
}

/* Readonly Table */
.ast-readonly-table {
    width: 100%;
    border-collapse: collapse;
}

.ast-readonly-table th,
.ast-readonly-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.ast-readonly-table th {
    font-weight: 600;
    color: #666;
    width: 120px;
}

.ast-readonly-table td {
    color: #333;
}

/* Form Actions */
.ast-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Number Warning */
.ast-form-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 14px;
    color: #856404;
}

/* Taken number styling in dropdown */
.ast-number-taken {
    color: #dc3545;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ast-btn-primary {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #fff;
}

.ast-btn-primary:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3C45A5 100%);
    color: #fff;
    text-decoration: none;
}

.ast-btn-secondary {
    background: #f0f0f0;
    color: #333;
    padding: 10px 18px;
    font-size: 14px;
}

.ast-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.ast-btn-danger {
    background: #dc3545;
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
}

.ast-btn-danger:hover {
    background: #c82333;
    color: #fff;
    text-decoration: none;
}

.ast-btn-discord {
    background: #5865F2;
    color: #fff;
}

.ast-btn-discord:hover {
    background: #4752C4;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.ast-message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ast-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ast-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ==========================================================================
   Login/Guild Required
   ========================================================================== */

.ast-profile-login-required,
.ast-profile-guild-required,
.ast-profile-error {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 500px;
    margin: 40px auto;
}

.ast-profile-login-required h3,
.ast-profile-guild-required h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #1a1a2e;
}

.ast-profile-login-required p,
.ast-profile-guild-required p {
    color: #666;
    margin-bottom: 24px;
}

.ast-profile-error {
    background: #f8d7da;
    color: #721c24;
}

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

@media (max-width: 768px) {
    .ast-driver-profile {
        padding: 10px;
    }
    
    .ast-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .ast-profile-avatar {
        margin: 0 auto;
    }
    
    .ast-profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .ast-profile-name {
        font-size: 22px;
    }
    
    .ast-profile-realname {
        display: block;
        margin-top: 4px;
    }
    
    .ast-profile-team {
        justify-content: center;
    }
    
    .ast-profile-badges {
        justify-content: center;
    }
    
    .ast-profile-header-right {
        align-items: center;
        width: 100%;
        margin-top: 8px;
    }
    
    .ast-member-since {
        text-align: center;
    }
    
    .ast-profile-section {
        padding: 16px;
    }
    
    .ast-profile-section h3 {
        font-size: 16px;
    }
    
    .ast-profile-numbers {
        flex-direction: column;
    }
    
    .ast-number-value {
        font-size: 28px;
    }
    
    .ast-gtc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ast-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ast-stat-value {
        font-size: 20px;
    }
    
    .ast-profile-table th {
        width: 100px;
    }
    
    .ast-profile-social {
        flex-direction: column;
    }
    
    .ast-form-row-inline {
        flex-direction: column;
    }
    
    .ast-form-actions {
        flex-direction: column;
    }
    
    .ast-btn {
        width: 100%;
    }
    
    .ast-team-logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ast-profile-edit {
        padding: 10px;
    }
    
    .ast-profile-edit h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .ast-gtc-stats,
    .ast-profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .ast-stat-box {
        padding: 12px 8px;
    }
    
    .ast-stat-label {
        font-size: 10px;
    }
    
    .ast-stat-value {
        font-size: 18px;
    }
}

/* ==========================================================================
   Driver Directory (Cards Grid)
   ========================================================================== */

.ast-driver-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.ast-driver-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.ast-driver-card:hover {
    border-color: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.ast-driver-card-avatar {
    flex-shrink: 0;
    position: relative;
}

.ast-driver-card-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

/* Championship badge on driver card - v1.8.0 single highest-class coin */
.ast-driver-card-champ {
    position: absolute;
    bottom: -3px;
    left: -3px;
}

.ast-driver-card-champ img {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.ast-driver-card-info {
    flex: 1;
    min-width: 0;
}

.ast-driver-card-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-driver-card-team {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-driver-card-class {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ast-driver-card-country {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    color: #999;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.ast-no-drivers {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   A-Z Navigation
   ========================================================================== */

.ast-az-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ast-az-link {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.ast-az-link:hover {
    color: #005177;
}

.ast-az-link.ast-az-active {
    color: #001731;
    font-weight: 700;
}

.ast-az-link.ast-az-disabled {
    color: #ccc;
    cursor: default;
}

.ast-az-link.ast-az-disabled:hover {
    color: #ccc;
}

/* A-Z Navigation Responsive */
@media (max-width: 480px) {
    .ast-az-nav {
        gap: 4px 10px;
        font-size: 14px;
    }
}

/* Driver Directory Responsive */
@media (max-width: 600px) {
    .ast-driver-directory {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 0;
    }
    
    .ast-driver-card {
        padding: 16px;
    }
    
    .ast-driver-card-avatar img {
        width: 56px;
        height: 56px;
    }
    
    .ast-driver-card-name {
        font-size: 16px;
    }
}

/* ==========================================================================
   v1.6.0 - Country Flags
   ========================================================================== */

/* Flag on driver directory card (top-left corner) */
.ast-driver-card-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    line-height: 1;
    z-index: 1;
}

/* Flag under avatar on profile page */
.ast-profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.ast-profile-country-flag {
    font-size: 28px;
    margin-top: 8px;
    line-height: 1;
}

/* ==========================================================================
   v1.6.0 - Tournament Stats
   ========================================================================== */

.ast-profile-tournament-stats {
    /* Container for tournament stats section */
}

.ast-tournament-stats {
    margin-bottom: 24px;
}

.ast-tournament-stats:last-child {
    margin-bottom: 0;
}

.ast-tournament-stats h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ast-tournament-year {
    font-weight: 400;
    color: #666;
}

.ast-badge-current {
    background: #28a745;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ast-tournament-stats-table-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.ast-tournament-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.ast-tournament-stats-table thead {
    background: #f8f9fa;
}

.ast-tournament-stats-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #e0e0e0;
}

.ast-tournament-stats-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.ast-tournament-stats-table tr:last-child td {
    border-bottom: none;
}

.ast-tournament-stats-table tr:hover {
    background: #f8f9fa;
}

.ast-tournament-stats-table tr.ast-race-dnf {
    opacity: 0.7;
}

.ast-tournament-stats-table tr.ast-race-dns {
    opacity: 0.5;
}

.ast-round-badge {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ast-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ast-status-badge.ast-dnf {
    background: #f8d7da;
    color: #721c24;
}

.ast-status-badge.ast-dns {
    background: #e9ecef;
    color: #6c757d;
}

.ast-car-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ast-inc-high {
    color: #dc3545;
    font-weight: 600;
}

.ast-inc-med {
    color: #fd7e14;
}

/* View Full History Button */
.ast-view-full-history {
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ==========================================================================
   v1.6.0 - Race History Page
   ========================================================================== */

.ast-race-history-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.ast-history-header {
    margin-bottom: 30px;
}

.ast-back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.ast-back-link:hover {
    text-decoration: underline;
}

.ast-history-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.ast-history-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.ast-no-history {
    text-align: center;
    padding: 60px 30px;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   v1.6.0 - iRacing Stats Always Visible
   ========================================================================== */

.ast-iracing-stats {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .ast-iracing-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   v1.6.0 - Responsive for Tournament Stats
   ========================================================================== */

@media (max-width: 768px) {
    .ast-tournament-stats-table {
        font-size: 13px;
    }
    
    .ast-tournament-stats-table th,
    .ast-tournament-stats-table td {
        padding: 8px 10px;
    }
    
    .ast-profile-country-flag {
        font-size: 24px;
    }
    
    .ast-driver-card-flag {
        font-size: 18px;
    }
    
    .ast-race-history-page {
        padding: 10px;
    }
    
    .ast-history-header h1 {
        font-size: 22px;
    }
    
    .ast-history-content {
        padding: 16px;
    }
}
