/* ════════════════════════════════════════════════════════════
   LEADERBOARD & FAQ PAGES - Modern Design
   ════════════════════════════════════════════════════════════ */

/* Common Page Styles */
.leaderboard-page,
.faq-page {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: var(--bg-primary);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-icon {
    width: 60px;
    height: 60px;
    color: var(--primary);
    flex-shrink: 0;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
   LEADERBOARD STYLES
   ════════════════════════════════════════════════════════════ */

.leaderboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-tab svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.leaderboard-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.leaderboard-tab.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
}

/* Podium (Top 3) - Все в ряд */
.leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.podium-player {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.podium-player:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.podium-player.first {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 215, 0, 0.4);
}

.podium-player.second {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.4);
}

.podium-player.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(184, 115, 51, 0.1));
    border-color: rgba(205, 127, 50, 0.4);
}

.podium-rank {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.podium-player.first .podium-rank {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    animation: pulse-gold 2s ease-in-out infinite;
}

.podium-player.second .podium-rank {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
    box-shadow: 0 5px 20px rgba(192, 192, 192, 0.5);
}

.podium-player.third .podium-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    box-shadow: 0 5px 20px rgba(205, 127, 50, 0.5);
}

@keyframes pulse-gold {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

.podium-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.podium-player.first .podium-avatar {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.podium-player.second .podium-avatar {
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.3);
}

.podium-player.third .podium-avatar {
    border-color: rgba(205, 127, 50, 0.5);
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.3);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-username {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Все места одинакового размера */
.podium-username {
    font-size: 18px;
    font-weight: 700;
}

.podium-stat-value.level-badge {
    font-size: 14px;
    padding: 4px 10px;
}

.podium-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.podium-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
}

.podium-stat-label {
    color: var(--text-secondary);
}

.podium-stat-value {
    font-weight: 700;
    color: var(--success);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.leaderboard-player:hover {
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.leaderboard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-username {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Status Colors for Leaderboard */
.leaderboard-username.status-bronze,
.podium-username.status-bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
}

.leaderboard-username.status-silver,
.podium-username.status-silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
}

.leaderboard-username.status-gold,
.podium-username.status-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
}

.leaderboard-username.status-platinum,
.podium-username.status-platinum {
    background: linear-gradient(135deg, #e5e4e2, #a8a8a8, #e5e4e2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
    animation: platinumFlow 3s ease-in-out infinite;
}

.leaderboard-username.status-diamond,
.podium-username.status-diamond {
    background: linear-gradient(135deg, #b9f2ff, #82e0ff, #4dd0ff, #82e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
    animation: diamondFlow 3s ease-in-out infinite;
}

.leaderboard-username.status-legend,
.podium-username.status-legend {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcf7f, #4d96ff, #b565d8, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none !important;
    text-shadow: none !important;
    -webkit-filter: none !important;
    animation: legendFlow 4s ease-in-out infinite;
}

/* Убираем все тени для всех никнеймов в leaderboard */
.leaderboard-username,
.podium-username {
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
}

@keyframes platinumFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes diamondFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes legendFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.leaderboard-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.leaderboard-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.leaderboard-detail svg {
    width: 16px;
    height: 16px;
}

.leaderboard-winnings {
    font-size: 24px;
    font-weight: 800;
    color: var(--success);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-winnings .level-badge {
    margin: 0;
}

.leaderboard-winnings .level-xp {
    font-size: 14px;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   FAQ STYLES
   ════════════════════════════════════════════════════════════ */

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.faq-category-title svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    margin: 10px 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 15px;
}

.faq-answer p:first-child {
    margin-top: 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════════════════════════ */

@media (max-width: 968px) {
    .leaderboard-podium {
        grid-template-columns: 1fr;
    }
    
    .podium-player.first {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-icon {
        width: 50px;
        height: 50px;
    }
    
    .leaderboard-player {
        flex-wrap: wrap;
    }
    
    .leaderboard-winnings {
        font-size: 20px;
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }
    
    .faq-question span {
        font-size: 16px;
    }
    
    .faq-category {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header-content {
        gap: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .leaderboard-tab {
        width: 100%;
        padding: 12px 20px;
    }
    
    .leaderboard-podium {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .podium-player {
        padding: 24px 18px;
    }
    
    .leaderboard-player {
        padding: 15px;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .leaderboard-winnings {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        font-size: 20px;
    }
    
    .podium-avatar {
        width: 80px;
        height: 80px;
    }
    
    .podium-player.first .podium-avatar {
        width: 90px;
        height: 90px;
    }
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ════════════════════════════════════════════════════════════
   SITE RULES PAGE - Modern Design
   ════════════════════════════════════════════════════════════ */

.site-rules-page {
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: var(--bg-primary);
}

.site-rules-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Rules Cards */
.rules-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(30, 30, 40, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rules-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rules-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
}

.rules-card-header svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.rules-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-card-body {
    padding: 24px;
}

.rules-card-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rules-card-body p strong {
    color: var(--text-primary);
    font-weight: 700;
}

.rules-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-card-list li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.rules-card-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.rules-card-list li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 3px;
}

.rules-card-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.rules-card-list li a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rules-card-list li a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.rules-card-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Danger Card (Запрещённые действия) */
.rules-card-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.rules-card-danger:hover {
    border-color: rgba(239, 68, 68, 0.5);
}

.rules-card-danger .rules-card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.rules-card-danger .rules-card-header svg {
    color: var(--danger);
}

.rules-card-list-danger li {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.rules-card-list-danger li:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.rules-card-list-danger li svg {
    color: var(--danger);
}

.rules-warning {
    margin-top: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.08));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-warning svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.rules-warning span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rules-warning strong {
    color: var(--gold);
}

/* Success Card (Контакты) */
.rules-card-success {
    border-color: rgba(16, 185, 129, 0.3);
}

.rules-card-success:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.rules-card-success .rules-card-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.rules-card-success .rules-card-header svg {
    color: var(--success);
}

/* Site Rules Footer */
.site-rules-footer {
    margin-top: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    text-align: center;
}

.site-rules-footer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 8px 0;
}

.site-rules-footer strong {
    color: var(--text-primary);
    font-weight: 700;
}

