/* ═══════════════════════════════════════════════════════════ */
/* RANKING PAGE                                                */
/* ═══════════════════════════════════════════════════════════ */
.rk-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: var(--font-display), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero */
.rk-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #00352e 100%);
    border-radius: 0 0 24px 24px;
    padding: 40px 32px 32px;
    color: #fff;
    margin: 0 -20px 32px;
    position: relative;
    overflow: hidden;
}
.rk-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.rk-hero::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
}
.rk-hero-title {
    font-family: var(--font-serif), Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 4px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rk-hero-title i { color: #fbbf24; }
.rk-hero-sub {
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
    font-size: 15px;
}

/* Filter pills */
.rk-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.rk-filters + .rk-filters { margin-top: 10px; }
.rk-pill {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
}
.rk-pill:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.rk-pill.active {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(28,25,23,0.15);
}

/* ═══════════════════════════════════════════════════════════ */
/* PODIUM                                                      */
/* ═══════════════════════════════════════════════════════════ */
.rk-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 36px;
    padding: 0 12px;
}
.rk-podium-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}
.rk-podium-item:hover { transform: translateY(-6px); }

.rk-podium-medal { font-size: 28px; margin-bottom: 6px; line-height: 1; }
.rk-podium-item.gold .rk-podium-medal { font-size: 36px; }

.rk-podium-photo-wrap {
    position: relative;
    margin: 0 auto 10px;
}
.rk-podium-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #e7e5e4;
}
.gold .rk-podium-photo {
    width: 100px; height: 100px;
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251,191,36,0.25);
}
.silver .rk-podium-photo { border-color: var(--text-muted); }
.bronze .rk-podium-photo { border-color: #d97706; }

.rk-podium-ph {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid #e7e5e4;
}
.gold .rk-podium-ph {
    width: 100px; height: 100px;
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251,191,36,0.25);
}

.rk-podium-name {
    font-size: 14px;
    font-weight: 700;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    color: var(--gray-800, #292524);
}
.rk-podium-ville {
    font-size: 11px;
    color: var(--gray-500, #78716c);
    margin-top: 2px;
}
.rk-podium-note {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}
.rk-podium-avis {
    font-size: 11px;
    color: var(--gray-400, #a8a29e);
}

/* ═══════════════════════════════════════════════════════════ */
/* LIST                                                        */
/* ═══════════════════════════════════════════════════════════ */
.rk-list {
    background: var(--white, #fff);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(28,25,23,0.05), 0 1px 3px rgba(28,25,23,0.08);
    overflow: hidden;
}
.rk-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100, #f5f5f4);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.rk-row:last-child { border-bottom: none; }
.rk-row:hover { background: var(--gray-50, #fafaf9); }

/* Rank badge */
.rk-rank {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gray-100, #f5f5f4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--gray-500, #78716c);
    flex-shrink: 0;
}
.rk-rank.top { background: linear-gradient(135deg, var(--primary), #059669); color: #fff; }

/* Photo */
.rk-photo {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.rk-photo-ph {
    width: 56px; height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Info */
.rk-info { flex: 1; min-width: 0; }
.rk-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray-800, #292524);
}
.rk-row:hover .rk-name { color: var(--primary); }
.rk-meta {
    font-size: 12px;
    color: var(--gray-500, #78716c);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.rk-meta i { margin-right: 2px; font-size: 10px; }
.rk-award {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* Right side */
.rk-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 70px;
}
.rk-note {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.rk-avis {
    font-size: 11px;
    color: var(--gray-500, #78716c);
}
.rk-avis-site {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}
.rk-score-bar {
    width: 60px;
    height: 4px;
    background: var(--gray-200, #e7e5e4);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
    margin-left: auto;
}
.rk-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════ */
/* EMPTY STATE                                                 */
/* ═══════════════════════════════════════════════════════════ */
.rk-empty {
    text-align: center;
    padding: 60px 20px;
}
.rk-empty i { font-size: 48px; color: var(--gray-300, #d6d3d1); margin-bottom: 12px; display: block; }
.rk-empty h2 { font-size: 20px; color: var(--gray-700, #44403c); margin: 0 0 8px; }
.rk-empty p { font-size: 14px; color: var(--gray-500, #78716c); margin: 0; }

/* ═══════════════════════════════════════════════════════════ */
/* DARK MODE                                                   */
/* ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .rk-page { color: var(--text); }
[data-theme="dark"] .rk-hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%); }
[data-theme="dark"] .rk-list { background: var(--bg-elevated); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
[data-theme="dark"] .rk-row { border-color: var(--border); }
[data-theme="dark"] .rk-row:hover { background: var(--bg-hover); }
[data-theme="dark"] .rk-rank { background: var(--border); color: var(--text-muted); }
[data-theme="dark"] .rk-name { color: var(--text); }
[data-theme="dark"] .rk-podium-name { color: var(--text); }
[data-theme="dark"] .rk-podium-ville { color: var(--text-muted); }
[data-theme="dark"] .rk-podium-avis { color: var(--gray-400); }
[data-theme="dark"] .rk-podium-note { color: var(--primary); }
[data-theme="dark"] .rk-podium-photo { border-color: var(--border-strong); }
[data-theme="dark"] .gold .rk-podium-photo { border-color: #fbbf24; }
[data-theme="dark"] .rk-podium-ph { border-color: var(--border-strong); }
[data-theme="dark"] .gold .rk-podium-ph { border-color: #fbbf24; }
[data-theme="dark"] .rk-note { color: var(--primary); }
[data-theme="dark"] .rk-meta { color: var(--text-muted); }
[data-theme="dark"] .rk-avis { color: var(--gray-400); }
[data-theme="dark"] .rk-avis-site { color: var(--primary); }
[data-theme="dark"] .rk-score-bar { background: var(--border); }
[data-theme="dark"] .rk-pill { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .rk-pill:hover { color: white; }
[data-theme="dark"] .rk-pill.active { background: white; color: #00635a; }
[data-theme="dark"] .rk-empty i { color: var(--border-strong); }
[data-theme="dark"] .rk-empty h2 { color: var(--text); }
[data-theme="dark"] .rk-empty p { color: var(--text-muted); }
[data-theme="dark"] .rk-award { background: rgba(0,0,0,0.3) !important; }

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                  */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .rk-hero { padding: 28px 20px 24px; margin: 0 -20px 24px; }
    .rk-hero-title { font-size: 22px; }
    .rk-podium { gap: 12px; }
    .rk-podium-photo, .rk-podium-ph { width: 64px; height: 64px; }
    .gold .rk-podium-photo, .gold .rk-podium-ph { width: 80px; height: 80px; }
    .rk-podium-name { font-size: 12px; max-width: 100px; }
    .rk-row { padding: 12px 14px; gap: 10px; }
    .rk-photo, .rk-photo-ph { width: 48px; height: 48px; border-radius: 8px; font-size: 18px; }
    .rk-name { font-size: 13px; }
    .rk-note { font-size: 16px; }
    .rk-pill { padding: 6px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
    .rk-podium-photo, .rk-podium-ph { width: 56px; height: 56px; }
    .gold .rk-podium-photo, .gold .rk-podium-ph { width: 72px; height: 72px; }
    .rk-podium-medal { font-size: 22px; }
    .gold .rk-podium-medal { font-size: 28px; }
    .rk-photo, .rk-photo-ph { width: 42px; height: 42px; }
    .rk-score-bar { display: none; }
}
