/* Blog Search Styles */
.blog-search-form {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.blog-search-input:focus,
.blog-search-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
    border-color: #14b8a6;
}

.search-tag-button {
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-tag-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f8fafc;
    border-color: #64748b;
}

.search-tag-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-results-info {
    animation: fadeInUp 0.5s ease-in-out;
}

.search-clear-filters {
    transition: all 0.2s ease;
}

.search-clear-filters:hover {
    color: #ef4444;
    transform: translateX(-2px);
}

/* Search form responsive design */
@media (max-width: 768px) {
    .blog-search-form {
        padding: 1.25rem;
    }
    
    .search-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .search-tag-button {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Loading state for search results */
.search-loading {
    opacity: 0.6;
    pointer-events: none;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search button hover effects */
.search-submit-btn {
    position: relative;
    overflow: hidden;
}

.search-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.search-submit-btn:hover::before {
    left: 100%;
}

/* Advanced filters toggle */
.advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.advanced-filters.show {
    max-height: 200px;
}

/* Search highlighting in results */
.search-highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* No results state */
.no-results-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.no-results-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.search-suggestion-item:hover {
    background-color: #f8fafc;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}
