@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0D0F12;
    --bg-navbar: rgba(22, 27, 34, 0.85);
    --text-main: #F0F6FC;
    --text-muted: #8B949E;
    --accent: #F2994A;
    --accent-dark: #D97E2E;
    --accent-light: #F4AE63;
    --accent-glow: rgba(242, 153, 74, 0.15);
    --border-color: rgba(242, 153, 74, 0.2);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    cursor: url("../images/cursor-_11_.png"), pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(242, 153, 74, 0.1),
        transparent 80%
    );
    pointer-events: none;
    z-index: -1;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    padding: 0 40px;
    height: 75px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-1px);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid var(--accent);
    padding: 4px;
    background: var(--accent-glow);
    transition: all 0.3s ease;
}

.logo-container:hover img {
    background: rgba(242, 153, 74, 0.25);
    box-shadow: 0 0 20px rgba(242, 153, 74, 0.3);
    filter: saturate(1.2) brightness(1.1);
}

.navbar-logo h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.logo-container:hover h2 {
    color: var(--accent);
}

.navbar-logo span {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.navbar ul {
    flex: 2;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    justify-content: center;
}

.navbar ul li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar ul li a:hover, 
.navbar ul li a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.navbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--accent);
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-icon-cta {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.navbar-cta:hover {
    background-color: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 153, 74, 0.4);
}

.navbar-cta:hover .nav-icon-cta {
    transform: scale(1.1);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropbtn {
    cursor: pointer;
}

.arrow-svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.4s ease;
}

.filter-btn.active .arrow-svg {
    transform: rotate(180deg);
}

.filter-btn.active, 
.nav-dropdown:hover .dropbtn {
    color: var(--accent);
    background: var(--accent-glow);
}

.filter-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #161B22;
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    z-index: 1000;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 8px 0;
}

.filter-content.show {
    display: block;
}

.filter-content a {
    color: var(--text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.filter-content a:hover {
    background: var(--accent-glow);
    color: var(--accent);
    padding-left: 25px;
}


.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(242, 153, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 153, 74, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
}

.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 153, 74, 0.5), transparent);
    top: -100px;
    right: -200px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 153, 74, 0.3), transparent);
    bottom: 100px;
    left: -100px;
}


.leaderboard-section {
    position: relative;
    z-index: 5;
    padding: 140px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 80px 20px;
    position: relative;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(242, 153, 74, 0.15), transparent);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.contact-header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #FFF 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 1;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(242, 154, 74, 0.1), rgba(13, 16, 21, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(242, 154, 74, 0.15), rgba(13, 16, 21, 0.9));
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(242, 154, 74, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.stat-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon svg {
    transform: scale(1.1);
    color: var(--accent-light);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.2rem;  
    font-weight: 800;
    color: var(--text-main);
}


.leaderboard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.player-card {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(90deg, 
        rgba(242, 154, 74, 0.05) 0%, 
        rgba(13, 16, 21, 0.6) 50%,
        rgba(13, 16, 21, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(242, 154, 74, 0.08) 0%,
        transparent 20%,
        transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-card:hover {
    border-color: var(--accent-light);
    background: linear-gradient(90deg, 
        rgba(242, 154, 74, 0.1) 0%, 
        rgba(13, 16, 21, 0.75) 50%,
        rgba(13, 16, 21, 0.75) 100%);
    transform: translateX(6px);
    box-shadow: 0 12px 35px rgba(242, 154, 74, 0.12);
}

.player-card:hover::before {
    opacity: 1;
}

.player-card.rank-1 {
    border-left-color: #FFD700;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(13, 16, 21, 0.7) 50%,
        rgba(13, 16, 21, 0.7) 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
}

.player-card.rank-1:hover {
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.player-card.rank-2 {
    border-left-color: #C0C0C0;
    background: linear-gradient(90deg, 
        rgba(192, 192, 192, 0.1) 0%, 
        rgba(13, 16, 21, 0.65) 50%,
        rgba(13, 16, 21, 0.65) 100%);
}

.player-card.rank-3 {
    border-left-color: #CD7F32;
    background: linear-gradient(90deg, 
        rgba(205, 127, 50, 0.1) 0%, 
        rgba(13, 16, 21, 0.65) 50%,
        rgba(13, 16, 21, 0.65) 100%);
}

.rank-medal {
    font-size: 1.8rem;
    font-weight: 900;
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.player-card:hover .player-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(242, 154, 74, 0.25);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.player-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-steamid {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.player-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 80px;
    transition: all 0.3s ease;
}

.stat-item .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-item.highlight {
    background: rgba(242, 154, 74, 0.12);
    border-color: rgba(242, 154, 74, 0.3);
}

.stat-item.highlight .stat-value {
    color: var(--accent-light);
}

.progression-bar {
    display: none;
}

@media (min-width: 1024px) {
    .player-card {
        grid-template-columns: 50px 1fr auto auto;
        gap: 24px;
    }

    .progression-bar {
        display: flex;
        width: 100%;
        grid-column: 1 / -1;
        height: 3px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
        overflow: hidden;
        margin-top: 8px;
    }

    .progression-bar .progress {
        height: 100%;
        background: linear-gradient(90deg, var(--accent), var(--accent-light));
        border-radius: 2px;
        transition: width 0.5s ease;
    }
}


@media (max-width: 768px) {
    .player-card {
        grid-template-columns: 45px 1fr;
        gap: 14px;
        padding: 16px 18px;
    }

    .player-stats {
        grid-column: 1 / -1;
        gap: 10px;
        margin-top: 8px;
    }

    .stat-item {
        flex: 1;
        padding: 10px 14px;
        min-width: auto;
    }

    .stat-item .stat-value {
        font-size: 1.1rem;
    }

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

    .stats-overview {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .stat-icon {
        font-size: 2rem;
        min-width: 50px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 0 20px;
    }

    .navbar ul {
        gap: 4px;
    }

    .navbar ul li a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .leaderboard-section {
        padding: 100px 16px 60px 16px;
    }

    .player-card {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 14px 14px;
    }

    .player-stats {
        gap: 8px;
    }

    .stat-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .stat-item .stat-value {
        font-size: 1rem;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .rank-medal {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 0 16px;
    }

    .navbar-logo h2 {
        font-size: 14px;
    }
}


.no-data,
.error-box {
    background: linear-gradient(135deg, rgba(242, 154, 74, 0.08), rgba(13, 16, 21, 0.8));
    border: 2px dashed var(--glass-border);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.error-box {
    border-color: rgba(255, 87, 87, 0.3);
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.08), rgba(13, 16, 21, 0.8));
    color: #FF5757;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.player-card {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.player-card:nth-child(1) { animation-delay: 0.1s; }
.player-card:nth-child(2) { animation-delay: 0.2s; }
.player-card:nth-child(3) { animation-delay: 0.3s; }
.player-card:nth-child(n + 4) { animation-delay: calc(0.05s * (var(--index, 1) - 3)); }