/* Modern Navigation Bar Styles */
:root {
    --nav-bg: rgba(21, 21, 21, 0.85);
    --nav-border: rgba(255, 255, 255, 0.1);
    --nav-text: #d1d5db;
    --nav-text-hover: #ffffff;
    --nav-dropdown-bg: #151515;
    --primary-blue: #2d9cdb;
    --primary-glow: rgba(45, 156, 219, 0.5);
}

.modern-nav-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    font-family: 'Kanit', sans-serif;
}

.modern-nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.nav-logo a:hover img {
    transform: scale(1.05);
}

/* Desktop Menu */
.nav-menu-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu-desktop {
        display: flex;
    }
}

.nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--nav-text-hover);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

/* Dropdowns */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-wrapper:hover .nav-item svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background: var(--nav-dropdown-bg);
    border: 1px solid var(--nav-border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(45, 156, 219, 0.1);
    color: var(--primary-blue);
}

/* Divider */
.nav-divider {
    height: 1.5rem;
    width: 1px;
    background: var(--nav-border);
    margin: 0 0.5rem;
}

/* Right Side (User & Currency) */
.nav-user-section {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-user-section {
        display: flex;
    }
}

/* Currency Display */
.nav-currency-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(45, 156, 219, 0.3);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(45, 156, 219, 0.1);
    transition: all 0.3s ease;
}

.nav-currency-display:hover {
    border-color: rgba(45, 156, 219, 0.6);
    box-shadow: 0 4px 20px rgba(45, 156, 219, 0.2);
    transform: translateY(-1px);
}

.nav-currency-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
}

.nav-currency-value {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(45, 156, 219, 0.3);
}

@media (max-width: 1280px) {
    .nav-currency-label {
        display: none;
    }

    .nav-currency-display {
        padding: 6px 12px;
    }
}

/* User Profile */
.nav-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid var(--nav-border);
}

.nav-user-text {
    text-align: right;
    display: none;
}

@media (min-width: 1280px) {
    .nav-user-text {
        display: block;
    }
}

.nav-username {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.nav-rank {
    font-size: 0.75rem;
    color: var(--primary-blue);
}

.nav-profile-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--nav-border);
    object-fit: cover;
}

.nav-logout-btn {
    padding: 0.5rem;
    border-radius: 50%;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ef4444;
}

/* Mobile Menu Button */
.nav-mobile-toggle {
    display: flex;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #d1d5db;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-mobile-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (min-width: 1024px) {
    .nav-mobile-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #151515;
    border-bottom: 1px solid var(--nav-border);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu-overlay.open {
    display: flex;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}