/* B2B Food - Base Layout & Navigation Styles */

/* ============================================
   MINI NAVBAR
   ============================================ */
.mini-navbar {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mini-navbar.hidden {
    transform: translateY(-100%);
}

/* ============================================
   MAIN NAVBAR
   ============================================ */
.main-navbar {
    border-bottom: 1px solid #dee2e6;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 500;
    border-bottom: 2px solid #0d6efd;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 250px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.dropdown-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem 0.25rem 1rem;
}

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

/* Admin section styling */
.dropdown-item[href*="admin"] {
    color: #dc3545;
}

.dropdown-item[href*="admin"]:hover {
    background-color: #fff5f5;
}

/* User dropdown toggle styling */
#userDropdown {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background-color 0.2s;
}

#userDropdown:hover {
    background-color: #f8f9fa;
}

/* ============================================
   MOBILE FILTER SIDEBAR
   ============================================ */
.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-filter-sidebar.show {
    visibility: visible;
    opacity: 1;
}

.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-filter-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-filter-sidebar.show .mobile-filter-content {
    transform: translateX(0);
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 200px);
}

/* Container für begrenzte Breite */
.container {
    max-width: 1400px;
}

@media (min-width: 1200px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    margin-bottom: 1.5rem;
}

/* ============================================
   NAVBAR BRAND
   ============================================ */
.navbar-brand {
    font-size: 1.4rem;
}

/* ============================================
   CONTENT SPACING
   ============================================ */
.row > [class*="col-"] {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .row > [class*="col-"] {
        margin-bottom: 0;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.2rem 0;
    }
    
    .mobile-filter-sidebar .card-body {
        padding: 1rem;
    }
    
    .mobile-filter-sidebar .form-control,
    .mobile-filter-sidebar .form-select {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 1rem;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 992px) {
    body {
        padding-top: 20px;
    }
    
    .filter-sidebar-content.sticky-top {
        top: 140px !important; /* Unter der Navigation */
    }
}

/* ============================================
   ICON HOVER EFFECTS
   ============================================ */
.nav-link:hover .fa-heart {
    color: #dc3545 !important;
}

/* ============================================
   BODY PADDING
   ============================================ */
body {
    padding-top: 0;
}
