/*
 * Hodnoceniher.cz - section "Recenzenti" (profiles of the game servers)
 */

/* ---------- Strictness value, verdict ---------- */
.rv-strict { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-strict--stricter { color: var(--score-low); }
.rv-strict--milder { color: var(--score-high); }
.rv-strict--similar, .rv-strict--none { color: var(--text-muted); }
.rv-verdict--stricter { color: var(--score-low); }
.rv-verdict--milder { color: var(--score-high); }
.rv-verdict--similar { color: var(--brand-strong); }
.rv-verdict--none { color: var(--text-muted); font-size: 1rem; }

.rv-card-title { margin: 0; font-size: 1rem; }

/* ---------- Index: highlights ---------- */
.rv-highlights { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 14px; }
.rv-highlight {
    display: grid;
    gap: 2px;
    flex: 1 1 140px;
    max-width: 260px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
    color: var(--text);
}
.rv-highlight:hover { border-color: var(--brand); text-decoration: none; color: var(--text); }
.rv-highlight .rv-strict { font-size: 1.2rem; }
.rv-highlights__note { align-self: end; }

/* ---------- Index: table ---------- */
.rv-table-wrap { padding: clamp(8px, 1.2vw, 16px); }
.rv-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rv-table th, .rv-table td { padding: 10px 12px; text-align: left; vertical-align: middle; }
.rv-table thead th {
    position: sticky;
    top: var(--header-h);
    z-index: 1;
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--border);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.rv-table tbody tr { border-top: 1px solid var(--border); }
.rv-table tbody tr:first-child { border-top: 0; }
.rv-table tbody tr:hover { background: var(--bg-subtle); }
.rv-table tbody th { font-weight: 600; }
.rv-table__reviews, .rv-table__average, .rv-table__strictness { text-align: right !important; font-variant-numeric: tabular-nums; }
.rv-table__first, .rv-table__last { white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rv-table__lang { color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.rv-sort { color: var(--text-muted); }
.rv-sort:hover { color: var(--link); text-decoration: none; }
.rv-sort.is-active { color: var(--text); }
.rv-table thead .rv-sort.is-active span { color: var(--brand-strong); }
.rv-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 500;
    vertical-align: middle;
}
.rv-mobile-sort { display: none; margin: 4px 4px 12px; }

@media (max-width: 759px) {
    .rv-mobile-sort { display: flex; }
    .rv-table thead { display: none; }
    .rv-table, .rv-table tbody, .rv-table tr { display: block; }
    .rv-table tbody tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 10px;
        padding: 12px 6px;
    }
    .rv-table tbody tr:hover { background: none; }
    .rv-table th, .rv-table td { padding: 0; }
    .rv-table tbody th { grid-column: 1 / -1; font-size: 1rem; }
    .rv-table td { display: flex; flex-direction: column; gap: 2px; text-align: left !important; font-size: .88rem; }
    .rv-table td::before { content: attr(data-label); color: var(--text-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
    .rv-table td .score { align-self: flex-start; }
}

.rv-explain ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Detail ---------- */
.rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); }
.rv-head__main { flex: 1 1 320px; min-width: 0; }
.rv-head__main h1 { overflow-wrap: anywhere; }
.rv-head__score { display: grid; justify-items: center; gap: 6px; }
.rv-head__score .score { font-size: 2.2rem; padding: .35em .5em; }

.rv-fill { background: var(--score-color); }
.rv-legend { flex-direction: column; }

.rv-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rv-years__row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 5.8em; align-items: center; gap: 10px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rv-years__year { color: var(--text-muted); font-weight: 600; }
.rv-years__track { height: 10px; border-radius: 5px; background: var(--bg-subtle); overflow: hidden; }
.rv-years__bar { display: block; height: 100%; width: calc(var(--share) * 100%); min-width: 2px; border-radius: 5px; background: var(--brand); }
.rv-years__count { font-weight: 700; text-align: right; white-space: nowrap; }

.rv-columns { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.rv-columns > .panel { min-width: 0; }

.rv-list { list-style: none; margin: 0; padding: 0; counter-reset: rv; }
.rv-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    min-width: 0;
}
.rv-list__item:first-child { border-top: 0; }
.rv-list__item .score { flex: none; }
.rv-list__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rv-list__others { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.rv-list--latest time { flex: none; font-variant-numeric: tabular-nums; }
.rv-diff { min-width: 2.6em; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-diff--up { color: var(--score-high); }
.rv-diff--down { color: var(--score-low); }

.rv-back { margin: 16px 0 0; }

@media (max-width: 480px) {
    .rv-list__others .muted { display: none; }
}
