/* Real Navigation Bar Styles - Updated with neutral palette */
.real-navbar {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 50%, var(--neutral-950) 100%);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 200px;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.navbar-title {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Navigation Menu */
.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.nav-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link span {
    font-size: 13px;
    flex-shrink: 0;
}

/* Actions Section */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 200px;
    justify-content: flex-end;
}

/* Search Bar */
.navbar-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 180px;
}

.navbar-search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: 13px;
    width: 100%;
    outline: none;
    min-width: 120px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

/* User Section */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.balance-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.balance-amount {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.user-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--neutral-800);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    padding-left: 18px;
}

/* Auth Buttons */
.navbar-auth {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--neutral-800);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff6b35);
    color: var(--neutral-800);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b35, var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

/* Mobile Toggle */
.navbar-mobile-toggle {
    display: none;
}

.mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle-btn:hover span {
    background: var(--text-primary);
}

/* Full View Navigation - Always Show All Elements */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    width: 100%;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

/* Responsive Design - Full View Always */
@media (max-width: 1400px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 10px;
    }
    
    .nav-link span {
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    .navbar-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 8px;
    }
    
    .nav-link span {
        font-size: 11px;
    }
    
    .search-input {
        min-width: 100px;
    }
}

@media (max-width: 1024px) {
    .navbar-nav {
        gap: 6px;
    }
    
    .nav-link {
        padding: 6px;
    }
    
    .nav-link span {
        font-size: 10px;
    }
    
    .search-input {
        min-width: 80px;
    }
    
    .navbar-search {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .navbar-brand {
        min-width: 120px;
    }
    
    .navbar-title {
        font-size: 14px;
        max-width: 100px;
    }
    
    .navbar-logo {
        width: 28px;
        height: 28px;
    }
    
    .navbar-nav {
        gap: 4px;
    }
    
    .nav-link {
        padding: 4px 6px;
    }
    
    .nav-link span {
        font-size: 9px;
    }
    
    .navbar-actions {
        min-width: 100px;
        gap: 6px;
    }
    
    .search-input {
        min-width: 60px;
        font-size: 11px;
    }
    
    .navbar-search {
        min-width: 80px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 5px;
        height: 50px;
    }
    
    .navbar-brand {
        min-width: 100px;
    }
    
    .navbar-title {
        font-size: 12px;
        max-width: 80px;
    }
    
    .navbar-logo {
        width: 24px;
        height: 24px;
    }
    
    .navbar-nav {
        gap: 2px;
    }
    
    .nav-link {
        padding: 3px 4px;
    }
    
    .nav-link span {
        font-size: 8px;
    }
    
    .navbar-actions {
        min-width: 80px;
        gap: 4px;
    }
    
    .search-input {
        min-width: 50px;
        font-size: 10px;
    }
    
    .navbar-search {
        min-width: 60px;
        padding: 3px 6px;
    }
}

/* Ensure navbar doesn't interfere with existing layout */
.real-navbar {
    position: relative !important;
    margin-bottom: 20px !important;
    z-index: 999 !important;
}

/* Fix any potential conflicts with existing styles */
.real-navbar * {
    box-sizing: border-box;
}

/* Ensure proper spacing */
.real-navbar + * {
    margin-top: 0 !important;
}

/* Animation for navbar appearance */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.real-navbar {
    animation: slideDown 0.5s ease-out;
}

/* Active state for current page */
.nav-link.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
