/* Зал славы — топы игроков за всю историю */

.hall-of-fame {
    max-width: 1700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Заголовок */
.hof-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hof-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f5c542;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.hof-title-icon {
    font-size: 2.5rem;
    color: #f5c542;
}

.hof-subtitle {
    margin-top: 0.5rem;
    color: #888;
    font-size: 1rem;
}

/* Сетка карточек */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .hof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hof-grid { grid-template-columns: 1fr; }
}

/* Карточка */
.hof-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.hof-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.5rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.hof-card-header .material-symbols-outlined {
    font-size: 1.5rem;
}

.hof-card-title {
    flex: 1;
}

/* Цвета шапок */
.hof-color-pink   { background: linear-gradient(135deg, #d83894, #b62a7c); }
.hof-color-gold   { background: linear-gradient(135deg, #f5c542, #d4a017); color: #2a1f00; }
.hof-color-bronze { background: linear-gradient(135deg, #b8703a, #8c4a1f); }
.hof-color-orange { background: linear-gradient(135deg, #f59042, #d46817); }
.hof-color-red    { background: linear-gradient(135deg, #d83838, #a01a1a); }
.hof-color-black  { background: linear-gradient(135deg, #2a2a2a, #0a0a0a); }
.hof-color-purple { background: linear-gradient(135deg, #7a4ed4, #5a2ea0); }
.hof-color-teal   { background: linear-gradient(135deg, #1fa67a, #157c5a); }
.hof-color-indigo { background: linear-gradient(135deg, #4f5dd8, #2a3aa8); }

/* Подзаголовок */
.hof-card-sub {
    padding: 0.7rem 1.5rem;
    background: #141414;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Список */
.hof-list {
    padding: 0.5rem 0;
}

.hof-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    transition: background 0.15s ease;
}

.hof-row:hover {
    background: #222;
}

.hof-rank {
    width: 1.5rem;
    text-align: center;
    color: #888;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Первые 3 места выделены */
.hof-row:nth-child(1) .hof-rank { color: #f5c542; }
.hof-row:nth-child(2) .hof-rank { color: #c0c0c0; }
.hof-row:nth-child(3) .hof-rank { color: #cd7f32; }

.hof-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.hof-user:hover .hof-user-name {
    color: var(--clm-red, #e53e3e);
}

.hof-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a2a;
    flex-shrink: 0;
}

.hof-user-info {
    min-width: 0;
    flex: 1;
}

.hof-user-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.hof-user-club {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hof-count {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 2.5rem;
    text-align: right;
}

/* Процентный блок: большой процент сверху, x/y снизу */
.hof-value {
    text-align: right;
    min-width: 3.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hof-percent {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
}

.hof-ratio {
    color: #888;
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Кликабельные значения — кнопка без дефолтных стилей */
.hof-trigger {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    font: inherit;
    color: inherit;
}

.hof-trigger:hover {
    background: rgba(245, 197, 66, 0.12);
    border-color: rgba(245, 197, 66, 0.45);
}

.hof-trigger:active {
    transform: scale(0.97);
}

.hof-trigger:focus-visible {
    outline: 2px solid #f5c542;
    outline-offset: 2px;
}

.hof-trigger-loading {
    opacity: 0.5;
    pointer-events: none;
}

.hof-empty {
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ===== Модалка с детализацией ===== */
.hof-popup .popup-content {
    width: 100%;
    max-width: 720px;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    color: #fff;
    overflow: hidden;
}

.hof-popup .popup-close {
    color: #fff;
    z-index: 5;
}

.hof-detail-loading {
    padding: 3rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

.hof-detail-header {
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.hof-detail-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hof-detail-title .material-symbols-outlined {
    font-size: 1.5rem;
}

.hof-detail-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.hof-detail-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a2a;
    flex-shrink: 0;
}

.hof-detail-user-info {
    flex: 1;
    min-width: 0;
}

.hof-detail-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.hof-detail-name:hover {
    color: var(--clm-red, #e53e3e);
}

.hof-detail-club {
    color: #888;
    font-size: 0.85rem;
    margin-top: 2px;
}

.hof-detail-summary {
    text-align: right;
    flex-shrink: 0;
}

.hof-detail-value {
    color: #f5c542;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.hof-detail-summary-label {
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
}

.hof-detail-empty {
    padding: 2rem;
    text-align: center;
    color: #777;
}

.hof-detail-table-wrap {
    max-height: 60vh;
    overflow-y: auto;
}

.hof-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.hof-detail-table thead th {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.hof-detail-table th.hof-th-extra,
.hof-detail-table td.hof-td-extra {
    text-align: right;
    white-space: nowrap;
}

.hof-detail-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #1f1f1f;
    color: #ddd;
}

.hof-detail-table tr:last-child td {
    border-bottom: none;
}

.hof-detail-table tr:hover td {
    background: #1f1f1f;
}

.hof-td-date {
    color: #888;
    white-space: nowrap;
    width: 1%;
}

.hof-td-name a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.hof-td-name a:hover {
    color: var(--clm-red, #e53e3e);
    text-decoration: underline;
}

.hof-detail-meta {
    color: #666;
    font-size: 0.8rem;
    margin-left: 4px;
}

.hof-place {
    display: inline-block;
    min-width: 1.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #2a2a2a;
    color: #aaa;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.hof-place-hit {
    background: rgba(31, 166, 122, 0.2);
    color: #1fa67a;
}

.hof-place-empty {
    color: #555;
}

.hof-detail-row-hit td {
    background: rgba(31, 166, 122, 0.06);
}

.hof-detail-row-hit:hover td {
    background: rgba(31, 166, 122, 0.12);
}

@media (max-width: 640px) {
    .hof-detail-user {
        flex-wrap: wrap;
    }
    .hof-detail-summary {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
    .hof-detail-value {
        font-size: 1.5rem;
    }
    .hof-detail-table {
        font-size: 0.85rem;
    }
    .hof-detail-table th,
    .hof-detail-table td {
        padding: 0.6rem 0.75rem;
    }
}
