/**
 * S.T.A.L.K.E.R. 2 Wiki - Hall of Fame Styles
 * Premium AAA-level design for collection completionists
 */

/* ── Modal overlay ── */
.hof-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hof-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal container ── */
.hof-modal {
    font-family: var(--fontFamilyMain, 'Rubik', sans-serif);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: linear-gradient(180deg, var(--bgColorMainBlack) 0%, #0c0c0e 100%);
    border: 1px solid rgba(224, 175, 76, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 60px rgba(224, 175, 76, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.6);
}
.hof-overlay.active .hof-modal {
    transform: translateY(0) scale(1);
}

/* ── Header ── */
.hof-header {
    position: relative;
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(224, 175, 76, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(224, 175, 76, 0.1);
}
.hof-header-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    opacity: 0.9;
}
.hof-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #E0AF4C;
    margin-bottom: 6px;
}
.hof-subtitle {
    font-size: 13px;
    color: var(--colorFwoolf-black, #71717a);
    font-weight: 400;
}
.hof-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hof-close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.hof-close-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ── Scrollable body ── */
.hof-body {
    padding: 24px 32px 32px;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
}

/* ── Legend list ── */
.hof-legends {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hof-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(224, 175, 76, 0.03);
    border: 1px solid rgba(224, 175, 76, 0.08);
    margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
}
.hof-legend:hover {
    background: rgba(224, 175, 76, 0.06);
    border-color: rgba(224, 175, 76, 0.15);
}

/* Rank number */
.hof-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #E0AF4C;
    background: rgba(224, 175, 76, 0.08);
    border: 1px solid rgba(224, 175, 76, 0.15);
    border-radius: 8px;
}
.hof-rank--1 {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
}
.hof-rank--2 {
    color: #C0C0C0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.12), rgba(192, 192, 192, 0.04));
    border-color: rgba(192, 192, 192, 0.25);
}
.hof-rank--3 {
    color: #CD7F32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.12), rgba(205, 127, 50, 0.04));
    border-color: rgba(205, 127, 50, 0.25);
}

/* Avatar */
.hof-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(224, 175, 76, 0.2);
}
.hof-legend:first-child .hof-avatar {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

/* Info */
.hof-info {
    flex: 1;
    min-width: 0;
}
.hof-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--colorMain, #fafafa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hof-name:hover {
    color: #E0AF4C;
}
.hof-name-verify {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.hof-date {
    font-size: 12px;
    color: var(--colorFwoolf-black, #71717a);
    margin-top: 2px;
}

/* Status badge */
.hof-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E0AF4C;
    background: linear-gradient(135deg, rgba(224, 175, 76, 0.12), rgba(224, 175, 76, 0.04));
    border: 1px solid rgba(224, 175, 76, 0.2);
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Empty state ── */
.hof-empty {
    text-align: center;
    padding: 40px 20px;
}
.hof-empty-text {
    font-size: 14px;
    color: var(--colorFwoolf-black, #71717a);
    line-height: 1.6;
}

/* ── Progress section (profile-style animated bar) ── */
.hof-progress {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.hof-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.hof-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--colorMain, #fafafa);
}
.hof-progress-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #E0AF4C);
}
.hof-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.hof-progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent, transparent 19.5%, rgba(255,255,255,0.15) 19.5%, rgba(255,255,255,0.15) 20.5%, transparent 20.5%);
    z-index: 2;
    pointer-events: none;
}
.hof-progress-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--colorSrvdl, #b47b2e), var(--accent, #E0AF4C), var(--accentlite, #f5d98a), var(--accent, #E0AF4C));
    background-size: 200% 100%;
    animation: hofShimmer 2s ease-in-out infinite;
    position: relative;
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(224, 175, 76, 0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.hof-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    filter: blur(2px);
}
.hof-progress-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}
.hof-progress-stat {
    font-size: 13px;
    color: var(--colorFwoolf-black, #71717a);
}
.hof-progress-stat strong {
    color: var(--colorMain, #fafafa);
}
@keyframes hofShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Open button (used on roulette page) ── */
.hof-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(224, 175, 76, 0.08);
    border: 1px solid rgba(224, 175, 76, 0.15);
    border-radius: 8px;
    color: #E0AF4C;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.hof-open-btn:hover {
    background: rgba(224, 175, 76, 0.12);
    border-color: rgba(224, 175, 76, 0.25);
}
.hof-open-btn-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* ── Stalker Legend glow effect on profile ── */
.stalker-legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accentlite);
    background: linear-gradient(135deg, rgb(255 181 78 / 56%), rgba(224, 175, 76, 0.06));
    border: 1px solid var(--accentlite);
    border-radius: 20px;
    animation: legendGlow 2s ease-in-out infinite;
}
.stalker-legend-icon {
    width: 18px;
    height: 18px;
}
@keyframes legendGlow {
    0%, 100% {
        box-shadow: 0 0 16px rgb(255 181 78 / 53%);
        border-color: var(--accentlite);
    }
    50% {
        box-shadow: 0 0 16px rgb(255 181 78 / 43%);
        border-color: var(--accentlite);
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hof-modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    .hof-header {
        padding: 24px 20px 20px;
    }
    .hof-body {
        padding: 20px;
        max-height: calc(100vh - 32px - 120px);
    }
    .hof-title {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .hof-legend {
        padding: 12px;
        gap: 12px;
    }
    .hof-avatar {
        width: 36px;
        height: 36px;
    }
    .hof-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .stalker-legend-badge { padding: 4px 10px; font-size: 10px; letter-spacing: 1px; }
    .stalker-legend-icon { width: 14px; height: 14px; }
}
@media (max-width: 420px) {
    .stalker-legend-badge { padding: 3px 8px; font-size: 9px; letter-spacing: 0.8px; }
    .stalker-legend-icon { width: 13px; height: 13px; }
}
@media (max-width: 380px) {
    .stalker-legend-badge { padding: 3px 7px; font-size: 8px; letter-spacing: 0.5px; }
    .stalker-legend-icon { width: 12px; height: 12px; }
}
