/**
 * Professional Navigation Styles
 * Enhanced menu buttons with borders, hover effects, and professional appearance
 */

/* Main Navigation Container */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation Menu Items */
.nav-item {
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effects for Regular Menu Items */
.nav-item:hover {
    color: #ff6b35;
    background-color: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Active/Current Page State */
.nav-item.active {
    color: #ff6b35;
    background-color: #fff7ed;
    border-color: #ff6b35;
    font-weight: 600;
}

/* Primary Action Buttons (Login, Updates) */
.nav-btn-primary {
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    justify-content: center;
    white-space: nowrap;
}

/* Login Button */
.nav-btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
}

.nav-btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Updates Button */
.nav-btn-updates {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-color: #f97316;
}

.nav-btn-updates:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Mobile Menu Styles */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    color: #374151;
    min-height: 40px;
}

.mobile-nav-item:hover {
    color: #ff6b35;
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 6px;
    border: 2px solid transparent;
    min-height: 38px;
}

.mobile-nav-btn.login {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
}

.mobile-nav-btn.updates {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-color: #f97316;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.mobile-menu-toggle i {
    font-size: 14px;
}

/* Language Selector Integration */
.nav-language-selector {
    margin: 0 4px;
}

/* Consistent Button Heights */
.nav-item,
.nav-btn-primary,
.nav-dropdown .dropdown-toggle {
    height: 32px;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Compact Navigation Layout */
.nav-menu > * {
    flex-shrink: 0;
}

/* Ensure dropdowns don't break layout */
.nav-dropdown {
    flex-shrink: 0;
}

/* Better text truncation for long menu items */
.nav-item,
.nav-dropdown .dropdown-toggle {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Smaller icons in buttons */
.nav-btn-primary i {
    font-size: 11px;
}

.nav-item i,
.nav-dropdown .dropdown-toggle i {
    font-size: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-item {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .nav-btn-primary {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 70px;
        gap: 4px;
    }
    
    .nav-dropdown .dropdown-toggle {
        min-width: 70px;
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-menu {
        gap: 1px;
    }
    
    .nav-item {
        padding: 4px 6px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .nav-btn-primary {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 60px;
    }
    
    .nav-dropdown .dropdown-toggle {
        min-width: 60px;
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* Focus States for Accessibility */
.nav-item:focus,
.nav-btn-primary:focus,
.mobile-nav-item:focus,
.mobile-nav-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading States */
.nav-item.loading,
.nav-btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Badge/Notification Support */
.nav-item .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Dropdown Support */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    min-width: 85px;
    padding: 6px 10px;
    font-size: 13px;
}

.nav-dropdown .dropdown-toggle .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Menu Items */
.dropdown-menu {
    border-radius: 6px;
    min-width: 180px;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.dropdown-item i {
    font-size: 11px;
    width: 14px;
}

/* Animation for menu items */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item,
.nav-btn-primary {
    animation: slideInFromTop 0.3s ease-out;
}

/* Stagger animation delays */
.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }

/* Compact Navigation Utilities */
.nav-compact .nav-item {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 60px;
}

.nav-compact .nav-btn-primary {
    padding: 4px 10px;
    font-size: 11px;
    min-width: 70px;
}

.nav-compact .nav-dropdown .dropdown-toggle {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 70px;
}

/* Ultra compact for very small screens */
.nav-ultra-compact .nav-item {
    padding: 3px 6px;
    font-size: 11px;
    min-width: 50px;
}

.nav-ultra-compact .nav-btn-primary {
    padding: 3px 8px;
    font-size: 10px;
    min-width: 60px;
}

/* Hide text on very small screens, show only icons */
@media (max-width: 380px) {
    .nav-btn-primary span {
        display: none;
    }
    
    .nav-btn-primary {
        min-width: 40px;
        padding: 6px;
    }
    
    .nav-item {
        min-width: 45px;
        font-size: 10px;
    }
}