/*--------------------------------------------------------------
>>> FILECR-STYLE MOBILE HEADER
----------------------------------------------------------------
Beautiful mobile header with teal logo, centered search, and menu
--------------------------------------------------------------*/

@media (max-width: 991px) {

    /* Mobile Header Container - Beautiful Gradient */
    .site-header {
        height: 70px;
        padding: 0;
        background: linear-gradient(135deg, #0f766e 0%, #0891b2 50%, #0284c7 100%);
        box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
        position: relative;
        overflow: hidden;
    }

    /* Decorative background pattern */
    .site-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .header-top {
        display: block !important;
        height: 70px;
        position: relative;
        z-index: 1;
    }

    .header-top-inner {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        gap: 12px;
        height: 100%;
        padding: 0 15px;
    }

    /* Logo - White Box with Teal Letter and Glow */
    .site-logo {
        order: 1;
        margin: 0;
    }

    .site-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #ffffff;
        border-radius: 10px;
        font-size: 0;
        font-weight: 900;
        color: #0f766e;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3), 0 0 20px rgba(16, 185, 129, 0.4);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .site-logo a::before {
        content: attr(data-letter);
        font-size: 26px;
        display: block;
        background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 900;
    }

    .site-logo a:hover {
        transform: scale(1.1) rotate(-5deg);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(16, 185, 129, 0.6);
    }

    /* Hide full logo image/text on mobile */
    .site-logo img,
    .site-logo .custom-logo {
        display: none;
    }

    /* Search Bar - White with Teal Accents */
    .header-search {
        order: 2;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .search-form {
        position: relative;
        width: 100%;
    }

    .search-input {
        width: 100%;
        height: 44px;
        padding: 0 45px 0 45px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 22px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        color: #1f2937;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: #ffffff;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }

    .search-input::placeholder {
        color: #6b7280;
        font-weight: 400;
    }

    /* Search Icon - Left Side with Teal Color */
    .search-form .search-icon,
    .search-form::before {
        content: '\f002';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #0f766e;
        font-size: 16px;
        pointer-events: none;
    }

    .search-form .search-icon {
        display: none;
    }

    /* Hide search suggestions on mobile */
    .search-suggestions {
        display: none;
    }

    /* Header Actions - Only show menu toggle */
    .header-actions {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
    }

    .header-actions .categories-btn,
    .header-actions .add-extension-btn {
        display: none;
    }

    /* Mobile Menu Toggle - Highly Visible */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 10px;
        cursor: pointer;
        padding: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border-color: #ffffff;
    }

    /* Hamburger Icon - Bright White */
    .mobile-menu-toggle span {
        position: relative;
        display: block;
        width: 24px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .mobile-menu-toggle span::before,
    .mobile-menu-toggle span::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .mobile-menu-toggle span::before {
        top: -8px;
    }

    .mobile-menu-toggle span::after {
        bottom: -8px;
    }

    /* Hamburger to X Animation - Bright White */
    .mobile-menu-toggle.is-active {
        background: rgba(0, 0, 0, 0.4);
        border-color: #ffffff;
    }

    .mobile-menu-toggle.is-active span {
        background: transparent;
        box-shadow: none;
    }

    .mobile-menu-toggle.is-active span::before {
        top: 0;
        transform: rotate(45deg);
        background: #ffffff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .mobile-menu-toggle.is-active span::after {
        bottom: 0;
        transform: rotate(-45deg);
        background: #ffffff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    /* Hide FontAwesome icon if present */
    .mobile-menu-toggle i {
        display: none;
    }

    /* Hide bottom header on mobile */
    .header-bottom {
        display: none;
    }
}

/* Desktop - Normal header */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }

    /* Show full logo on desktop */
    .site-logo a::before {
        display: none;
    }

    .site-logo img,
    .site-logo .custom-logo {
        display: block;
    }
}