/* ==========================================
   CAMPEONATOS Y GESTIÓN DE RESULTADOS
   ========================================== */

.standings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.standings-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table thead {
    background: linear-gradient(90deg, #e10600 0%, #ff1e00 100%);
}

.standings-table th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: bold;
}

.standings-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table td {
    padding: 1.2rem 1rem;
}

.position-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: bold;
    text-align: center;
}

.position-podium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.points-value {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 30, 0, 0.2);
    border: 2px solid #ff1e00;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

/* Standings Highlights */
.standings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.standings-header h1 {
    font-size: 2.5rem;
    color: #ff1e00;
    margin-bottom: 0.5rem;
}

.standings-subtitle {
    color: #aaa;
    font-size: 1.1rem;
}

.driver-info,
.constructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.driver-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 30px;
    background: #111;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 4px;
    padding: 0 8px;
    border-left: 5px solid #ff1e00;
    /* Color inyectado via PHP */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.team-color-bar {
    width: 6px;
    height: 30px;
    border-radius: 3px;
    /* background-color inyectado via PHP */
}

.driver-name,
.constructor-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.team-badge {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid;
    border-radius: 0 5px 5px 0;
    font-size: 0.95rem;
    color: #eee;
}

/* Column Alignment */
.pos-col {
    width: 80px;
    text-align: center;
}

.points-col {
    width: 120px;
    text-align: center;
}

.pais-col {
    width: 100px;
    text-align: center;
}

/* Manage Results */
.manage-container {
    max-width: 1400px;
    margin: 0 auto;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.manage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.results-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border-radius: 20px;
    border: 1px solid #00ff00;
    padding: 0.4rem 0.8rem;
}

.pending-badge {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border-radius: 20px;
    border: 1px solid #ffff00;
    padding: 0.4rem 0.8rem;
}

/* Edit Results */
.result-position-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
}

.driver-select {
    flex: 1;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
}