/**
 * Search Page Styles
 * Styles for the search results page including filters, results, and no-results sections
 */

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    border-radius: 3px;
}

/* Search Results Cards */
.tease .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tease .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.tease .view-more-btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tease .card:hover .view-more-btn {
    background-color: var(--u-pink);
    color: #fff;
}

/* Search Filters Sidebar */
.search-filters-sidebar {
    position: sticky;
    top: 100px;
}

/* Search Input Validation */
.searchInput.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

#search-error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Category Filter Buttons */
.category-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    color: #555;
    transition: all 0.3s ease;
}

.category-btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.category-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--u-pink);
    color: var(--u-pink);
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn:hover i {
    color: var(--u-pink) !important;
}

.category-btn.active {
    background-color: var(--u-pink);
    border-color: var(--u-pink);
    color: #fff;
}

.category-btn.active i {
    color: #fff !important;
}

.category-btn.active:hover {
    background-color: var(--u-pink);
    border-color: var(--u-pink);
    color: #fff;
    transform: translateX(5px);
}

/* No Results Section */
.no-results-section .results-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.no-results-section ul {
    list-style: none;
}

.no-results-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.no-results-section ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--u-green);
    font-weight: 700;
}

/* Search Buttons */
.search-btn {
    border-radius: 1.5rem;
    padding: 0.375rem 1rem;
}

/* CTA Cards */
.cta-card {
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--u-pink);
}

.cta-icon {
    font-size: 2.5rem;
}

/* Search Content Wrapper */
#search-content-wrapper {
    min-height: 70vh;
}

/* Search Results Container */
#search-results-container {
    min-height: 10vh;
}

/* Search Loader - Fixed positioning to stay in viewport */
.search-results-container-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .search-filters-sidebar {
        position: static;
    }

    .category-btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .category-btn:hover {
        transform: translateY(-2px);
    }

    .category-btn.active:hover {
        transform: translateY(-2px);
    }
}
