

/* Custom Empty State Container (No Results) */
.search-no-results-card {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-top: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.search-no-results-icon-wrap {
    width: 90px;
    height: 90px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    position: relative;
}

.search-no-results-icon-wrap i {
    font-size: 2.2rem;
    color: var(--instasearch-primary);
}

.search-no-results-icon-wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--instasearch-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: searchPulse 2s infinite ease-out;
}

@keyframes searchPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.search-no-results-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.search-no-results-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Popular Searches tags in Empty State */
.search-popular-searches-box {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.search-popular-searches-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 12px;
}

.search-popular-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.search-popular-tag {
    background: #f3f4f6;
    border: 1px solid transparent;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.search-popular-tag:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

/* Dynamic Page Loading Overlay (AJAX / Actions) */
.search-ajax-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.search-ajax-loading-overlay.active {
    display: flex;
}

.search-ajax-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--instasearch-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: searchSpinner 0.8s linear infinite;
}

@keyframes searchSpinner {
    to {
        transform: rotate(360deg);
    }
}
