/**
 * Styles publics - Bussy Running Results
 * Design moderne et épuré
 */

.brr-results-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filtre par saison - Design moderne */
.brr-season-filter {
    background: #fff;
    padding: 24px 28px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

.brr-season-filter label {
    font-weight: 600;
    font-size: 16px;
    color: #2d3748;
    letter-spacing: 0.2px;
}

.brr-season-filter select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    min-width: 200px;
    background: #fff;
    color: #2d3748;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.brr-season-filter select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.brr-season-filter select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.brr-loading {
    display: inline-block;
    margin-left: 15px;
    color: #667eea;
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
}

/* Compteur */
.brr-results-count {
    margin-bottom: 35px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #667eea;
    text-align: center;
}

.brr-results-count strong {
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
}

.brr-results-count #brr-current-season {
    font-weight: 700;
    color: #764ba2;
}

/* Tableau */
.brr-table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brr-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.brr-results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.brr-results-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    color: #fff;
}

.brr-results-table th:first-child {
    border-top-left-radius: 12px;
}

.brr-results-table th:last-child {
    border-top-right-radius: 12px;
}

.brr-results-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.brr-results-table tbody tr:last-child {
    border-bottom: none;
}

.brr-results-table tbody tr:hover {
    background: linear-gradient(to right, #f7fafc, #edf2f7);
    transform: translateX(2px);
}

.brr-results-table td {
    padding: 14px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.brr-results-table td strong {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
}

/* Colonnes spécifiques */
.brr-col-ranking {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 700;
    color: #2d3748;
    font-size: 15px;
}

.brr-col-time {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 700;
    color: #2d3748;
    font-size: 15px;
}

.brr-col-category {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.brr-col-date {
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
}

/* Message vide */
.brr-no-results {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Pagination - Style moderne inspiré du plugin training */
.brr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 24px 0;
}

.brr-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #2c3338;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.brr-page-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.brr-page-btn:active {
    transform: translateY(0);
}

.brr-page-info {
    margin: 0 12px;
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .brr-results-wrapper {
        margin: 20px 0;
    }

    .brr-season-filter {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .brr-season-filter label {
        margin-bottom: 0;
        font-size: 15px;
    }

    .brr-season-filter select {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
    }

    .brr-results-count {
        text-align: center;
    }

    /* Tableau responsive avec cards */
    .brr-results-table thead {
        display: none;
    }

    .brr-results-table,
    .brr-results-table tbody,
    .brr-results-table tr,
    .brr-results-table td {
        display: block;
        width: 100%;
    }

    .brr-results-table tr {
        margin-bottom: 20px;
        border: none;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        background: #fff;
    }

    .brr-results-table tr:hover {
        transform: none;
        background: #fff;
    }

    .brr-results-table td {
        text-align: right;
        padding: 10px 12px;
        border-bottom: 1px solid #e2e8f0;
        position: relative;
        padding-left: 45%;
    }

    .brr-results-table td:last-child {
        border-bottom: none;
    }

    .brr-results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 600;
        text-align: left;
        color: #4a5568;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .brr-col-category {
        margin-top: 4px;
    }

    .brr-pagination {
        gap: 6px;
    }

    .brr-page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 15px;
    }

    .brr-page-info {
        font-size: 14px;
        margin: 0 8px;
    }
}
