/**
 * Universal Navigation Styling - All Themes/Concepts
 * Created: 2025-10-21
 * Purpose: Standard navigation across all header concepts
 *
 * UI/UX Expert Guidelines Applied:
 * - Compact top navigation (smaller toggle = shorter bar)
 * - Mobile: 44px minimum touch targets (Apple/Google standard)
 * - Generous spacing for comfortable navigation
 * - Left-aligned menu items (easier to scan than centered)
 * - Visual separation between items
 */

/* ==========================================================================
   TOP NAVIGATION - COMPACT & UNIVERSAL
   ========================================================================== */

/* Reduce overall navbar height */
.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-nav .nav-link {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* ==========================================================================
   DARK/LIGHT MODE TOGGLE - SMALLER & MORE COMPACT
   ========================================================================== */

/* Desktop - Compact toggle */
#color-mode-toggle {
    font-size: 1.1rem !important; /* Smaller than default */
    padding: 0.4rem 0.6rem !important;
    margin-right: 0.5rem !important;
    border-radius: 0.375rem !important;
}

#color-mode-toggle i {
    font-size: inherit !important;
}

/* Footer toggle - consistent sizing */
#color-mode-toggle-footer {
    font-size: 1.1rem !important;
    padding: 0.4rem 0.6rem !important;
}

/* ==========================================================================
   MOBILE NAVIGATION - UI/UX OPTIMIZED
   Best practices: 44px touch targets, generous spacing, easy scanning
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Mobile Menu Container - Better spacing */
    .navbar-collapse {
        margin-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Mobile Menu Items - Generous Touch Targets */
    .navbar-nav .nav-link {
        padding: 0.875rem 1.25rem !important; /* 44px min height for touch */
        margin-bottom: 0.25rem !important;
        font-size: 1rem !important;
        border-radius: 0.375rem;
        transition: all 0.2s ease;
    }

    /* Mobile Menu Items - Visual Separation */
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    /* Mobile - Dark Mode Toggle at Bottom */
    .navbar-nav .nav-item:has(#color-mode-toggle) {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: none !important;
    }

    /* Mobile Toggle - Full Width Button */
    #color-mode-toggle {
        width: 100%;
        text-align: left;
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem !important;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    #color-mode-toggle i {
        font-size: 1.2rem !important;
    }

    /* Mobile - Hover States (better visual feedback) */
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Mobile - Active States */
    .navbar-dark .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.15) !important;
        font-weight: 600;
    }
}

/* ==========================================================================
   TABLET NAVIGATION (768px - 991px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    #color-mode-toggle {
        font-size: 1rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* ==========================================================================
   DESKTOP NAVIGATION (992px+)
   ========================================================================== */

@media (min-width: 992px) {
    /* Horizontal menu - compact spacing */
    .navbar-nav .nav-link {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Desktop toggle - minimal */
    #color-mode-toggle {
        font-size: 1.1rem !important;
        padding: 0.4rem 0.6rem !important;
    }
}

/* ==========================================================================
   HAMBURGER MENU BUTTON - Better Visibility
   ========================================================================== */

.navbar-toggler {
    padding: 0.5rem 0.75rem !important;
    font-size: 1.1rem !important;
    border-width: 2px !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   ACCESSIBILITY - Focus States
   ========================================================================== */

.navbar-nav .nav-link:focus-visible,
#color-mode-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px;
}

/* ==========================================================================
   LIGHT MODE SPECIFIC TWEAKS
   ========================================================================== */

/* Light mode navigation (if used in other concepts) */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.navbar-light .navbar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.1) !important;
    font-weight: 600;
}

/* ==========================================================================
   MOBILE MENU ICONS - Better Alignment
   ========================================================================== */

@media (max-width: 991.98px) {
    .navbar-nav .nav-link i {
        margin-right: 0.75rem;
        width: 1.25rem;
        text-align: center;
    }
}
