/* ===== Drivers Section Styles ===== */

/* Driver Card */
.driver-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-left: 4px solid var(--accent-red);
    position: relative;
}

.driver-card:hover {
    border-left-color: var(--accent-gold);
}

/* Driver Header */
.driver-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.driver-number-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #a00500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-primary);
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.driver-nationality {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.driver-flag {
    font-size: 1.25rem;
}

/* Driver Team */
.driver-team {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.driver-team-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.driver-team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Driver Stats */
.driver-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.driver-stat {
    background-color: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.driver-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.driver-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Driver Details */
.driver-details {
    display: grid;
    gap: var(--spacing-sm);
}

.driver-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.driver-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.driver-detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Championships Badge */
.driver-championships {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffa500 100%);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: var(--shadow-md);
}

.driver-championships::before {
    content: '🏆';
    font-size: 1rem;
}

/* Driver Avatar Placeholder */
.driver-avatar {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.driver-avatar::before {
    content: '👤';
    font-size: 5rem;
    opacity: 0.3;
}

/* Driver Status Badge */
.driver-status {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .driver-header {
        flex-direction: column;
        text-align: center;
    }
    
    .driver-number-badge {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .driver-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .driver-stat {
        padding: var(--spacing-sm) var(--spacing-xs);
    }
    
    .driver-stat-value {
        font-size: 1.25rem;
    }
    
    .driver-stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .driver-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .driver-stat-value {
        font-size: 1.1rem;
    }
}
