/* Standardized Navigation CSS for Landmark Auctions */

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e1e8ed;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex !important;
    align-items: center;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 0 16px !important;
    height: 50px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 0 !important;
}

nav ul li a:hover {
    background: #f8f9fa;
    color: #3498db;
}

nav ul li a.active {
    background: #3498db;
    color: white;
}

nav ul li a.btn {
    background: #3498db;
    color: white;
    border-radius: 25px;
    padding: 0 20px !important;
    margin-left: 16px !important;
    font-weight: 600;
}

nav ul li a.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    max-width: 85%;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f8f9fa;
    color: #3498db;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a {
    display: block;
    padding: 16px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background: #f8f9fa;
    color: #3498db;
}

.mobile-nav ul li a.mobile-login-btn {
    margin: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
}

.mobile-nav ul li a.mobile-login-btn:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 1200px) {
    nav ul li a {
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    nav ul li a {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* Dashboard Navigation (for dashboard pages) */
.dashboard-nav {
    background: #2c3e50;
    color: white;
}

.dashboard-nav .header-content {
    border-bottom: 1px solid #34495e;
}

.dashboard-nav .logo img {
    filter: brightness(0) invert(1);
}

.dashboard-nav nav ul li a {
    color: white;
}

.dashboard-nav nav ul li a:hover {
    background: #34495e;
}

.dashboard-nav nav ul li a.active {
    background: #3498db;
}

.dashboard-nav .mobile-menu {
    color: white;
}

.dashboard-nav .mobile-menu:hover {
    background: #34495e;
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav ul li {
    animation: fadeIn 0.3s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    header {
        border-bottom: 2px solid #000;
    }
    
    nav ul li a {
        border: 1px solid transparent;
    }
    
    nav ul li a:hover {
        border-color: #3498db;
    }
}

/* Focus styles for keyboard navigation */
nav ul li a:focus,
.mobile-menu:focus,
.mobile-menu-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
} 