/* Chrono League Frontend Styles - Dark Theme */

.cl-shortcode-wrapper {
    background: #121212;
    color: #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filters */
.cl-filters-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cl-filter-select {
    background: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 15px;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cl-filter-select:hover {
    border-color: #4a9eff;
    background: #252525;
}

.cl-filter-select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* Table Container */
.cl-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Table */
.cl-times-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
}

.cl-times-table thead {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-bottom: 2px solid #4a9eff;
}

.cl-times-table thead th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #4a9eff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cl-times-table tbody tr {
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s ease;
}

.cl-times-table tbody tr:hover {
    background: #252525;
    transform: translateX(4px);
}

.cl-times-table tbody td {
    padding: 14px 12px;
    font-size: 15px;
    color: #e0e0e0;
}

/* Podium Rows */
.cl-podium {
    font-weight: 600;
}

.cl-position-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.cl-position-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.cl-position-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

/* Position Badges */
.cl-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.cl-position-badge.cl-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.cl-position-badge.cl-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.cl-position-badge.cl-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

/* Column Specific Styles */
.cl-col-pos {
    width: 60px;
    text-align: center;
}

.cl-col-dorsal {
    width: 80px;
    font-weight: 600;
    color: #4a9eff;
}

.cl-col-driver {
    min-width: 150px;
    font-weight: 500;
}

.cl-col-vehicle {
    min-width: 180px;
    color: #b0b0b0;
}

.cl-col-time {
    width: 120px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #4ade80;
}

.cl-col-gap {
    width: 100px;
    font-family: 'Courier New', monospace;
    color: #fbbf24;
}

.cl-col-points {
    width: 80px;
    text-align: center;
    font-weight: 700;
    color: #4a9eff;
}

/* No Results */
.cl-no-results td {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Loading State */
.cl-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #b0b0b0;
    font-size: 16px;
}

.cl-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #333;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: cl-spin 0.8s linear infinite;
}

@keyframes cl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cl-shortcode-wrapper {
        padding: 20px 15px;
    }

    .cl-filters-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .cl-filter-group {
        width: 100%;
    }

    .cl-filter-select {
        width: 100%;
        min-width: auto;
    }

    .cl-times-table {
        font-size: 13px;
    }

    .cl-times-table thead th,
    .cl-times-table tbody td {
        padding: 10px 8px;
    }

    .cl-col-vehicle,
    .cl-col-gap {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .cl-times-table {
        font-size: 12px;
    }

    .cl-position-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}