/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 ;
    max-width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 0 auto;
}
.before_pro_item {
    position: absolute;
    right: 45px;
    top: 80%;
    background: #3b82f6;
    font-size: 13px;
    line-height: 1;
    padding: 2px 5px;
    color: #fff;
    border-radius: 5px 5px 5px 11px;
}
.header.scrolled {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    background: #ffffff;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 2rem 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--accent);
    font-weight: 700;
    max-width: 250px;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Logo Images */
.custom-logo {
    max-width: 200px;
    height: auto;
    max-height: 60px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    width: auto;
}

/* Site Title Fallback */
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

/* Responsive Logo Handling */
.desktop-logo {
    display: block;
}

.mobile-logo {
    display: none;
}

/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.sidebar-logo-img {
    max-width: 180px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logo white in sidebar */
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.mobile_desk-nav {
    display: none !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
    white-space: nowrap;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 0.8rem;
    color: var(--accent);
}

.nav-arrow {
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Desktop Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gaming-purple), var(--gaming-cyan));
}

.nav-item:hover .dropdown:not(.more-dropdown) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* More dropdown specific styles */
.more-dropdown {
    right: 0;
}

.more-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    list-style: none;
    padding: 0.75rem;
}

.dropdown-item {
    margin: 0;
    position: relative;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.dropdown-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    transform: translateX(-3px);
}

.dropdown-link i {
    width: 1rem;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Sub Dropdown for More Menu */
.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.has-sub-dropdown:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown-menu {
    list-style: none;
    padding: 0.5rem;
}

.sub-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.sub-dropdown-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.sub-dropdown-link i {
    width: 1rem;
    color: var(--accent);
    font-size: 0.75rem;
}

/* More Menu (3 dots) */
.more-menu {
    position: relative;
}

.more-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.more-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.more-trigger:hover::before {
    opacity: 1;
}

.more-trigger:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-outline {
    padding: 0.6rem 1.5rem;
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s ease;
    z-index: -1;
}
.btn-outline:hover::before {
    left: 0;
}
.btn-outline:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
/* Mobile icon for login button */
.mobile-only-icon {
    display: none;
}
.desktop-only-text {
    display: inline;
}
.mobile-toggle {
    background: none;
    color: #9b9fa8;
    border: 1px solid #9b9fa8;
    font-size: 14px;
    cursor: pointer;
    padding: 0.8rem 0.9rem;
    min-width: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.mobile-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
/* Responsive Logo Styles */
@media (max-width: 768px) {
    .custom-logo {
        max-width: 160px;
        max-height: 45px;
    }
    .mobile-logo {
        display: block;
    }

    .desktop-logo {
        display: none;
    }

    .sidebar-logo-img {
        max-width: 150px;
        max-height: 40px;
    }
    .mobile_desk-nav {
        display: flex !important;
    }
    .mobile_desk-nav .nav-link span {
        display: block !important;
    }
    .mobile_desk-nav .nav-link {
        font-size: .7rem !important;
        flex-direction: column !important;
    }
    .mobile_desk-nav .nav-menu {
        border-top: 1px solid #6c7af700;
        padding: 5px !important;
    }

}
@media (max-width: 480px) {
    .custom-logo {
        max-width: 150px;
        max-height: 50px;
    }
    .logo {
        max-width: 150px;
    }

    .sidebar-logo-img {
        max-width: 120px;
        max-height: 35px;
    }
}

/* اضافه کردن این CSS ها به انتهای فایل header.css */

/* نقطه وضعیت احراز هویت */
.user-profile-btn {
    position: relative;
}

.verification-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    animation: pulse-dot 2s infinite;
    z-index: 1;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* رنگ‌های مختلف نقطه */
.verification-status-dot.approved {
    background-color: #10b981;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.verification-status-dot.pending {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(245, 158, 11, 0.3);
}

.verification-status-dot.rejected {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.verification-status-dot.blocked {
    background-color: #dc2626;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(220, 38, 38, 0.3);
}

.verification-status-dot.none {
    background-color: #6b7280;
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(107, 114, 128, 0.3);
}

/* متن وضعیت در منوی کشویی */
.verification-status-text {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.8;
    margin-right: auto;
}

/* لودر سراسری */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

.global-loader.show {
    display: flex;
    opacity: 1;
}

.global-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.global-loader-content {
    position: relative;
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04),
            0 0 0 1px rgba(0, 0, 0, 0.04);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.global-loader.show .global-loader-content {
    transform: scale(1) translateY(0);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.global-loader-content p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}


@keyframes gradient-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    .verification-status-dot {
        width: 10px;
        height: 10px;
        top: -1px;
        right: -1px;
        border-width: 1.5px;
    }

    .verification-status-text {
        display: none;
    }

    .global-loader-content {
        padding: 2rem;
        margin: 1rem;
        min-width: 250px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .global-loader-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .verification-status-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .global-loader-content {
        padding: 1.5rem;
        margin: 0.5rem;
        min-width: 220px;
        border-radius: 16px;
    }

    .loader-spinner {
        width: 35px;
        height: 35px;
    }

    .global-loader-content p {
        font-size: 0.85rem;
    }
}

/* انیمیشن برای تغییر رنگ نقطه */
.verification-status-dot {
    transition: all 0.3s ease;
}

/* حالت تاریک برای لودر */
@media (prefers-color-scheme: dark) {
    .global-loader-backdrop {
        background: rgba(0, 0, 0, 0.8);
    }

    .global-loader-content {
        background: #1f2937;
        color: #f9fafb;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow:
                0 20px 40px rgba(0, 0, 0, 0.3),
                0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .global-loader-content p {
        color: #f9fafb;
    }

    .loader-spinner {
        border-color: #374151;
        border-top-color: #6366f1;
    }
}

/* حالت کم‌حرکت */
@media (prefers-reduced-motion: reduce) {
    .verification-status-dot {
        animation: none;
    }

    .loader-spinner {
        animation: spin 2s linear infinite;
    }

    .global-loader-content::before {
        animation: none;
        opacity: 0.05;
    }

    .global-loader-content {
        transition: opacity 0.3s ease;
    }
}

/* تنظیمات اضافی برای user menu */
.user-dropdown a {
    position: relative;
    overflow: hidden;
}

.user-dropdown a[href="#check_verification"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-dropdown a[href="#check_verification"]:hover .verification-status-text {
    opacity: 1;
}

/* Focus states برای accessibility */
.user-profile-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.user-dropdown a:focus {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}

.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.global-loader.show {
    display: flex;
    opacity: 1;
}

.global-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.global-loader-content {
    position: relative;
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.global-loader.show .global-loader-content {
    transform: scale(1);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    .verification-status-dot {
        width: 10px;
        height: 10px;
        top: -1px;
        right: -1px;
    }

    .verification-status-text {
        display: none;
    }

    .global-loader-content {
        padding: 1.5rem 2rem;
        margin: 1rem;
    }
}


/*search box header style css*/
/* ===== SEARCH SECTION STYLES ===== */

/* Search Section */
.search-section {
    position: sticky;
    top: 64px;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: .5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.result-badge.new {
    position: absolute;
    left: 5px;
    top: 5px;
    background: #6366f1;
    color: #fff;
    padding: 1px 10px;
    border-radius: 9px;
    font-size: 10px;
}
.search-containers {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}


/* Search Trigger Button */
.search-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    color: #64748b;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s ease;
}

.search-trigger:hover::before {
    left: 100%;
}

.search-trigger:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.search-trigger:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.search-trigger i {
    color: #6366f1;
    font-size: 1.2rem;
    min-width: 20px;
}

.search-placeholder {
    flex: 1;
    text-align: right;
    color: #64748b;
    font-weight: 400;
    font-family: 'KalamehWebFaNum';
}

.search-shortcut {
    background: #f8fafc;
    color: #64748b;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid #e2e8f0;
}

/* ===== SEARCH MODAL STYLES ===== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.show {
    display: block;
    opacity: 1;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.21);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.search-modal-content {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    border-radius: 24px;
    box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
}

.search-modal.show .search-modal-content {
    transform: scale(1) translateY(0);
}

/* Search Header */
.search-modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #fafbff 0%, #f8fafc 100%);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    color: #6366f1;
    font-size: 1.3rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.5rem;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    color: #1e293b;
    direction: rtl;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fefeff;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-close {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.search-close:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn i,
.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-btn.active::before {
    opacity: 1;
}

/* Search Modal Body */
.search-modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    padding: 1.5rem 2rem;
}

/* Search Results */
.search-results {
    display: none;
}

.search-results.show {
    display: block;
}

.result-section {
    margin-bottom: 2rem;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, #e2e8f0, transparent);
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    transition: left 0.5s ease;
}

.result-item:hover::before {
    left: 100%;
}

.result-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: #e0e7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.result-item.selected {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.result-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    flex-shrink: 0;
}
.result-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-item:hover .result-item-image img {
    transform: scale(1.1);
}

.result-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.result-item-content {
    flex: 1;
    min-width: 0;
}

.result-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.result-item-price {
    font-weight: 700;
    color: #059669;
    font-size: 1rem;
}

.result-item-code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #475569;
}

.result-item-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 400;
}

.result-item-badge.sale {
    background: #fecaca;
    color: #991b1b;
}

.result-item-badge.new {
    background: #d1fae5;
    color: #065f46;
}

/* Search Suggestions */
.search-suggestions {
    display: block;
}

.search-suggestions.hide {
    display: none;
}

.suggestions-section {
    margin-bottom: 2.5rem;
}

.suggestions-section:last-child {
    margin-bottom: 0;
}

.suggestions-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 5px;
}

.suggestion-tag {
    padding: 0.6rem 1rem;
    margin-left: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    font-family: 'KalamehWebFaNum';
    overflow: hidden;
}

.suggestion-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.4s ease;
}

.suggestion-tag:hover::before {
    left: 100%;
}

.suggestion-tag:hover {
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}
.category-btn {
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    font-family: 'KalamehWebFaNum';
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.4s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}

.suggestion-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.suggestion-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.suggestion-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.suggestion-category:hover::before {
    transform: scaleY(1);
}

.suggestion-category:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: #c7d2fe;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.suggestion-category i {
    color: #6366f1;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.suggestion-category span {
    font-weight: 400;
    color: #374151;
    flex: 1;
}

.suggestion-category small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Loading State */
.search-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}


.search-no-results h4 {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.search-no-results > p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.no-results-suggestions {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: right;
    border: 1px solid #e2e8f0;
}

.no-results-suggestions p {
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-results-suggestions li {
    color: #64748b;
    padding: 0.25rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.no-results-suggestions li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #6366f1;
    font-weight: bold;
}

/* Search Modal Footer */
.search-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbff;
    border-radius: 0 0 24px 24px;
}

.search-shortcuts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    color: #64748b;
}

.search-shortcuts kbd {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-left: 0.25rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .search-modal-content {
        margin: 2rem 1rem;
        max-height: calc(100vh - 4rem);
    }

    .search-containers {
        padding: 0 1.5rem;
    }

    .suggestion-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-section {
        top: 64px;
        padding: 0.75rem 0;
    }

    .search-containers {
        padding: 0 1rem;
    }

    .search-trigger {
        padding: 0.875rem 1.25rem;
        border-radius: 12px;
    }

    .search-trigger i {
        font-size: 1.1rem;
    }

    .search-placeholder {
        font-size: 0.9rem;
    }

    .search-shortcut {
        display: none;
    }

    .search-modal-content {
        margin: 1rem 0.5rem;
        border-radius: 16px;
        max-height: calc(100vh - 2rem);
    }

    .search-modal-header {
        padding: 1.25rem 1.5rem 1rem;
    }

    .search-input {
        padding: 1rem 3.5rem 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .search-modal-body {
        padding: 1rem 1.5rem;
    }

    .search-filters {
        gap: 0.375rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .result-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .result-item-image {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .result-item-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .result-item-title {
        font-size: 0.9rem;
    }

    .result-item-description {
        font-size: 0.8rem;
    }

    .suggestion-tags {
        gap: 0.5rem;
    }

    .suggestion-tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-modal-footer {
        padding: 0.875rem 1.5rem;
    }

    .search-shortcuts {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 0.5rem 0;
    }

    .search-trigger {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .search-placeholder {
        font-size: 0.85rem;
    }

    .search-modal-content {
        margin: 0.5rem 0.25rem;
        border-radius: 12px;
    }

    .search-modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .search-input {
        padding: 0.875rem 3rem 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .search-modal-body {
        padding: 0.875rem 1.25rem;
        max-height: 500px;
    }

    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .filter-btn i {
        font-size: 0.8rem;
    }

    .result-item {
        padding: 0.75rem;
        gap: 0.625rem;
        border-radius: 10px;
    }

    .result-item-image {
        width: 45px;
        height: 45px;
    }

    .result-item-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .result-item-title {
        font-size: 0.85rem;
    }

    .result-item-description {
        font-size: 0.75rem;
    }

    .suggestions-section h4 {
        font-size: 0.9rem;
    }

    .search-shortcuts {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    .search-trigger,
    .result-item,
    .filter-btn,
    .suggestion-tag,
    .suggestion-category {
        transition: none;
    }

    .search-trigger::before,
    .result-item::before,
    .suggestion-tag::before {
        display: none;
    }

    .loading-spinner {
        animation: none;
        border-top-color: #6366f1;
    }
}



/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item {
    animation: fadeInUp 0.3s ease forwards;
}

.result-item:nth-child(1) { animation-delay: 0.05s; }
.result-item:nth-child(2) { animation-delay: 0.1s; }
.result-item:nth-child(3) { animation-delay: 0.15s; }
.result-item:nth-child(4) { animation-delay: 0.2s; }
.result-item:nth-child(5) { animation-delay: 0.25s; }