/**
 * Optimized Navbar Styles
 * SEO-friendly and consistent button styling
 */

/* Navbar Base */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Logo and Brand */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.brand-text {
    letter-spacing: -0.5px;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 183, 0, 0.1);
    color: var(--gold-primary);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 183, 0, 0.15);
    color: var(--gold-primary);
}

/* Category Icons */
.nav-link i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

/* Search Box */
.search-form {
    margin: 0 1.5rem;
    position: relative;
}

.search-form .position-relative {
    position: relative;
    display: inline-block;
}

.search-input {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.5rem 2.75rem 0.5rem 1rem !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 280px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input:focus {
    background-color: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 0, 0.15);
    width: 320px;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 10;
}

/* Right Side Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notification Button */
.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-btn:hover {
    background-color: #fff;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #dc3545;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* User Menu Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background-color: #fff;
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    background-color: var(--gold-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-login,
.btn-signup {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-login {
    border: 1px solid #e9ecef;
    background-color: #fff;
    color: #495057;
}

.btn-login:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: rgba(255, 183, 0, 0.05);
}

.btn-signup {
    background-color: var(--gold-primary);
    color: white;
    border: 1px solid var(--gold-primary);
}

.btn-signup:hover {
    background-color: #e6a500;
    border-color: #e6a500;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 183, 0, 0.3);
}

/* Dropdown Menus */
.dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 183, 0, 0.1);
    color: var(--gold-primary);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.7;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    max-width: 1000px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.5rem 0;
    margin-top: 0.5rem;
}

.mega-menu h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.125rem 0;
    }
    
    .search-form {
        margin: 1rem 0;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .navbar-actions {
        padding: 1rem 0;
        border-top: 1px solid #e9ecef;
        margin-top: 1rem;
    }
    
    .auth-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-login,
    .btn-signup {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
.navbar-nav .nav-link:focus,
.notification-btn:focus,
.user-menu-btn:focus,
.btn-login:focus,
.btn-signup:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Dark Mode Support Removed - Platform uses light theme only */