/* Search Results CSS */

/* ===== SEARCH HERO SECTION ===== */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.search-hero .container {
    position: relative;
    z-index: 2;
}

.search-hero .blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.search-hero .blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== SEARCH RESULTS HEADER ===== */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.search-query {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.search-query strong {
    color: #667eea;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.sort-options select {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    background: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sort-options select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== SEARCH RESULTS LIST ===== */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.result-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.result-meta .category-link {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.result-meta .category-link:hover {
    background: #5a6fd8;
}

.result-meta .post-date {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.result-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #667eea;
}

.result-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== SEARCH SNIPPETS ===== */
.result-snippets {
    margin-bottom: 1rem;
}

.snippet {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.snippet i {
    color: #667eea;
    margin-right: 0.5rem;
}

.snippet-text {
    font-style: italic;
}

/* ===== RESULT FOOTER ===== */
.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.result-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.result-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.relevance-score {
    color: #28a745;
    font-weight: 600;
}

.relevance-score i {
    color: #ffc107;
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Suggestions */
.search-suggestions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.search-suggestions h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 0.5rem 0;
    color: #6c757d;
    position: relative;
    padding-left: 1.5rem;
}

.suggestions-list li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary i {
    opacity: 0.8;
    font-size: 1rem;
}

.btn-secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-secondary i {
    opacity: 0.6;
    font-size: 1.1rem;
}

/* ===== SEARCH FILTERS ===== */
.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-filters .filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.search-filters .filter-group select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-filters .filter-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== POPULAR SEARCHES ===== */
.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.search-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ===== RECENT SEARCHES ===== */
.recent-searches {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.recent-search-item:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateX(5px);
}

.recent-search-item i {
    color: #6c757d;
    font-size: 0.8rem;
}

.recent-search-item:hover i {
    color: #667eea;
}

.no-recent-searches {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .search-result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .search-hero .blog-title {
        font-size: 2.5rem;
    }
    
    .search-hero .blog-subtitle {
        font-size: 1rem;
    }
    
    .result-title {
        font-size: 1.2rem;
    }
    
    .result-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .result-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-hero {
        padding: 60px 0 40px;
    }
    
    .search-hero .blog-title {
        font-size: 2rem;
    }
    
    .search-result-item {
        padding: 1rem;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .popular-searches {
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    animation: fadeInUp 0.6s ease-out;
}

.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-result-item:nth-child(4) { animation-delay: 0.4s; }
.search-result-item:nth-child(5) { animation-delay: 0.5s; }

