/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(0.2); /* opcjonalnie przyciemnij tło */
}
@keyframes shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    background-color: #1e1e1e;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2c2c2c;
}

.logo a {
    text-decoration: none;
    color: inherit;
}
.logo a:hover {
    opacity: 0.8;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #f0c040;
}



.content {
    width: calc(100% - 350px); /* 320px sidebar + 30px gap */
    max-width: calc(1200px - 350px);
    min-width: 300px; /* minimalna szerokoĹÄ contentu */
    box-sizing: border-box;
}

.content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

article {
    background-color: #1e1e1e;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 6px;
}

article h3 {
    margin-bottom: 10px;
    color: #f0c040;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.box, .login-box {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 6px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #121212;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background-color: #f0c040;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

footer {
    background-color: rgba(30, 30, 30, 0.5);
    padding: 20px;
    text-align: center;
    color: #999;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
    z-index: 2; /* Upewnij się, że stopka jest nad tłem */
    width: 100%; /* Zapewnia pełną szerokość */
    box-sizing: border-box;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* peĹna wysokoĹÄ okna przeglÄdarki */
}

main {
    flex: 1; /* rozciÄga siÄ, zajmuje dostÄpne miejsce */
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    box-sizing: border-box;
    width: 100%;
}
.logo {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.logo-white,
.logo-red {
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* DOMYĹLNY wyglÄd â bez efektu */
.logo-white {
    color: #ffffff;
    text-shadow: none;
}

.logo-red {
    color: #e60000;
    text-shadow: none;
}

/* EFEKT PO NAJECHANIU */
.logo:hover .logo-white {
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.6);
}

.logo:hover .logo-red {
    text-shadow:
        0 0 5px rgba(230, 0, 0, 0.4),
        0 0 10px rgba(255, 0, 0, 0.6);
}
/* Styl wideo w tle – pełnoekranowe */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    z-index: -1;
    object-fit: cover;
    opacity: 0.5; /* kontrola jak bardzo widać tło */
    filter: blur(2px) brightness(0.7); /* blur i przyciemnienie dla lepszej widoczności treści */
}

/* Header półprzezroczysty, na froncie */
.modern-header {
    background-color: rgba(20, 20, 20, 0.6); /* mniej ciemne, więcej przezroczystości */
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 5;
    position: relative;
}

.modern-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.modern-nav li a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.6);
    color: #eee;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 0 transparent;
}

.modern-nav li a:hover {
    color: #f0c040;
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.2);
}

@keyframes shine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}
/* --- Logowanie Sidebar --- */

.login-box {
    background-color: #222;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(240, 192, 64, 0.3);
    transition: background-color 0.3s ease;
	margin-bottom: 30px; /* odstÄp pod logowaniem */
    width: 100%;        /* zawsze zajmuje peĹnÄ szerokoĹÄ sidebar */
    box-sizing: border-box; /* Ĺźeby padding nie rozszerzaĹ szerokoĹci */
    flex-shrink: 0;     /* zapobiega kurczeniu siÄ */
    position: relative; /* podstawowa pozycja, nie "lewituj" */
}
.login-box h2 {
    color: #f0c040;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
}

.login-box.logged-in h2 span {
    color: #fff;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #121212;
    color: #eee;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #f0c040;
    outline: none;
}

.g-recaptcha {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.btn-login, .btn-logout {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: #f0c040;
    color: #121212;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
    user-select: none;
    text-decoration: none;
}

.btn-login:hover,
.btn-logout:hover {
    background-color: #d4aa00;
}

.login-error {
    color: #ff4444;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.login-links {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    display: inline-block;
    margin: 6px 10px 0;
    color: #f0c040;
    text-decoration: none;
    transition: color 0.25s ease;
}

.login-links a:hover {
    color: #d4aa00;
}
#discord-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    height: 500px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#discord-widget.open {
    transform: translateY(0);
}

#discord-widget iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.discord-toggle {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: #5865F2;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
    font-family: sans-serif;
}

.download-box {
    background-color: #1e1e1e;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(240,192,64,0.3);
    max-width: 480px;
}

.download-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #f0f0f0;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #121212;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.25s ease, transform 0.2s ease;
    user-select: none;
}

.btn-download:hover {
    transform: translateY(-3px);
}

.btn-download.mega {
    background: linear-gradient(135deg, #ff6600, #cc3300);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,102,0,0.6);
}

.btn-download.mega:hover {
    background: linear-gradient(135deg, #cc3300, #ff3300);
}

.btn-download.drive {
    background: linear-gradient(135deg, #4285F4, #0b63e5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(66,133,244,0.6);
}

.btn-download.drive:hover {
    background: linear-gradient(135deg, #0b63e5, #3367d6);
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: linear-gradient(145deg, #252525, #1b1b1b);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(240, 192, 64, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(240, 192, 64, 0.3);
}

.news-title {
    color: #f0c040;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.news-summary {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}
/* Ranking TOP50 */
/* Nowy, nowoczesny styl dla tabeli rankingowej TOP 50 */

.ranking-table.top50-ranking {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Nagłówek tabeli */
.ranking-table.top50-ranking thead {
    background-color: #1f1f1f;
}

.ranking-table.top50-ranking thead th {
    padding: 16px 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffd54f;
    border-bottom: 2px solid rgba(255, 213, 79, 0.2);
    text-align: left;
}

/* Wiersze ciała tabeli */
.ranking-table.top50-ranking tbody tr {
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: transparent;
}

/* Hover efekt — podniesienie i lekka poświata */
.ranking-table.top50-ranking tbody tr:hover {
    background-color: rgba(255, 213, 79, 0.05);
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.25);
    transform: translateY(-2px);
}

/* Komórki */
.ranking-table.top50-ranking tbody td {
    padding: 14px 12px;
    font-size: 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

/* Numer pozycji */
.ranking-table.top50-ranking tbody td:nth-child(1) {
    font-weight: 700;
    color: #ffd54f;
    width: 48px;
    text-align: center;
}

/* Nazwa gracza */
.ranking-table.top50-ranking tbody td:nth-child(2) {
    font-weight: 600;
    color: #ffffff;
}

/* Klasa i Imperium (styl italic, trochę jaśniejsze) */
.ranking-table.top50-ranking tbody td:nth-child(3),
.ranking-table.top50-ranking tbody td:nth-child(5) {
    font-style: italic;
    color: #b0b0b0;
}

/* Poziom (wyróżniony kolorystycznie) */
.ranking-table.top50-ranking tbody td:nth-child(4) {
    font-weight: 600;
    color: #a5d6a7;
    text-align: center;
}

/* Responsywność: na małych ekranach ukrywamy nagłówek i pokazujemy wiersze jako karty */
@media (max-width: 768px) {
    .ranking-table.top50-ranking {
        border-radius: 0;
        box-shadow: none;
    }
    .ranking-table.top50-ranking thead {
        display: none;
    }
    .ranking-table.top50-ranking tbody tr {
        display: block;
        margin-bottom: 16px;
        background-color: #262626;
        border-radius: 8px;
        padding: 12px;
    }
    .ranking-table.top50-ranking tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: none;
        font-size: 0.875rem;
    }
    .ranking-table.top50-ranking tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ffd54f;
        margin-right: 8px;
        flex-shrink: 0;
    }
    .ranking-table.top50-ranking tbody td:last-child {
        border-bottom: none;
    }
    .ranking-table.top50-ranking tbody td:nth-child(1) {
        font-size: 1rem;
        color: #ffd54f;
    }
}
/* Responsywnosc */

@media (max-width: 768px) {
    .news-card {
        padding: 15px 20px;
    }
    .news-title {
        font-size: 1.3rem;
    }
    .news-summary {
        font-size: 0.95rem;
    }
}