* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
}

/* Stil zgornje lepljive glave */
.header {
    height: 5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: height 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
}

.header-left {
    display: none;
}

.logo {
    height: 4.5rem;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-left: -1.5rem;
    font-size: 0;
    filter: brightness(0) invert(1);
}

.logo:hover {
    opacity: 0.8;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.profile-pic {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.clickable {
    cursor: pointer;
}

.header-right {
    display: none;
}

.logo-area {
    display: none;
}

.logo-area img {
    display: none;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-account ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-account a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar-account a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar {
    display: none;
}

.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 3rem;
    padding: 0;
    margin: 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .header {
        height: 4rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .sidebar {
        display: flex;
    }
}

/* Glavno območje */
.main-content {
    margin-top: 5rem;
    padding: 0;
    height: calc(100vh - 5rem);
    background-color: #0f0f0f;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    opacity: 0.35;
    filter: blur(2px);
    z-index: 1;
    background: rgba(15, 15, 15, 0.4);
}

.content-section {
    max-width: 800px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    padding: 0;
    margin-top: -12rem;
}

.play-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.leaderboard-section {
    width: 100%;
}

.content-section h2 {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.25rem;
}

/* Tabela lestvice */
.leaderboard-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.25rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #404040;
    font-size: 0.9rem;
}

.leaderboard-table th {
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-weight: 600;
}

.leaderboard-table td {
    color: #e0e0e0;
}

.leaderboard-table tr:hover {
    background-color: #2a2a2a;
}

/* Gumb za igranje */
.play-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #404040 0%, #505050 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.play-btn:hover {
    background: linear-gradient(135deg, #505050 0%, #606060 100%);
    transform: translateY(-2px);
}

.play-btn:active {
    transform: translateY(0);
}

/* Prilagoditve za odzivnost */
@media (max-width: 768px) {
    .header {
        height: 4rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .navbar a {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .sidebar {
        display: flex;
    }

    .main-content {
        margin-top: 4rem;
        height: calc(100vh - 4rem);
    }

    .content-wrapper {
        padding: 1rem;
        margin-top: -8rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }

    .play-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .logo {
        height: 3rem;
        margin-left: -0.5rem;
    }

    .profile-pic {
        width: 2rem;
        height: 2rem;
    }

    .main-content {
        padding: 0;
    }

    .content-section {
        max-width: 100%;
        padding: 0 1rem;
    }

    .content-wrapper {
        width: 95%;
        margin-top: -6rem;
    }

    .leaderboard-table {
        font-size: 0.75rem;
    }

    .play-section h2 {
        font-size: 1rem;
    }
}