/*
   ------------
   Version 0.2.0 - RANKING DARK EDITION
*/
/* =========================================
   WYRÓŻNIENIE PODIUM (TOP 1, 2, 3)
========================================= */

/* ZŁOTO - 1 MIEJSCE */
tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #FFD700 !important;
}
tbody tr:nth-child(1) td:nth-child(2) {
    color: #FFD700 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
tbody tr:nth-child(1) td:nth-child(2)::after {
    content: "\f521"; /* Kod korony w FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 10px;
    color: #FFD700;
    font-size: 0.9em;
}

/* SREBRO - 2 MIEJSCE */
tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #C0C0C0 !important;
}
tbody tr:nth-child(2) td:nth-child(2) {
    color: #C0C0C0 !important;
    font-weight: 700 !important;
}

/* BRĄZ - 3 MIEJSCE */
tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, transparent 100%) !important;
    border-left: 3px solid #CD7F32 !important;
}
tbody tr:nth-child(3) td:nth-child(2) {
    color: #CD7F32 !important;
    font-weight: 700 !important;
}
/* =========================================
   NADPISANIE NAGŁÓWKA (UKRYCIE TŁA Z GRY)
========================================= */
header {
    background: #0f0f0f !important;
    background-image: none !important;
    min-height: auto !important;
    padding-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* 1. SEKCJA RANKINGÓW */
.ranking {
    padding: 20px 0 80px;
}

/* Główny tytuł podstrony ("Rankingi") */
.ranking h3 {
    color: #ffffff;
    font-weight: 800;
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 3px solid #feba01; /* Złota linia */
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Tytuły poszczególnych topek (np. "Top levela") */
.ranking h6 {
    color: #feba01;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #feba01; /* Złoty pasek po lewej */
}

/* 2. TABELE (Mroczny styl) */
.table-classic {
    background-color: #141414; /* Ciemne tło tabeli */
    border-radius: 12px;
    overflow: hidden; /* Wymusza zaokrąglenie również dla nagłówka tabeli */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Głęboki cień */
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: #ddd; /* Jasnoszary tekst */
    border: 1px solid #2a2a2a; /* Delikatna ramka wokół całej tabeli */
    margin-bottom: 40px;
}

/* Nagłówek tabeli (#, Gracz, Wartość) */
.table-classic thead {
    background-color: #1a1a1a;
}

.table-classic th {
    color: #feba01; /* Złote opisy kolumn */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 18px 20px;
    border-bottom: 2px solid #2a2a2a;
}

/* Komórki w tabeli */
.table-classic td {
    padding: 15px 20px;
    vertical-align: middle; /* Wyśrodkowanie w pionie */
    border-bottom: 1px solid #222; /* Kreska między graczami */
    border-top: none;
    font-size: 16px;
}

/* Usuwa dolną kreskę przy ostatnim graczu */
.table-classic tbody tr:last-child td {
    border-bottom: none;
}

/* Efekt najechania myszką na wiersz gracza */
.table-classic tbody tr {
    transition: background-color 0.2s ease;
}

.table-classic tbody tr:hover {
    background-color: #1c1c1c; /* Podświetlenie wiersza */
}

/* 3. ZDJĘCIE (Główka) I NICK GRACZA */
.table-classic td.head {
    display: flex;
    align-items: center;
    gap: 15px; /* Odstęp główki od nicku */
    font-weight: 600;
    color: #ffffff; /* Nick na biało */
}

.table-classic td.head img {
    border-radius: 6px; /* Lekkie zaokrąglenie główki z Minotara */
    box-shadow: 0 3px 8px rgba(0,0,0,0.5); /* Wypukłość główki */
    width: 30px;
    height: 30px;
}

/* Numer miejsca (kolumna #) */
.table-classic td[scope="row"] {
    font-weight: 800;
    color: #feba01; /* Numer miejsca na złoto */
    width: 10%;
}

/* 4. RESPONSYWNOŚĆ */
@media only screen and (max-width: 768px) {
    .ranking h3 {
        font-size: 32px;
        width: 100%;
    }
    
    .table-classic th, .table-classic td {
        padding: 12px 10px;
        font-size: 14px;
    }
}