/* 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 {
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link.active {
    color: #14613f !important;
    font-weight: 600;
    background-color: rgba(20, 97, 63, 0.08);
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: #14613f;
    background-color: rgba(20, 97, 63, 0.05);
    border-radius: 6px;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.navbar .nav-item.dropdown {
    position: relative;
    z-index: 1050 !important;
}

.navbar .dropdown-toggle {
    position: relative;
    z-index: 1051 !important;
}

.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;
    z-index: 1052 !important;
}

.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;
}

/* ============================================
   DESIGN SYSTEM 2026
   ============================================ */
:root {
    --ink: #17211d;
    --muted: #66736c;
    --surface: #ffffff;
    --canvas: #f5f7f4;
    --line: #dfe6e0;
    --brand: #14613f;
    --brand-strong: #0d4b30;
    --brand-soft: #e2f1e7;
    --accent: #e6a94c;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 12px 32px rgba(23, 33, 29, .08);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 20, 97, 63;
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-strong);
    --bs-focus-ring-color: rgba(20, 97, 63, .2);
}

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.main-content { padding: 2.5rem 0 3.5rem; }
.main-content--homepage { padding-top: 0; }
.main-content--homepage > .container-fluid { overflow: hidden; }
.container { max-width: 1320px; }

.card, .dropdown-menu { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-control, .form-select { border-color: var(--line); border-radius: var(--radius-sm); min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(20, 97, 63, .12); }

.btn { border-radius: 10px; font-weight: 650; padding: .68rem 1rem; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-1px); box-shadow: 0 7px 16px rgba(20, 97, 63, .18); }
.btn-outline-primary { border-color: var(--brand); color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-primary:focus { box-shadow: 0 0 0 .2rem rgba(20, 97, 63, .18); }
.product-overview-header { background: linear-gradient(125deg, #123e2a, #1e6747) !important; }
