@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --sidebar-width: 320px;
    --bg-dark: #050505;
    --bg-panel: rgba(15, 15, 15, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- BOČNÝ PANEL (SIDEBAR) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.logo-container {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container h2 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.logo-container h2 span {
    color: var(--primary-color);
}

/* --- NAVIGÁCIA --- */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* --- INLINE PRIHLASOVANIE V MENU --- */
.sidebar-login-widget {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    margin-top: 10px;
}

.sidebar-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.sidebar-input::placeholder {
    color: #777;
}

.sidebar-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 5px;
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    /* Farba tieňa sa automaticky neprispôsobí cez premennú bez color-mix, ale tento jemný biely/priesvitný tieň funguje univerzálne pre všetky farby */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* --- WIDGETY V SIDEBARE (Hráči, Info) --- */
.sidebar-widget {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    font-size: 13px;
    color: #ccc;
}
.server-info-item:last-child { border-bottom: none; }
.server-info-item span { color: var(--primary-color); font-weight: 700; }

/* --- ONLINE HRÁČI (Tooltips) --- */
.online-players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.player-head {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.player-head img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.player-head:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.player-head::after {
    content: attr(data-name);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    background: #000;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--primary-color);
    transition: all 0.2s ease;
    z-index: 100;
}

.player-head:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* --- HLAVNÝ OBSAH --- */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    padding: 40px;
    position: relative;
}

/* --- MOBILNÉ ROZHRANIE --- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.hamburger {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 28px;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

@media(max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 90px 20px 40px 20px; /* Priestor pre mobilný header */
    }
    .mobile-header {
        display: flex;
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}

