/* Search Page Header Styles */
.search-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
}

.search-form.compact {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-form.compact .search-bar {
    display: flex;
    width: 100%;
}

.search-form.compact .search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    border-right: none;
    outline: none;
    font-size: 14px;
}

.search-form.compact .search-bar input:focus {
    border-color: var(--primary-color);
}

.search-form.compact .search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-form.compact .search-bar button:hover {
    background: #6B2FF7;
}

.header-actions.right-aligned {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .search-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-form.compact {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 10px 0 0 0;
    }
    
    .header-actions.right-aligned {
        order: 2;
        gap: 10px;
    }
}

/* Search Results Page Styles */

.search-results-section {
    padding: 2rem 0;
}

/* Search Stats Styles */
.search-stats {
    margin: 1rem 0;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.stats-info {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.total-count {
    font-weight: 600;
    color: #333;
}

.recent-count {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.historical-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #ff3d71;
    color: white;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.search-result-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.search-result-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.search-result-content {
    padding: 1rem;
}

.search-result-category {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.search-result-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.search-result-snippet {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.loading-indicator i {
    font-size: 2rem;
    color: #ff3d71;
    margin-bottom: 1rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

#search-query-display {
    color: #ff3d71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        justify-content: center;
    }
}
