/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar container */
.navbar,
.landing-navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 15px;
    /* Added gap for mobile spacing */
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Navigation links */
.nav-links-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-steam-link,
.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-steam-link:hover,
.nav-link:hover {
    color: #fff;
}

.nav-steam-link.active {
    color: #fff;
}

.nav-steam-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 2px;
}

/* User controls */
.user-controls-steam {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Notification bell */
.notif-bell {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-bell:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.bell-icon {
    font-size: 18px;
}

.notif-bell {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a0f;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Notifications Dropdown */
.notif-dropdown {
    position: absolute;
    top: 75px;
    right: 8rem;
    width: 320px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    animation: menuFadeIn 0.2s ease-out;
}

.notif-dropdown.active {
    display: flex;
}

.notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header span {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.notif-header button {
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(139, 92, 246, 0.05);
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.notif-msg {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.notif-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* User dropdown */
.user-dropdown-steam {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.user-dropdown-steam:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* New Modern Dropdown Menu */
.profile-menu-dropdown {
    position: absolute;
    top: 75px;
    right: 2rem;
    width: 260px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    animation: menuFadeIn 0.2s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-dropdown.active {
    display: flex;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-user-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.menu-user-role {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-item i,
.menu-item .icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.menu-item.logout {
    color: #8b5cf6;
    margin-top: 0.5rem;
}

.menu-item.logout i,
.menu-item.logout .icon {
    color: #8b5cf6;
}

.user-text-steam {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name-steam {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.user-balance-steam {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1;
}

/* Profile picture */
.user-pfp-container-steam {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.user-pfp-steam {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Guest buttons */
.guest-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-steam-nav {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: transparent;
}

.btn-steam-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-register-steam {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
}

.btn-register-steam:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.2s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
        justify-content: flex-start;
        /* Place items from left */
    }

    .nav-links-container {
        display: none;
    }

    .nav-toggle {
        display: block;
        order: -1;
        /* First element on left */
    }

    .logo {
        margin-right: auto;
        /* Push everything else to right */
    }

    .user-controls-steam {
        order: 1;
        /* Keep profile on right */
    }

    .user-text-steam {
        display: none;
    }

    .user-dropdown-steam {
        padding: 4px;
        background: transparent;
        border: none;
    }

    .user-pfp-container-steam {
        width: 32px;
        height: 32px;
        border-color: #8b5cf6;
    }

    .profile-menu-dropdown {
        right: 1rem;
        top: 65px;
        width: calc(100vw - 2rem);
    }
}

/* Game Details Section */
.game-header {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.game-logo-large {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }

    .game-logo-large {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}