/* Hall of Fame Page Styles */
html {
    scroll-snap-type: none; /* Tắt mặc định, sẽ được điều khiển bởi JavaScript */
}

.hall-of-fame-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, rgba(30, 30, 47, 0.9) 0%, rgba(18, 18, 18, 0.95) 100%);
    position: relative;
}

.hall-of-fame-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/topplayer.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1;
    z-index: -1;
}

/* Navigation styles được kế thừa từ style.css */

.hof-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: transparent;
    border-radius: 20px;
}

.hof-main-title {
    font-size: 2.8rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hof-subtitle {
    font-size: 1.3rem;
    color: #95a5a6;
    font-weight: 400;
    margin-bottom: 2rem;
    font-style: italic;
}

.hof-guide-link {
    margin-top: 2rem;
}

.guide-link-btn {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.guide-link-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem; /* nâng lên một chút để không bị ẩn trên 16:9 */
    cursor: pointer;
    color: #3498db;
    transition: all 0.3s ease;
    padding: 1rem;
}

.scroll-down-indicator:hover {
    color: #2ecc71;
    transform: translateY(5px);
}

.scroll-down-indicator svg {
    width: 30px;
    height: 30px;
    animation: bounce 2s infinite;
}

.scroll-down-indicator span {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.hof-header p {
    color: #ecf0f1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hof-inspiration {
    font-size: 1.3rem;
    color: #e74c3c;
    font-weight: 600;
    margin: 2rem 0;
}

.hof-contributions {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hof-contributions p {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hof-contributions ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.hof-contributions li {
    color: #ecf0f1;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.hof-contributions li:last-child {
    border-bottom: none;
}

/* Players Season Header */
.players-season-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.section-main-title {
    font-size: 2.5rem;
    color: #ffd700;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 0;
}

.players-season-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.players-season-nav-btn {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    width: var(--season-badge-height);
    height: var(--season-badge-height);
    font-size: 1.4rem;
    cursor: pointer;
    /* Chỉ transition hover/transform, không transition khi ẩn/hiện */
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-season-nav-btn.invisible {
    visibility: hidden; /* giữ không gian để badge luôn ở giữa */
}

.players-season-nav-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.players-season-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.current-season-display {
    text-align: center;
    font-size: 1.3rem;
    color: #ffd700;
    font-weight: 700;
    margin: 0;
    height: var(--season-badge-height);
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.current-season-display-wrapper {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

/* Season controls - rebuilt */
.season-controls {
    --season-badge-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 0;
    margin: 0 auto 1.5rem;
    width: max-content;
}

/* Player of the Season - Main Highlight */
.player-of-season-main {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 237, 78, 0.15) 100%);
    border-radius: 25px;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.player-of-season-description {
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-weight: 400;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.player-of-season-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Khi có background ảnh, thêm lớp tối để chữ rõ hơn */
.player-of-season-main.has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.main-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    display: inline-block;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes glow-golden {
    from {
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
    to {
        text-shadow: 0 0 35px rgba(255, 215, 0, 0.9), 0 0 45px rgba(255, 215, 0, 0.5);
    }
}

.player-of-season-card {
    background: rgba(30, 30, 47, 0.9);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 3rem 2.5rem;
    border: 2px solid rgba(255, 215, 0, 0.5);
    max-width: 500px;
    margin: 2rem auto 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.player-of-season-card.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 15px;
    z-index: 0;
}

.player-of-season-card .player-info { z-index: 1; }

.player-info {
    text-align: center;
    width: 100%;
}

.player-name {
    font-size: 3rem;
    color: #ffd700;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
    animation: glow-golden 2s ease-in-out infinite alternate;
}

.player-status {
    color: #95a5a6;
    font-style: italic;
    font-size: 1.2rem;
}

/* Player Categories */
.hof-players-section {
    margin: 4rem 0;
    padding: 3rem;
    background: transparent;
    border-radius: 20px;
}

.player-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-item {
    background: rgba(52, 152, 219, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 2.2rem 1.65rem 1.5rem; /* Giảm padding-bottom để có không gian cho stats */
    text-align: center;
    border: 2px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.1);
    z-index: 0;
}

.category-item.has-bg::before {
    background: rgba(30, 30, 47, 0.7);
}

.category-item .category-title,
.category-item .category-player,
.category-item .category-stats {
    position: relative;
    z-index: 1;
}

/* Đảm bảo zoom về center khi hover với background riêng */
.category-item.has-bg {
    background-position: center center;
}

.category-item.has-bg:hover {
    background-size: 110%;
    background-position: center center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
}

.category-title {
    color: #bdc3c7;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.category-player {
    color: #ffd700;
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.category-player.is-empty {
    color: #95a5a6;
    font-weight: 600;
    font-size: 1.1rem;
    font-style: italic;
    text-shadow: none;
}

.category-stats {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
    word-break: break-word;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Supporters Tables */
.hof-supporters-section {
    margin-top: 4rem;
    padding: 2rem;
    background: transparent;
    border-radius: 20px;
}

/* Scroll snap align cho từng section */
.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 100px; /* trừ chiều cao navbar */
    min-height: calc(100vh - 100px);
    scroll-behavior: smooth;
}

.hof-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.hof-table-header > .season-nav-btn:first-of-type {
    grid-column: 1;
}

.hof-table-header > .season-nav-btn:last-of-type {
    grid-column: 3;
}

.hof-title-wrap { 
    text-align: center; 
    grid-column: 1 / -1; /* Span across all columns */
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    pointer-events: none;
}
.hof-title-wrap h2 { color: #3498db; font-size: 1.8rem; margin: 0; }
.hof-season-subtitle { color: #95a5a6; font-size: 1rem; margin-top: 0.25rem; }

.season-nav-btn {
    position: relative;
    z-index: 1;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 2px solid rgba(52, 152, 219, 0.5);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-nav-btn[style*="visibility: hidden"] {
    pointer-events: none;
    opacity: 0;
}

.season-nav-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.season-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.hof-table-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.hof-supporter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hof-supporter-row:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
}

.hof-supporter-row-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.hof-supporter-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7f8c8d;
    min-width: 40px;
    text-align: center;
}

.hof-supporter-name {
    font-weight: 600;
    color: #ecf0f1;
    font-size: 1.1rem;
}

.hof-supporter-row-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Supporters display as rows (removed card style) */

.hof-supporter-rank {
    font-weight: 700;
    font-size: 1rem;
}

.hof-supporter-rank.ultimate-vip {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    animation: blink-golden 2s ease-in-out infinite;
}

.hof-supporter-rank.mega-vip {
    color: #9b59b6;
    text-shadow: 0 0 6px rgba(155, 89, 182, 0.4);
}

.hof-supporter-rank.super-vip {
    color: #3498db;
    text-shadow: 0 0 6px rgba(52, 152, 219, 0.4);
}

.hof-supporter-rank.vip {
    color: #2ecc71;
    text-shadow: 0 0 6px rgba(46, 204, 113, 0.4);
}

/* Donate Guide Modal */
.donate-guide-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.donate-guide-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.donate-guide-content {
    background: linear-gradient(135deg, rgba(30, 30, 47, 0.95) 0%, rgba(18, 18, 18, 0.98) 100%);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    margin: auto;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.donate-guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 2px solid rgba(231, 76, 60, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.donate-guide-close:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: rotate(90deg);
}

.donate-guide-content h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-note {
    color: #ecf0f1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.guide-note strong {
    color: #e74c3c;
}

.guide-criteria {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.guide-criteria p {
    color: #ecf0f1;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.guide-criteria p:last-child {
    margin-bottom: 0;
}

.guide-payment {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-align: center;
}

.payment-title {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.payment-info {
    margin-bottom: 1.5rem;
}

.payment-info p {
    color: #ecf0f1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.payment-info strong {
    color: #3498db;
}

.qr-code-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.qr-code-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.qr-note {
    color: #95a5a6;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

.guide-warning {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.warning-title {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-warning p {
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.guide-warning p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hall-of-fame-main {
        padding-top: 80px;
    }

    .hof-main-title {
        font-size: 2rem;
    }

    .hof-subtitle {
        font-size: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .donate-guide-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .donate-guide-content h2 {
        font-size: 1.5rem;
    }

    .qr-code-image {
        max-width: 250px;
    }

    .player-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hof-table-container {
        padding: 1rem;
    }

    .hof-supporter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .hof-supporter-row-left {
        width: 100%;
    }

    .hof-supporter-row-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .players-season-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-main-title {
        font-size: 2rem;
    }

    .current-season-display {
        font-size: 1.1rem;
    }

    .season-badge-wrap { --season-badge-height: 48px; }
    .players-season-nav-btn { font-size: 1.2rem; }

    .hof-table-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hof-table-header h2 {
        font-size: 1.3rem;
    }

    .season-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

