/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Yükleme ekranı */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.page-loader.show {
    opacity: 1;
    visibility: visible;
}

.page-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #06D85F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Snow effect */
.snowflake {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 0;
    animation: fall linear infinite;
    pointer-events: none; /* Kar tanelerinin tıklamayı engellememesi için */
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(30px);
        opacity: 0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10000;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    color: #111;
    border-radius: 10px;
    width: 400px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.popup .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: red;
}

/* --- EKLENEN ANİMASYONLAR --- */
@keyframes shimmer {
    0% {
        background-position: -500px 0;
    }
    100% {
        background-position: 500px 0;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseBounce {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }
    50% {
        transform: translateY(-4px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Holografik Titreşim / Parçacık Etkisi */
@keyframes holographic-flicker {
    0% {
        box-shadow: 0 0 0px transparent,
        0 0 0px transparent;
        opacity: 0.8;
    }
    10% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(0, 255, 255, 0.2);
        opacity: 0.9;
    }
    20% {
        box-shadow: 0 0 2px transparent,
        0 0 4px transparent;
        opacity: 0.8;
    }
    30% {
        box-shadow: 0 0 7px rgba(255, 255, 255, 0.4),
        0 0 12px rgba(0, 255, 255, 0.3);
        opacity: 1;
    }
    40% {
        box-shadow: 0 0 3px transparent,
        0 0 6px transparent;
        opacity: 0.85;
    }
    50% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(0, 255, 255, 0.4);
        opacity: 1;
    }
    60% {
        box-shadow: 0 0 4px transparent,
        0 0 8px transparent;
        opacity: 0.8;
    }
    70% {
        box-shadow: 0 0 9px rgba(255, 255, 255, 0.6),
        0 0 18px rgba(0, 255, 255, 0.5);
        opacity: 1;
    }
    80% {
        box-shadow: 0 0 5px transparent,
        0 0 10px transparent;
        opacity: 0.85;
    }
    90% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(0, 255, 255, 0.6);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0px transparent,
        0 0 0px transparent;
        opacity: 0.8;
    }
}

/* Glitch Efekti Keyframe'leri */
@keyframes digital-glitch {
    0% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
        box-shadow: 0 0 0 transparent;
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(10deg);
        box-shadow: 2px 2px 5px rgba(0, 255, 255, 0.4);
    }
    20% {
        transform: translate(2px, -2px);
        filter: hue-rotate(20deg);
        box-shadow: -2px -2px 5px rgba(255, 0, 255, 0.4);
    }
    30% {
        transform: translate(-1px, 1px);
        filter: hue-rotate(0deg);
        box-shadow: 1px 1px 3px rgba(0, 255, 255, 0.2);
    }
    40% {
        transform: translate(1px, -1px);
        filter: hue-rotate(10deg);
        box-shadow: -1px -1px 3px rgba(255, 0, 255, 0.2);
    }
    50% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
        box-shadow: 0 0 0 transparent;
    }
    100% {
        transform: translate(0, 0);
        filter: hue-rotate(0deg);
        box-shadow: 0 0 0 transparent;
    }
}

/* Hızlı Işık Çizgisi Slash (Oyuncu Kartları İçin) */
@keyframes light-slash {
    0% {
        transform: translate(-100%, -100%) rotate(45deg); /* Başlangıç: Sol üst dışarıda */
        opacity: 0;
    }
    1% {
        opacity: 1; /* Görünür hale gelir */
    }
    99% {
        opacity: 1; /* Görünür kalır */
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg); /* Bitiş: Sağ alt dışarıda */
        opacity: 0; /* Tekrar kaybolur */
    }
}

/* GÜNCELLENMİŞ ANİMASYON: Kenar "Çizik" Slash (Tier Sütunları İçin) */
@keyframes edge-slash {
    0% {
        box-shadow: 0 0 0 transparent;
    }
    10% {
        box-shadow: 2px 2px 0px rgba(0, 255, 255, 0.5), -2px -2px 0px rgba(255, 0, 255, 0.5);
    }
    20% {
        box-shadow: -2px 2px 0px rgba(0, 255, 255, 0.5), 2px -2px 0px rgba(255, 0, 255, 0.5);
    }
    30% {
        box-shadow: 2px -2px 0px rgba(0, 255, 255, 0.5), -2px 2px 0px rgba(255, 0, 255, 0.5);
    }
    40% {
        box-shadow: -2px -2px 0px rgba(0, 255, 255, 0.5), 2px 2px 0px rgba(255, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 0 transparent; /* Tekrar şeffaf olsun ki bir sonraki döngüde yenilensin */
    }
    100% {
        box-shadow: 0 0 0 transparent;
    }
}

/* YENİ ANİMASYON: Parlak Sütun Çerçevesi */
@keyframes tier-glow-border {
    0% {
        box-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        border-color: currentColor;
    }
    100% {
        box-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* YENİ ANİMASYON: Shimmer for Kit Tab */
@keyframes shimmer-tab {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}


.fade-in-up {
    animation: fadeSlideIn 0.6s ease-out both;
}

.rise-bounce {
    animation: riseBounce 0.8s ease forwards;
}

.wiggle-on-hover:hover {
    animation: wiggle 0.3s ease-in-out;
}

/* Modern Navigation Bar */
.modern-navbar {
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Navbar'a gölge eklendi */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    transition: transform 0.3s ease; /* Marka metnine transform geçişi */
}

.navbar-brand:hover .brand-text {
    transform: scale(1.05); /* Hover'da hafif büyütme */
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item .nav-link {
    text-decoration: none;
    color: #b8c5d6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative; /* underline efekti için */
    overflow: hidden; /* underline'ın taşmasını engelle */
}

.nav-item .nav-link::before { /* Alt çizgi efekti */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
    transform: translateX(-101%);
    transition: transform 0.3s ease-out;
}

.nav-item .nav-link:hover:not([style*="cursor: not-allowed"]) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item .nav-link:hover:not([style*="cursor: not-allowed"])::before {
    transform: translateX(0);
}

.nav-item .nav-link.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}
.nav-item .nav-link.active::before { /* Aktif linkte alt çizgi hep görünsün */
    transform: translateX(0);
    background-color: #FFD700;
}


.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: #6b7280;
    z-index: 1;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    color: #ffffff;
    min-width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); /* Focus'ta parlama */
}

.search-input::placeholder {
    color: #9ca3af;
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* GPU hızlandırma için */
    will-change: transform;
}
.button::before,
.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: left 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.button:hover::before,
.discord-btn:hover::before {
    left: 125%;
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}
.button:active,
.discord-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Hafif titreşim (opsiyonel) */
.button.wiggle-on-hover:hover,
.discord-btn.wiggle-on-hover:hover {
    animation: wiggle 0.4s ease-in-out;
}

/* Kit Selector */
.kit-selector {
    background: rgba(24, 24, 24, 0.05);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1); /* Alt kenara hafif iç gölge */
}

.kit-selector-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.kit-tabs {
    position: relative;
    display: flex;
    gap: 1rem; /* Butonlar arası boşluğu azalt */
    flex-wrap: nowrap; /* Butonların alt satıra geçmesini engelle */
    justify-content: flex-start; /* Butonları sola yasla */
    overflow-x: auto; /* Yatayda kaydırma çubuğu ekle */
    padding-bottom: 5px; /* Kaydırma çubuğu için boşluk */
}

.kit-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 90px; /* Buton genişliğini eski haline getir */
    padding: 8px 0 4px 0; /* Padding'i eski haline getir */
    border: 2px solid #1e1f26;
    border-radius: 16px 16px 0 0;
    text-decoration: none;
    background-color: #0f111a;
    color: #888;
    font-weight: 500;
    font-size: 13px; /* Font boyutunu eski haline getir */
    transition: all 0.2s ease-in-out, background-position 0.5s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.kit-tab:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.kit-tab.active {
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-bottom: none;
    border-color: #FFD700; /* Aktif tabın kenarlık rengi */
    box-shadow: 0 -4px 10px rgba(255, 215, 0, 0.3); /* Aktif tabın üstüne parlama */
    animation: shimmer-tab 2s infinite linear; /* Aktif tabda shimmer */
    background: linear-gradient(90deg, #0f111a 0%, rgba(255, 215, 0, 0.05) 50%, #0f111a 100%);
    background-size: 400% 100%;
}

.kit-tab.active .kit-name {
    font-weight: 600;
    color: #FFD700; /* Aktif tab adının rengi */
}

.kit-tab .kit-name {
    margin-top: 4px;
}

.kit-tab .active-indicator {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 999px;
}

.show-kit-btn {
    background: rgba(24, 24, 24, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Butona gölge */
}

.show-kit-btn:hover {
    background: rgba(24, 24, 24, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px); /* Hover'da hafif kalkma */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.show-kit-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
}

/* Tier Cards Container (Ana Sayfa) */
.tier-cards-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tier-card {
    background: rgba(24, 24, 24, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Genel gölge eklendi */
}

.tier-card:hover {
    transform: translateY(-4px);
    background: rgba(24, 24, 24, 0.08); /* Hover'da daha belirgin arka plan */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #e0e0e0; /* Başlık rengi */
}

.tier-count {
    background: rgba(24, 24, 24, 0.15); /* Daha belirgin sayfa */
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFD700; /* Sayaç rengi */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-players-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tier-icon-img { /* Buradaki tier logoları için boyutlandırma */
    width: 25px;
    height: 25px;
    margin-bottom: -1px;
    object-fit: contain; /* Görselin orantısını koru */
}


.tier-player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(24, 24, 24, 0.08); /* Daha koyu arka plan */
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Hafif gölge */
}

.tier-player-item:hover {
    background: rgba(24, 24, 24, 0.15); /* Hover'da daha da koyu arka plan */
    transform: translateX(5px); /* Hafif sağa kayma */
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.99rem;
    margin-left: 5px;
}

.player-tier {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 0.2rem;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); /* Tier badge'lerine gölge */
}

.player-tier.ht1, .player-tier.ht2, .player-tier.ht3, .player-tier.ht4, .player-tier.ht5 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.player-tier.lt1, .player-tier.lt2, .player-tier.lt3, .player-tier.lt4, .player-tier.lt5 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.no-players, .more-players {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 1rem;
}

.more-players {
    background: rgba(24, 24, 24, 0.08); /* Daha belirgin arka plan */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.more-players:hover {
    background: rgba(24, 24, 24, 0.15);
    transform: translateY(-2px);
}

/* Overall Rankings */
.overall-rankings {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
}

.rankings-header {
    margin-bottom: 2rem;
    text-align: center; /* Başlığı ortala */
}

.header-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* Tabları ortala */
}

.header-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 24, 0.1); /* Daha belirgin tab arkaplanı */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Kenarlık belirginleşti */
    cursor: pointer;
    transition: all 0.3s ease;
    color: #b8c5d6;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-tab.active {
    background: rgba(24, 24, 24, 0.15); /* Aktif tabın arka planı */
    border-color: #FFD700; /* Aktif tabın altın kenarlığı */
    color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); /* Aktif tabın parlak gölgesi */
}

.header-tab:hover {
    background: rgba(24, 24, 24, 0.12); /* Hover'da hafif renk değişimi */
    transform: translateY(-2px); /* Hafif yukarı kalkma */
}

.tab-icon {
    font-size: 1.2rem;
}

.rankings-table {
    background: rgba(24, 24, 24, 0.08); /* Biraz daha koyu arka plan */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); /* Tabloya daha belirgin gölge */
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 2fr;
    background: rgba(24, 24, 24, 0.15); /* Başlık için daha koyu */
    padding: 1rem;
    font-weight: 600;
    color: #b8c5d6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-cell {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    display: flex;
    flex-direction: column;
}

.player-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 2fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.player-row:hover {
    background: rgba(24, 24, 24, 0.1); /* Hover'da hafif arka plan değişimi */
    transform: translateX(3px); /* Hafif sağa kayma */
}

.player-row:last-child {
    border-bottom: none;
}

.player-cell {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.rank-cell {
    justify-content: center;
}

.rank-badge {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    background: transparent !important;
    color: white;
    font-weight: 900;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    line-height: 1.2;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70px;
    height: 100%;
    width: 220px;
    transform: skewX(-20deg);
    z-index: 0;
    pointer-events: none;
}

/* ALTIN (1.) */
.player-row:nth-child(1)::before {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    left: -85px;
}

/* GÜMÜŞ (2.) */
.player-row:nth-child(2)::before {
    background: linear-gradient(135deg, #C0C0C0, #B0B0B0);
    left: -85px;
}

/* BRONZ (3.) */
.player-row:nth-child(3)::before {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    left: -85px;
}
.rank-normal {
    background: rgba(24, 24, 24, 0.05);
    color: #ffffff;
}

.player-info-cell {
    gap: 1rem;
}

.player-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-left: -10px;
    object-fit: cover; /* Resmin dolmasını sağla */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Avatara gölge */
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-title {
    display: flex;
    align-items: center;
    gap: 0.3em;
    color: #b8c5d6;
    font-size: 0.85rem;
}

.player-title .title-icon {
    font-size: 1em;
    vertical-align: middle;
}

.region-cell {
    justify-content: center;
}

.region-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    background-color: #3f51b5; /* Bölge rozeti rengi */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tiers-cell {
    display: flex;
    flex-wrap: nowrap; /* İkonların tek satırda kalmasını sağlar */
    gap: 1px; /* İkonlar arasındaki boşluğu azaltır */
    justify-content: flex-end;
    align-items: center;
}

.tier-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.tier-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.6rem;
    border-radius: 999px; /* Yuvarlak şekil */
    background-color: #111827;
    border: 2px solid transparent;
    font-size: 0.7rem;
    font-weight: 600;
    width: 48px; /* Tier badge boyutu */
    height: 60px; /* Tier badge boyutu */
    transition: all 0.2s ease-in-out;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Tier badge'lerine gölge */
}

.tier-badge.tier-ht {
    background-color: #1f2937;
    border-color: #facc15; /* Altın rengi */
    color: #facc15;
}

.tier-badge.tier-lt {
    background-color: #1f2937;
    border-color: #9ca3af; /* Gümüş rengi */
    color: #9ca3af;
}

.tier-badges .tier-icon { /* Genel ikon boyutu - kullanılmayabilir */
    font-size: 0.85rem;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1.2);
}

.tier-badge .tier-icon { /* Burası sağdaki küçük tier logoları/ikonları */
    width: 28px; /* İkonların boyutu - BURADAN AYARLAYIN */
    height: 28px; /* İkonların boyutu - BURADAN AYARLAYIN */
    object-fit: contain;
    filter: brightness(1.2);
}

.tier-text {
    font-size: 0.75rem;
}

/* Kit Sayfaları için Tier Columns */
.ranking-list {
    max-width: 1400px; /* Genişlik artırıldı */
    margin: 0 auto;
    padding: 0rem;
    display: grid;
    /* Her sütun minimum 260px genişliğinde olsun ve kalanı eşit dağıtsın */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    grid-template-areas: "tier1 tier2 tier3 tier4 tier5";
}

.tier-column {
    background: rgba(24, 24, 24, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem; /* Padding artırıldı */
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sütunlara genel gölge */
}

.tier-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tier-column:hover::before {
    opacity: 1;
}

/* GÜNCELLENMİŞ Tier Sütunu Hover Efekti: Şimdi 'edge-slash' ve 'tier-glow-border' kullanıyor */
.tier-column:hover {
    transform: none; /* Öne gelme veya büyüme yok */
    background: rgba(24, 24, 24, 0.08); /* Hafif bir arkaplan değişikliği */
    /* edge-slash animasyonunu direkt box-shadow olarak uygulayacağız */
    animation: edge-slash 0.4s ease-out forwards, tier-glow-border 1.5s infinite alternate;
}

/* Tier Sütunlarına Özgü Renkli Parlama Efektleri (Hover) */
/* Tier 1 - Gold/Yellow Glow */
.tier-column:nth-child(1):hover {
    --glow-color: #FFD700; /* Animasyon için custom property */
    border-color: #FFD700; /* Kenarlık rengi */
    box-shadow: 0 0 15px #FFD700; /* Parlama */
}

/* Tier 2 - Silver/Light Blue Glow */
.tier-column:nth-child(2):hover {
    --glow-color: #C0C0C0;
    border-color: #C0C0C0;
    box-shadow: 0 0 15px #C0C0C0;
}

/* Tier 3 - Bronze/Orange-Brown Glow */
.tier-column:nth-child(3):hover {
    --glow-color: #CD7F32;
    border-color: #CD7F32;
    box-shadow: 0 0 15px #CD7F32;
}

/* Tier 4 - Mavi Glow (örnek) */
.tier-column:nth-child(4):hover {
    --glow-color: #1900ff; /* Mavi */
    border-color: #1900ff;
    box-shadow: 0 0 15px #1900ff;
}

/* Tier 5 - Yeşil Glow (örnek) */
.tier-column:nth-child(5):hover {
    --glow-color: #00ff37; /* Parlak yeşil */
    border-color: #00ff37;
    box-shadow: 0 0 15px #00ff37;
}

/* tier-glow-border animasyonu currentColor kullanıyor, bu yüzden --glow-color'ı ona aktarmak için */
.tier-column:hover {
    color: var(--glow-color, #fff); /* Fallback olarak beyaz */
}


/* Tier sıralaması için grid area */
.tier-column:nth-child(1) {
    grid-area: tier1;
}
.tier-column:nth-child(2) {
    grid-area: tier2;
}
.tier-column:nth-child(3) {
    grid-area: tier3;
}
.tier-column:nth-child(4) {
    grid-area: tier4;
}
.tier-column:nth-child(5) {
    grid-area: tier5;
}

.tier-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
}

.tier-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: glow-pulse 2s ease-in-out infinite;
}

.tier-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: title-float 3s ease-in-out infinite;
}

@keyframes title-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.1);
    }
}

.tier-player {
    display: flex;
    align-items: center;
    gap: 1rem; /* Boşluk artırıldı */
    padding: 1rem; /* Padding artırıldı */
    background: rgba(255, 255, 255, 0.08); /* Daha belirgin oyuncu kartı arka planı */
    border-radius: 12px;
    margin-bottom: 1rem; /* Boşluk artırıldı */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Önemli: Slash çizgisi dışarı çıkmasın */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Kenarlık */
    animation: fade-in-up 0.6s ease-out backwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Oyuncu kartına gölge */
}

/* Işık çizgisi slash için ::after öğesi */
.tier-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 48%, /* Hafif parlama */
        rgba(255, 255, 255, 0.5) 50%, /* En parlak nokta */
        rgba(255, 255, 255, 0.1) 52%, /* Hafif parlama */
        transparent 100%
    );
    transform: translate(-100%, -100%) rotate(45deg); /* Başlangıç konumu */
    transition: none; /* İlk yüklemede animasyon olmasın */
    opacity: 0;
    pointer-events: none; /* Üzerindeki elementlere tıklamayı engellemez */
    z-index: 2; /* İçerik üzerinde görünmesi için */
}

/* Oyuncu Kartı Hover Efekti: Şimdi 'light-slash' kullanıyor */
.tier-player:hover::after {
    animation: light-slash 0.5s ease-in-out forwards; /* Hızlı ve tek seferlik */
    opacity: 1; /* Animasyon sırasında görünür */
}

.tier-player:hover {
    background: rgba(255, 255, 255, 0.12); /* Hafif bir arkaplan değişikliği */
    border-color: rgba(255, 255, 255, 0.2); /* Kenarlık belirginleşebilir */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Daha belirgin gölge */
    transform: translateY(-2px); /* Hafif yukarı kalkma */
}


@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for players */
.tier-player:nth-child(2) {
    animation-delay: 0.1s;
}
.tier-player:nth-child(3) {
    animation-delay: 0.2s;
}
.tier-player:nth-child(4) {
    animation-delay: 0.3s;
}
.tier-player:nth-child(5) {
    animation-delay: 0.4s;
}
.tier-player:nth-child(6) {
    animation-delay: 0.5s;
}

.tier-player:last-child {
    margin-bottom: 0;
}

.tier-player .player-avatar img {
    width: 44px; /* Oyuncu avatar boyutu artırıldı */
    height: 44px; /* Oyuncu avatar boyutu artırıldı */
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.tier-player:hover .player-avatar img {
    transform: scale(1.1) rotate(3deg); /* Daha yumuşak rotate */
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tier-player .player-info {
    flex: 1;
}

.tier-player .player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem; /* Font boyutu artırıldı */
    margin-bottom: 0.2rem;
}

.tier-player .player-tier {
    font-size: 0.85rem; /* Font boyutu artırıldı */
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.empty-tier {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
    position: relative;
    animation: pulse-subtle 2s ease-in-out infinite;
}

.empty-tier::before {
    content: '👤';
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.3;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Error States */
.error-message {
    text-align: center;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ranking-list {
        grid-template-columns: repeat(2, 1fr); /* 2 sütun düzeni */
        grid-template-areas:
            "tier1 tier2"
            "tier3 tier4"
            "tier5 .";
        gap: 1.5rem; /* Boşluk artırıldı */
    }

    .table-header, .player-row {
        grid-template-columns: 80px 1fr 120px 2fr; /* Tablet boyutlarında sütunları koru */
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .navbar-menu {
        display: flex;
        gap: 1rem; /* Menü elemanları arasındaki boşluğu azalt */
        align-items: center;
        flex-wrap: wrap; /* Menü elemanları sığmazsa alt satıra geçsin */
        justify-content: center;
    }
    .nav-item {
        position: relative;
    }

    .search-input {
        min-width: 200px;
        width: 100%; /* Mobil'de tam genişlik */
    }
    .navbar-search {
        width: 100%;
        justify-content: center; /* Arama çubuğunu ortala */
    }

    .kit-selector-container {
        flex-direction: column;
        gap: 1rem;
    }

    .kit-tabs {
        justify-content: center;
        width: 100%;
    }
    .kit-tab {
        width: 80px; /* Daha küçük tab boyutları */
        font-size: 12px;
        padding: 6px 0 3px 0;
    }

    .tier-cards-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .overall-rankings {
        padding: 1rem;
    }

    .table-header, .player-row {
        grid-template-columns: 60px 1fr 80px auto; /* Mobil için sütunları ayarla */
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .player-avatar img {
        width: 40px; /* Mobil'de avatarı küçült */
        height: 40px;
    }

    .tiers-cell {
    display: flex;
    flex-wrap: nowrap; /* İkonların tek satırda kalmasını sağlar */
    gap: 2px; /* İkonlar arasındaki boşluğu azaltır */
    justify-content: flex-end;
    align-items: center;
}
    .tier-badge .tier-icon { /* Mobil için ikon boyutunu küçült */
        width: 22px;
        height: 22px;
    }
    .tier-badge {
        width: 42px;
        height: 50px;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
        gap: 0.15rem;
    }
    .tier-text {
        font-size: 0.6rem;
    }


    .ranking-list {
        grid-template-columns: 1fr; /* 1 sütun düzeni */
        grid-template-areas:
            "tier1"
            "tier2"
            "tier3"
            "tier4"
            "tier5";
        padding: 1rem;
    }

    .tier-column {
        padding: 1rem;
    }

    .tier-player {
        padding: 0.5rem;
        flex-direction: row; /* Mobil'de yatay kalması için */
        align-items: center;
    }
    .tier-player .player-name {
        font-size: 0.85rem;
    }
    .tier-player .player-tier {
        font-size: 0.7rem;
    }
    .tier-player .player-avatar img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.4rem;
    }

    .search-input {
        min-width: unset;
        width: 100%;
    }

    .tier-card {
        padding: 1rem;
    }

    .table-header, .player-row {
        grid-template-columns: 50px 1fr; /* Sadece rank ve oyuncu bilgisi kalsın */
        gap: 0.5rem;
        padding: 0.7rem;
    }

    .region-cell, .tiers-cell { /* Mobil küçük ekranlarda gizle veya alta al */
        display: none; /* Bu sütunları tamamen gizle */
        /* Alternatif: Alta alıp %100 genişlik verebiliriz
        grid-column: 1 / -1;
        margin-top: 0.5rem;
        justify-content: flex-start;
        display: flex; */
    }

    .ranking-list {
        grid-template-columns: 1fr;
        grid-template-areas:
            "tier1"
            "tier2"
            "tier3"
            "tier4"
            "tier5";
    }

    .tier-column {
        padding: 1rem;
    }

    .tier-player {
        padding: 0.5rem;
        flex-direction: row; /* Mobil'de yatay kalması için */
        align-items: center;
    }
    .tier-player .player-name {
        font-size: 0.85rem;
    }
    .tier-player .player-tier {
        font-size: 0.7rem;
    }
    .tier-player .player-avatar img {
        width: 28px;
        height: 28px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}