/**
 * Lisenziya.az - Header Minimization & Mobile-First Override
 * Version: 1.0.0
 * Date: 2026-01-17
 * 
 * Bu faylı header.tpl-də yükləyin və istənilməyən elementləri gizlədər
 */

/* ============================================
   HIDE UNNECESSARY HEADER ELEMENTS
   ============================================ */

/* Login/Register/Account links - gizlət */
.userWelcome,
.fbAccountBox,
.facebook-login,
#top-links .dropdown,
#top-links .list-inline {
    display: none !important;
}

/* Shopping Cart - gizlət */
#cart,
.cart-btn,
button[data-toggle="dropdown"]:has(.fa-shopping-cart) {
    display: none !important;
}

/* Wishlist - gizlət */
#wishlist-total,
a[href*="wishlist"] {
    display: none !important;
}

/* Compare - gizlət */
#compare-total,
a[href*="compare"] {
    display: none !important;
}

/* Checkout link - gizlət */
a[href*="checkout"] {
    display: none !important;
}

/* ============================================
   MINIMAL HEADER LAYOUT
   ============================================ */

/* Hide header-top-bar completely */
.header-top-bar {
    display: none !important;
}

/* Remove body padding since header is gone */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Header container optimization */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 0;
    overflow: visible;
}

/* Header Top Bar - Logo + Language */
.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    background: #fff;
}

/* Logo - Left side */
#logo {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

#logo a {
    display: block;
}

#logo svg,
#logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Language Switcher - Right side */
#language-switcher {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
}

#language-switcher .btn-link,
#language-switcher .dropdown-toggle {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    text-decoration: none;
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

#language-switcher .btn-link:hover,
#language-switcher .dropdown-toggle:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

#language-switcher .dropdown-menu {
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-top: 8px;
    min-width: 140px;
}

#language-switcher .dropdown-menu li a {
    color: #2c3e50;
    padding: 10px 16px;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
}

#language-switcher .dropdown-menu li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

#language-switcher img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Top bar - Hide completely (language moved to menu) */
#top {
    display: none !important;
}

/* Old header-main-container - No longer used */
.header-main-container {
    display: none !important;
}

/* Search - Hide from header (moved to separate location if needed) */
#search {
    display: none !important;
}

/* ============================================
   MOBILE-FIRST SEARCH BAR (HIDDEN)
   ============================================ */
    padding-left: 20px;
}

#search .form-control:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

#search .btn {
    height: 45px;
    border-radius: 0 25px 25px 0;
    background: #e74c3c;
    border: 2px solid #e74c3c;
    color: #fff;
    padding: 0 25px;
    transition: all 0.3s ease;
}


#search .btn:hover {
    background: #c0392b;
    border-color: #c0392b;
}

#search .btn i {
    font-size: 18px;
}

/* Cart - Right side element */
#cart {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

#cart .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#cart .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}


/* ============================================
   HAMBURGER MENU STYLE
   ============================================ */

/* Hamburger button visible */
.navbar-toggle {
    display: block !important;
    margin: 0;
    padding: 10px;
    border: none;
    background: transparent;
}

.navbar-toggle .icon-bar {
    background-color: #2c3e50;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle:not(.collapsed) .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   MOBILE HEADER LAYOUT
   ============================================ */

@media (max-width: 767px) {
    /* Header stays at top */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }
    
    /* Body padding for fixed header */
    body {
        padding-top: 80px;
    }
    
    /* Mobile logo smaller */
    #logo svg,
    #logo img {
        height: 35px !important;
    }
    
    /* Show hamburger on mobile */
    .mobile-menu-hamburger {
        display: flex !important;
    }
}
    
    #logo svg,
    #logo img {
        height: 32px !important;
        margin: 0;
    }
    
    /* Language switcher mobile - Right side, same row as logo */
    #language-switcher {
        order: 2;
        flex: 0 0 auto;
        justify-content: center;
        margin: 0 0 0 12px;
    }
    
    #language-switcher .btn-link,
    #language-switcher .dropdown-toggle {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    #language-switcher .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    /* Search mobile - Full width, second row */
    #search {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    #search .form-control {
        font-size: 14px;
        height: 40px;
    }
    
    #search .btn {
        height: 40px;
        padding: 0 20px;
    }
    
    /* Cart mobile - Hidden on mobile */
    #cart {
        display: none;
    }
    
    /* Menu collapse styling */
    .navbar-collapse {
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    
    .navbar-nav {
        margin: 0;
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid #ecf0f1;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .navbar-nav > li > a:hover {
        background: #f8f9fa;
        color: #e74c3c;
    }
}

/* ============================================
   TABLET OPTIMIZATION (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    .header-main-container {
        padding: 12px 20px;
        gap: 15px;
    }
    
    #logo svg,
    #logo img {
        height: 60px;
    }
    
    #language-switcher {
        margin-left: 15px;
    }
    
    #search {
        max-width: 400px;
    }
}

/* ============================================
   TABLET & DESKTOP OPTIMIZATION
   ============================================ */

@media (min-width: 768px) {
    /* Desktop header - no top bar */
    header {
        top: 0;
    }
    
    #logo {
        padding: 0;
        margin: 0 auto;
    }
    
    #language-switcher {
        margin-left: 20px;
    }
    
    #search {
        max-width: 500px;
    }
    
    /* Menu horizontal */
    .navbar-collapse {
        padding: 0;
    }
    
    .navbar-nav > li > a {
        padding: 15px 20px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav > li > a:hover {
        background: #e74c3c;
        color: #fff;
    }
    
    /* Dropdown styling */
    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 0;
    }
}

/* ============================================
   LANGUAGE/CURRENCY SWITCHER (if needed)
   ============================================ */

.language-switcher,
.currency-switcher {
    display: inline-block;
    margin: 0 10px;
}

.language-switcher select,
.currency-switcher select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ============================================
   CLEAN UNUSED SPACES
   ============================================ */

/* Remove extra paddings and margins */
.header-middle,
.header-bottom {
    padding: 0;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Reduce repaints */
.navbar,
header {
    will-change: transform;
    backface-visibility: hidden;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Ensure header-top-bar is hidden on mobile */
    .header-top-bar,
    #logo,
    #language-switcher {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Remove all body padding on mobile */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Header should not take space */
    header {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    /* Hamburger button positioning */
    .mobile-menu-hamburger {
        position: fixed !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 10000 !important;
    }
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-main:focus {
    top: 0;
}
