/* ========================================
   OMNI-INSPIRED HEADER STYLES
   Modern, Clean, Two-Row Layout
   ======================================== */

.header-omni {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-omni .container {
    max-width: 100%;
    /* Wider for the category list */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   TOP BAR: Logo | Search | Auth
   ======================================== */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* 1. LOGO */
.omni-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.omni-logo svg,
.omni-logo img,
.omni-logo-icon {
    /* filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); */
    width: auto;
    height: 48px;
}

.omni-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    display: none;
}

/* 2. SEARCH BAR */
.omni-search-wrapper {
    flex: 1;
    max-width: 880px;
    position: relative;
    transition: all 0.3s ease;
    border: 0.2px solid #000000;
    border-radius: 30px;

}

.omni-search-input {
    width: 100%;
    height: 40px;
    padding: 0.875rem 1.25rem;
    padding-right: 3rem;
    font-size: 1rem;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid transparent;
    /* Cleaner look */
    border-radius: 99px;
    /* Pill shape */
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Inner depth */
}

.omni-search-input:focus {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 0 2px rgba(59, 130, 246, 0.1);
    /* Subtle glow */
}

.omni-search-input::placeholder {
    color: #232323;
    font-weight: 400;
    font-size: 0.9rem;
}

.omni-search-btn {
    position: absolute;
    right: 6px;
    border: none;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;

    background: #f3f4f6;
    /* White circle bg for icon */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0A2E6E;
    /* Brand Blue */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* 3. AUTH BUTTONS */
.omni-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn-login {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-login:hover {
    color: #0A2E6E;
}

.btn-signup-primary {
    background: #0A2E6E;
    /* Primary Blue CTA */
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-signup-primary:hover {
    background: #317BE8;
    box-shadow: 0 4px 12px rgba(37, 37, 37, 0.3);
    transform: translateY(-1px);
}

/* Mobile Search Toggle (Hidden by default) */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-search-toggle:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* ========================================
   BOTTOM ROW: Categories
   ======================================== */
.header-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-scroll-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    padding: 0.875rem 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
}

.nav-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.nav-item {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding-bottom: 0.25rem;
    /* Space for underline */
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #111827;
}

/* Highlighting Active Category (simulated class .active) */
.nav-item.active,
.nav-item:active {
    /* Also visual feedback on click */
    color: #000000;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    /* Align with container bottom */
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .header-top {
        gap: 1.5rem;
    }

    .omni-search-wrapper {
        max-width: 450px;
    }

    .nav-scroll-container {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-omni .container {
        padding: 0 1rem;
    }

    .header-top {
        flex-wrap: nowrap;
        padding: 0.6rem 0;
        gap: 0.75rem;
    }

    .omni-logo {
        flex: 1;
        min-width: 0;
    }

    .omni-logo svg,
    .omni-logo img,
    .omni-logo-icon {
        height: 32px;
    }

    .omni-logo-text {
        font-size: 1.1rem;
        display: none;
        /* Keep hidden on mobile by default to save space */
    }

    .omni-auth {
        gap: 0.75rem;
    }

    .btn-login {
        display: none;
    }

    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #f3f4f6;
        border-radius: 50%;
    }

    /* Search Wrapper Hidden on Mobile until toggled */
    .omni-search-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        background: #fff;
        padding: 0.75rem 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        border-radius: 0;
        margin: 0;
        border-top: 1px solid #eee;
    }

    .omni-search-wrapper.mobile-active {
        display: block;
        animation: slideDown 0.2s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .omni-search-input {
        background: #f9fafb;
        height: 44px;
        font-size: 1rem;
        border: 1px solid #e5e7eb;
    }

    .btn-signup-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .header-nav {
        background: #fff;
    }

    .nav-scroll-container {
        gap: 1.25rem;
        padding: 0.75rem 0;
    }

    .nav-item {
        font-size: 0.9rem;
    }

    .nav-item.active::after {
        bottom: -0.75rem;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .omni-logo-text {
        display: none;
    }

    .btn-signup-primary {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .mobile-search-toggle {
        width: 34px;
        height: 34px;
    }
}