/* Athletes List Page Styles */

.athletes-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.athletes-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
}

.stat-badge span {
    color: #ffd700;
    font-size: 1.3rem;
    margin-right: 8px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.athletes-table-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    overflow-x: auto;
}

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

.athletes-table th {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.athletes-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.athletes-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.athletes-table td {
    padding: 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.athletes-table tbody tr {
    transition: all 0.3s ease;
}

.athletes-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}

.athlete-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.athlete-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1rem;
}

.athlete-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.athlete-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.age-badge {
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.races-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.races-count i {
    color: #ffd700;
}

.races-count span {
    font-weight: 700;
    font-size: 1.2rem;
}

.races-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-athletes {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.6);
}

.no-athletes i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.rank-number {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.top-3 .rank-number {
    color: #ffd700;
}

@media (max-width: 768px) {
    .athletes-stats {
        flex-direction: column;
        align-items: center;
    }

    .athletes-table th, 
    .athletes-table td {
        padding: 12px 10px;
    }

    .athlete-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* ── Stats & Charts Section ───────────────────────────────────────────── */

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}
.section-divider h2 {
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--blue-dark);
    margin: 0;
}
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-primary), var(--orange-primary), transparent);
    border-radius: 2px;
}
.speed-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid transparent;
}
.speed-card.male   { border-top-color: var(--blue-primary); }
.speed-card.female { border-top-color: var(--orange-primary); }
.speed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.speed-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.speed-icon.male   { background: rgba(0,102,255,0.10); color: var(--blue-primary); }
.speed-icon.female { background: rgba(255,107,0,0.10);  color: var(--orange-primary); }
.speed-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
.speed-value.male   { color: var(--blue-primary); }
.speed-value.female { color: var(--orange-primary); }
.speed-unit  { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.speed-label { font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px; }
.chart-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    height: 100%;
}
.chart-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chart-card-title i { color: var(--blue-primary); }
.chart-wrap    { position: relative; height: 280px; }
.chart-wrap-sm { position: relative; height: 260px; }
.chart-empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.95rem;
    padding: 2rem 1rem;
}
