/* ===== PREMIUM FULLSCREEN ARAMA ===== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    animation: searchFadeIn 0.3s ease forwards;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-modal.closing {
    animation: searchFadeOut 0.25s ease forwards;
}

@keyframes searchFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-container {
    position: relative;
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    z-index: 2;
    background: #f1efefff;
    border-radius: 24px;
    padding-bottom: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

/* Search Header */
.search-header {
    padding: 0 24px;
}

.search-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 16px 24px;
    border: 1px solid #f1f5f9;
}

.search-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 14px;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.search-input-box {
    flex: 1;
    position: relative;
}

.search-input-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    padding: 4px 0;
    caret-color: #10b981;
}

.search-input-box input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.search-input-line {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-box input:focus~.search-input-line {
    width: 100%;
}

.search-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f8fafc;
    color: #64748b;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s;
}

.search-close-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Search Content */
.search-content {
    margin-top: 12px;
    padding: 0 24px;
    overflow-y: auto;
    flex: 1;
}

.search-content::-webkit-scrollbar {
    width: 6px;
}

.search-content::-webkit-scrollbar-track {
    background: transparent;
}

.search-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

/* Sections */
.search-section {
    margin-bottom: 28px;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding-left: 4px;
}

.search-section-title i {
    font-size: 14px;
    color: #10b981;
}

/* Keyword Chips */
.search-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-keyword-chip i {
    font-size: 10px;
    color: #94a3b8;
    transition: color 0.25s;
}

.search-keyword-chip:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.search-keyword-chip:hover i {
    color: #059669;
}

/* Trend Categories */
.search-trend-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.search-trend-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    transition: all 0.25s;
}

.search-trend-cat:hover {
    background: #ffffff;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trend-cat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 10px;
    flex-shrink: 0;
}

.trend-cat-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.trend-cat-icon i {
    font-size: 14px;
    color: #10b981;
}

.trend-cat-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.trend-cat-count {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Search Tips */
.search-tips {
    display: flex;
    gap: 20px;
}

.search-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.search-tip kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    font-family: inherit;
}

/* ===== SKELETON ===== */
.search-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.skel-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.skel-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skelShimmer 1.5s ease infinite;
}

.skel-body {
    padding: 16px;
}

.skel-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skelShimmer 1.5s ease infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skel-line.w80 {
    width: 80%;
}

.skel-line.w70 {
    width: 70%;
}

.skel-line.w60 {
    width: 60%;
}

.skel-line.w50 {
    width: 50%;
}

.skel-line.w40 {
    width: 40%;
}

.skel-line.w30 {
    width: 30%;
}

@keyframes skelShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== RESULTS ===== */
.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.search-results-count {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.search-results-count strong {
    color: #10b981;
    font-weight: 800;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.search-product {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-product:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.search-product-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.search-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.search-product:hover .search-product-img img {
    transform: scale(1.08);
}

.search-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
}

.search-product-badges .s-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.s-badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.s-badge-free {
    background: #059669;
}

.s-badge-bundle {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.search-product-body {
    padding: 16px;
}

.search-product-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 2.8em;
}

.search-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-product-price {
    font-size: 15px;
    font-weight: 800;
    color: #10b981;
}

.search-product-cat {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 80px 20px;
}

/* ===== DARK THEME ===== */
body.dark-theme .search-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-theme .search-container {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-header-inner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-input-box input {
    color: #f1f5f9;
}

body.dark-theme .search-kbd {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-theme .search-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-theme .search-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .search-section-title {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .search-keyword-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .search-trend-cat {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .search-trend-cat:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .trend-cat-icon {
    background: rgba(16, 185, 129, 0.2);
}

body.dark-theme .search-tip {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .search-tip kbd {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .skel-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .skel-img,
body.dark-theme .skel-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
}

body.dark-theme .search-results-count {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .search-product {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .search-product-title {
    color: #f1f5f9;
}

body.dark-theme .search-product-cat {
    color: #64748b;
}

body.dark-theme .no-results-icon .fa-search {
    color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-no-results h3 {
    color: #f1f5f9;
}

body.dark-theme .search-no-results p {
    color: #94a3b8;
}

body.dark-theme .no-results-suggestions {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .no-results-suggestions span {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .no-results-suggestions li {
    color: rgba(255, 255, 255, 0.7);
}

.no-results-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.no-results-icon .fa-search {
    font-size: 80px;
    color: #e2e8f0;
}

.no-results-x {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 24px;
    color: #ef4444;
    background: #fee2e2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-no-results h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.search-no-results p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.no-results-suggestions {
    display: inline-block;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
}

.no-results-suggestions span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.no-results-suggestions li {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}

.no-results-suggestions li::before {
    content: '→';
    color: #10b981;
    margin-right: 8px;
    font-weight: 700;
}


/* ===== DARK THEME UYUMU ===== */
.dark-theme .search-header-inner {
    background: rgba(33, 33, 33, 0.98);
    border-color: rgba(55, 65, 81, 0.5);
}

.dark-theme .search-input-box input {
    color: #f9fafb;
}

.dark-theme .search-input-box input::placeholder {
    color: #6b7280;
}

.dark-theme .search-close-btn {
    background: rgba(55, 65, 81, 0.8);
    color: #d1d5db;
}

.dark-theme .search-kbd {
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(55, 65, 81, 0.8);
    color: #d1d5db;
}

.dark-theme .search-container {
    background: #111827;
    border-color: #374151;
}

.dark-theme .search-keyword-chip {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

.dark-theme .search-keyword-chip:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.dark-theme .search-trend-cat {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

.dark-theme .search-trend-cat:hover {
    background: #374151;
}

.dark-theme .trend-cat-icon {
    background: rgba(16, 185, 129, 0.1);
}

.dark-theme .skel-card {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .skel-img,
.dark-theme .skel-line {
    background: linear-gradient(90deg, #1f2937 0%, #374151 50%, #1f2937 100%);
}

.dark-theme .search-product {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .search-product-title {
    color: #f9fafb;
}

.dark-theme .search-product-cat {
    color: #9ca3af;
}

.dark-theme .no-results-suggestions {
    background: #1f2937;
    border-color: #374151;
}