/**
 * File: css/header-navigation.css
 * Path: /css/header-navigation.css
 * 
 * Purpose:
 * - Moderne Header-Navigation für TC Hugsweier
 * - Kompaktes Logo-Design
 * - Responsive Navigation mit Hamburger-Menü
 * - Blaue Akzente statt blauem Hintergrund
 * - Mobile-First Approach
 * 
 * Dependencies:
 * - Bootstrap 5.3.0
 * - FontAwesome 6.4.0
 * 
 * Sections:
 * 1. Header Base Styles
 * 2. Logo Styles
 * 3. Navigation Links (Desktop)
 * 4. Mobile Navigation (Hamburger)
 * 5. Blue Accent Elements
 * 6. Responsive Design
 * 7. Accessibility
 * 
 * Created: 2025
 * Author: TC Hugsweier
 * Version: 1.0
 */

/* ========================================
   1. HEADER BASE STYLES
======================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

.site-header .navbar {
    padding: 0.75rem 0;
}

/* ========================================
   2. LOGO STYLES
======================================== */

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ========================================
   3. NAVIGATION LINKS (DESKTOP)
======================================== */

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: #007bff;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(0, 123, 255, 0.08);
    color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.nav-link:hover i {
    transform: rotate(5deg) scale(1.1);
}

/* Active Link State */
.nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: #ffffff;
}

/* ========================================
   4. MOBILE NAVIGATION (HAMBURGER)
======================================== */

.navbar-toggler {
    border: 2px solid #007bff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: #007bff;
    border-color: #007bff;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 123, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Dropdown */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* ========================================
   5. BLUE ACCENT ELEMENTS
======================================== */

.header-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3, #004085);
    width: 100%;
}

/* Optional: Subtle blue glow effect on hover */
.site-header:hover .header-accent-line {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* ========================================
   6. RESPONSIVE DESIGN
======================================== */

/* Tablets and below */
@media (max-width: 991px) {
    .logo-img {
        height: 50px;
        max-width: 200px;
    }

    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #e9ecef;
        gap: 0;
    }

    .nav-link {
        border-radius: 8px;
        margin-bottom: 0.5rem;
        padding: 0.875rem 1rem;
    }

    .nav-link.active {
        margin-bottom: 0.5rem;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 0;
    }

    .site-header .navbar {
        padding: 0.5rem 0;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .logo-img {
        height: 45px;
        max-width: 180px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 0.875rem;
    }

    .nav-link i {
        font-size: 0.85rem;
    }

    .site-header {
        margin-bottom: 1.5rem;
    }
}

/* Large screens - more spacing */
@media (min-width: 1200px) {
    .logo-img {
        height: 70px;
        max-width: 300px;
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 1.05rem;
    }
}

/* ========================================
   7. ACCESSIBILITY
======================================== */

/* Focus states for keyboard navigation */
.nav-link:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        border: 2px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-color: #007bff;
    }

    .header-accent-line {
        height: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link i,
    .logo-img,
    .navbar-toggler,
    .navbar-collapse {
        transition: none;
    }

    .nav-link:hover {
        transform: none;
    }

    .logo-img:hover {
        transform: none;
    }
}

/* ========================================
   8. PRINT STYLES
======================================== */

@media print {
    .site-header {
        box-shadow: none;
        position: static;
        margin-bottom: 1rem;
    }

    .navbar-toggler {
        display: none;
    }

    .header-accent-line {
        display: none;
    }

    .navbar-nav {
        display: none;
    }

    .logo-img {
        height: 50px;
    }
}

/* ========================================
   9. ADDITIONAL HOVER EFFECTS
======================================== */

/* Removed underline animation - using scale effect instead */

/* ========================================
   10. UTILITY CLASSES
======================================== */

/* Container max-width override for wider layouts */
.site-header .container {
    max-width: 1400px;
}

/* Optional: Transparent header variant (for special pages) */
.site-header.transparent {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Optional: Compact header variant (for scrolled state) */
.site-header.compact .navbar {
    padding: 0.5rem 0;
}

.site-header.compact .logo-img {
    height: 45px;
}