/* ================================
   GALLERY SEARCH BAR STYLES
   ================================ */

.gallery-search-bar {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #9CA3AF;
    font-size: 1.125rem;
    margin-right: 0.75rem;
    pointer-events: none;
}

.gallery-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #111827;
    background: transparent;
    padding: 0;
    font-family: inherit;
}

.gallery-search-input::placeholder {
    color: #9CA3AF;
}

.clear-search-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 6px;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.clear-search-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.clear-search-btn:active {
    transform: scale(0.95);
}

.search-results-info {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-info i {
    color: #3B82F6;
}

.search-results-info.no-results {
    color: #DC2626;
}

.search-results-info.no-results i {
    color: #DC2626;
}

/* Search highlighting */
.product-card.search-match {
    animation: searchPulse 0.3s ease;
}

@keyframes searchPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
    100% {
        transform: scale(1);
    }
}

.product-card.search-hidden {
    display: none;
}

/* Empty search state */
.search-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.search-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-empty-icon i {
    font-size: 2.5rem;
    color: #9CA3AF;
}

.search-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.search-empty-text {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 640px) {
    .search-input-wrapper {
        padding: 0.625rem 0.875rem;
    }
    
    .gallery-search-input {
        font-size: 0.9375rem;
    }
    
    .search-icon {
        font-size: 1rem;
        margin-right: 0.625rem;
    }
    
    .clear-search-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
}
