@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700;900&display=swap');

:root {
    --pb-orange: #ff8000;
    --pb-gold: #ffcc00;
    --pb-silver: #c0c0c0;
    --pb-bronze: #cd7f32;
    --pb-dark: #080808;
    --pb-card-bg: rgba(0, 0, 0, 0.7);
    --pb-border: #1f1f1f;
    --pb-text: #e0e0e0;
}

/* Ana Konteyner */
.pb-container {
    display: flex !important;
    gap: 20px;
    max-width: 1250px;
    margin: 40px auto;
    font-family: 'Rajdhani', sans-serif;
    color: var(--pb-text);
}

/* Sidebar Düzəliş */
.pb-sidebar { width: 320px; flex-shrink: 0; z-index: 10; }

/* Hero Banner */
.dl-top-banner {
    background: #111;
    padding: 35px 45px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid var(--pb-orange);
    position: relative;
    overflow: hidden;
}

.badge-live {
    background: var(--pb-orange);
    color: #000;
    padding: 4px 12px;
    font-weight: 900;
    font-size: 13px;
    border-radius: 2px;
    letter-spacing: 1px;
}

/* Ranking Master Wrapper */
.ranking-bg-wrapper {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(10,10,10,0.95)), url('../../images/slider/2.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--pb-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
}

/* Taran Personajı */
.bg-character-fixed {
    position: absolute; 
    right: -50px; 
    top: 50px; 
    height: 700px; 
    opacity: 0.4; 
    pointer-events: none; 
    z-index: 0;
    filter: drop-shadow(-20px 10px 30px rgba(0,0,0,0.8));
}

/* Podium (Top 3) Sistemi */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.podium-card {
    background: var(--pb-card-bg);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    width: 210px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.podium-card.first { 
    order: 2; 
    height: 220px; 
    border-color: var(--pb-gold); 
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.15);
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(255, 204, 0, 0.05));
    transform: scale(1.08);
}
.podium-card.second { order: 1; height: 180px; border-color: var(--pb-silver); }
.podium-card.third { order: 3; height: 170px; border-color: var(--pb-bronze); }

.clan-name { font-size: 22px; font-weight: 900; display: block; margin: 10px 0; text-transform: uppercase; color: #fff; }
.clan-exp-label { color: #00ffcc; font-size: 14px; font-family: monospace; font-weight: bold; }

/* Tab Naviqasiyası */
.rank-selector-tabs { 
    display: flex; 
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--pb-orange); 
    position: relative; 
    z-index: 2; 
}
.rank-tab-btn { 
    flex: 1; 
    padding: 18px; 
    text-align: center; 
    color: #888; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 15px;
    transition: 0.3s; 
}
.rank-tab-btn:hover { color: #fff; background: rgba(255, 128, 0, 0.05); }
.rank-tab-btn.active { 
    background: var(--pb-orange); 
    color: #000; 
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%); 
}

/* Cədvəl Dizaynı */
.ranking-table { width: 100%; border-collapse: collapse; position: relative; z-index: 2; }
.ranking-table thead { background: rgba(0,0,0,0.6); color: var(--pb-orange); }
.ranking-table th { 
    padding: 18px 15px; 
    text-align: left; 
    text-transform: uppercase; 
    font-size: 13px; 
    border-bottom: 2px solid #222; 
}
.ranking-table td { 
    padding: 16px 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    color: #ccc; 
    font-size: 15px;
}
.ranking-table tr:hover { background: rgba(255, 128, 0, 0.08); }

/* Statistikalar */
.win-count { color: #2ecc71; font-weight: 800; }
.lose-count { color: #e74c3c; font-weight: 800; }
.win-rate-text { color: #00ffcc; font-family: monospace; font-weight: bold; font-size: 14px; }

/* Responsive */
@media (max-width: 1100px) {
    .pb-container { flex-direction: column; padding: 10px; }
    .pb-sidebar { width: 100%; }
    .bg-character-fixed { display: none; }
    .podium-container { flex-direction: column; align-items: center; }
    .podium-card { width: 100%; height: auto !important; transform: none !important; }
}