/* Header Styles */

/* Top Announcement Banner */
.announcement-banner {
    /*background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #9333EA 100%);*/
    background: linear-gradient(135deg, #84190f 0%, #c0291b 50%, #911d12 100%);
    position: relative;
    z-index: 1000;
}

.announcement-text {
    font-size: 14px;
    font-weight: 500;
}

.btn-close-announcement {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.btn-close-announcement:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e5e7eb;
}

.brand-text {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'SVN Gilroy', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Search Bar Styles - Integrated Design */
.search-container {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
}

.search-form {
    width: 100%;
}

.integrated-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    overflow: visible; /*hidden*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 999;
}

.integrated-search-bar:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.integrated-search-bar:focus-within {
    border-color: #633bbb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Category Dropdown */
.search-category-dropdown {
    position: relative;
    border-right: 1px solid #e5e7eb;
    z-index: 1000;
}

.category-dropdown-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 25px 0 0 25px;
}

.category-dropdown-btn:hover {
    background-color: #f9fafb;
    color: #374151;
}

.category-dropdown-btn:focus {
    outline: none;
}

.category-dropdown-btn i.fas.fa-th-large {
    color: #9ca3af;
    font-size: 16px;
}

.category-dropdown-btn i.fas.fa-chevron-down {
    color: #9ca3af;
    font-size: 12px;
}

/* Category Dropdown Menu */
.category-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: none !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 200px;
    z-index: 1001;
    background-color: #ffffff;
}

.category-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.category-dropdown-menu .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* Search Input */
.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.integrated-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    background: transparent;
}

.integrated-search-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.integrated-search-input:focus {
    outline: none;
}

/* Search Button */
.integrated-search-btn {
    background: #633bbb;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
}

.integrated-search-btn:hover {
    background: #2563EB;
}

.integrated-search-btn:focus {
    outline: none;
}

.integrated-search-btn i {
    font-size: 16px;
}

/* User Actions */
.user-actions .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-actions .btn-primary {
    background: linear-gradient(45deg, #8068cd, #4b1a93);
    border: none;
}

.user-actions .btn-primary:hover {
    background: linear-gradient(45deg, #2563EB, #1E40AF);
    transform: translateY(-1px);
}

.user-actions .btn-outline-primary {
    border-color: #633bbb;
    color: #633bbb;
}

.user-actions .btn-outline-primary:hover {
    background-color: #3B82F6;
    color: white;
    transform: translateY(-1px);
}

.user-actions .btn-light {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.user-actions .btn-light:hover {
    background-color: #f1f5f9;
}

/* ===== CLEAN CATEGORY NAVIGATION ===== */
.category-nav {
    background: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;     /* Added */
    top: 0;              /* Added - Required for sticky */
    top: 109px;
    z-index: 100;
}

/* Desktop Navigation - Default behavior (preserve existing layout) */
.category-nav-toggle,
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
}

/* Mobile Menu Toggle Button */
.category-nav-toggle,
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    z-index: 1001;
    align-items: center;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #495057;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-nav-toggle:hover .hamburger-line {
    background: #007bff;
}

.category-nav-toggle.active .hamburger-line:nth-child(1),
.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.category-nav-toggle.active .hamburger-line:nth-child(2),
.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.category-nav-toggle.active .hamburger-line:nth-child(3),
.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-toggle.active {
    background: #007bff;
    border-color: #007bff;
}

.mobile-nav-toggle.active .hamburger-line {
    background: white;
}

/* Mobile Menu Overlay */
.category-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Category Menu */
.category-nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.category-nav-mobile.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-menu-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-items {
    padding: 20px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.mobile-nav-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #667eea;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

.mobile-nav-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mobile Responsive Styles - Only affect mobile devices */
@media (max-width: 767px) {
    /* Show hamburger menu on mobile */
    .category-nav-toggle,
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* Hide the category navigation items on mobile (they'll be in the slide-out menu) */
    .category-nav .nav-items {
        display: none;
    }
    
    /* Mobile header adjustments */
    .container-fluid.ta-container {
        position: relative;
        display: flex;
        align-items: center;
    }
    
    /* User actions mobile adjustments */
    .user-actions {
        gap: 8px;
    }
}

.nav-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1520px;
    margin: 0 auto;
    /*padding: 0 1.5rem;*/
    /*gap: 20px;*/
}

/* Individual Navigation Item */
.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

/* PNG Image Icon Styling */
.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Navigation Text */
.nav-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #333333;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effects */
.nav-item:hover {
    text-decoration: none;
}

.nav-item:hover .nav-icon {
    opacity: 0.8;
    transform: scale(1.05);
}

.nav-item:hover .nav-text {
    color: #8B5CF6;
}

/* Purple Underline on Hover */
.nav-item:hover .nav-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B5CF6;
    border-radius: 1px;
}

/* Active/Current Page State (optional) */
.nav-item.active .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active .nav-text {
    color: #8B5CF6;
}

.nav-item.active .nav-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B5CF6;
    border-radius: 1px;
}

.btn-category {
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 8px;
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Category button colors */
.btn-category-normal {
    background: linear-gradient(45deg, #10B981, #059669);
    color: white;
}

.btn-category-normal:hover {
    background: linear-gradient(45deg, #059669, #047857);
    color: white;
}

.btn-category-purple {
    background: linear-gradient(45deg, #8B5CF6, #7C3AED);
    color: white;
}

.btn-category-purple:hover {
    background: linear-gradient(45deg, #7C3AED, #6D28D9);
    color: white;
}

.btn-category-dark-purple {
    background: linear-gradient(45deg, #6D28D9, #5B21B6);
    color: white;
}

.btn-category-dark-purple:hover {
    background: linear-gradient(45deg, #5B21B6, #4C1D95);
    color: white;
}

.btn-category-teal {
    background: linear-gradient(45deg, #14B8A6, #0D9488);
    color: white;
}

.btn-category-teal:hover {
    background: linear-gradient(45deg, #0D9488, #0F766E);
    color: white;
}

.btn-category-pink {
    background: linear-gradient(45deg, #EC4899, #DB2777);
    color: white;
}

.btn-category-pink:hover {
    background: linear-gradient(45deg, #DB2777, #BE185D);
    color: white;
}

.btn-category-blue {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    color: white;
}

.btn-category-blue:hover {
    background: linear-gradient(45deg, #2563EB, #1D4ED8);
    color: white;
}

.btn-category-gray {
    background: linear-gradient(45deg, #6B7280, #4B5563);
    color: white;
}

.btn-category-gray:hover {
    background: linear-gradient(45deg, #4B5563, #374151);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header Layout */
    .main-header {
        padding: 8px 0;
    }
    
    /* Keep announcement but make it more compact */
    .announcement-banner {
        padding: 6px 0;
    }
    
    .announcement-text {
        font-size: 12px;
        text-align: center;
    }
    
    /* Hide brand text on smaller screens */
    .brand-text {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    /* Mobile Search Bar */
    .search-container {
        margin: 10px 0;
        padding: 0 10px;
    }
    
    .integrated-search-bar {
        border-radius: 15px;
        height: 44px;
    }
    
    /* Category dropdown adjustments */
    .category-dropdown-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px 0 0 15px;
        height: 44px;
    }
    
    .category-dropdown-btn i.fas.fa-th-large {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .category-dropdown-btn span {
        display: inline;
        font-size: 12px;
    }
    
    .category-dropdown-menu {
        min-width: 200px;
        border-radius: 8px;
    }
    
    /* Search input adjustments */
    .integrated-search-input {
        padding: 8px 12px;
        font-size: 14px;
        height: 44px;
    }
    
    .integrated-search-btn {
        padding: 8px 16px;
        height: 44px;
        border-radius: 0 15px 15px 0;
    }
    
    .integrated-search-btn i {
        font-size: 14px;
    }
    
    /* User Actions for Mobile */
    .user-actions {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .user-actions .btn {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 12px;
        white-space: nowrap;
    }
    
    .user-actions .btn-primary {
        background: #3B82F6;
        flex: 1;
        max-width: 120px;
    }
    
    .user-actions .btn-outline-primary {
        flex: 1;
        max-width: 120px;
    }
    
    /* Mobile Category Navigation */
    .category-nav {
        padding: 12px 0;
        background: #f8f9fa;
        position: sticky;    /* Added */
        top: 0;             /* Added */
        top: 109px;
        z-index: 100;
        display: none;
    }
    
    .nav-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 10px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-items::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 6px 10px;
        border-radius: 6px;
        background: white;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .nav-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .nav-text {
        font-size: 11px;
        font-weight: 500;
    }
    
    /* Category buttons for mobile */
    .btn-category {
        font-size: 11px;
        padding: 10px 14px;
        margin: 4px;
        border-radius: 8px;
        text-align: center;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    /* Small Mobile Adjustments */
    .brand-text {
        font-size: 16px;
    }
    
    /* Smaller announcement */
    .announcement-text {
        font-size: 11px;
        padding: 0 10px;
    }
    
    /* Search bar for very small screens */
    .search-container {
        padding: 0 5px;
    }
    
    .integrated-search-bar {
        height: 40px;
        border-radius: 12px;
    }
    
    .category-dropdown-btn,
    .integrated-search-input,
    .integrated-search-btn {
        height: 40px;
    }
    
    .category-dropdown-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .integrated-search-input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .integrated-search-btn {
        padding: 6px 12px;
    }
    
    /* User actions for very small screens */
    .user-actions {
        gap: 6px;
        margin-top: 8px;
    }
    
    .user-actions .btn {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 8px;
    }
    
    .user-actions .btn-primary,
    .user-actions .btn-outline-primary {
        max-width: 100px;
    }
    
    /* Mobile category navigation */
    .nav-items {
        padding: 0 5px;
        gap: 6px;
    }
    
    .nav-item {
        padding: 4px 8px;
        border-radius: 6px;
        min-width: 80px;
    }
    
    .nav-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    
    .nav-text {
        font-size: 10px;
        font-weight: 500;
    }
    
    /* Category buttons for very small screens */
    .btn-category {
        font-size: 10px;
        padding: 8px 12px;
        margin: 3px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile screens */
    .announcement-text {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .brand-text {
        font-size: 14px;
    }
    
    /* Even smaller search elements */
    .category-dropdown-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .integrated-search-input {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* Compact user actions */
    .user-actions .btn {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .user-actions .btn-primary,
    .user-actions .btn-outline-primary {
        max-width: 80px;
    }
    
    /* Very compact navigation */
    .nav-item {
        padding: 3px 6px;
        min-width: 70px;
    }
    
    .nav-text {
        font-size: 9px;
    }
    
    .btn-category {
        font-size: 9px;
        padding: 6px 10px;
        min-width: 80px;
    }
}