/* ====== Search Results - Start ====== */
.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.search-results-header {
    margin-bottom: 2rem;
}

.search-header-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 2rem;
    text-align: center;
}

.search-results-title {
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.search-results-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.search-query-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Search Sections */
.search-section {
    margin-bottom: 2rem;
}

.search-section-header {
    margin-bottom: 1rem;
}

.search-section-title {
    color: #374151;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Result Cards */
.search-result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.search-result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-breadcrumb {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-main {
    color: #374151;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-result-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
}

.search-result-preview {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.search-result-phrase {
    color: #374151;
    font-weight: 600;
    font-size: 1.2rem;
    font-style: italic;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-result-actions {
    flex-shrink: 0;
}

/* Buttons */
.search-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    min-width: 100px;
}

.search-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Empty States */
.search-empty-state,
.search-welcome-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-empty-icon,
.search-welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.search-empty-title,
.search-welcome-title {
    color: #4b5563;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.search-empty-text,
.search-welcome-text {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.search-empty-hint {
    color: #9ca3af;
    font-size: 0.95rem;
    font-style: italic;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .search-header-content,
[data-bs-theme="dark"] .search-result-card,
[data-bs-theme="dark"] .search-empty-state,
[data-bs-theme="dark"] .search-welcome-state {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .search-results-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .search-results-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .search-query-highlight {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .search-section-title {
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .search-result-breadcrumb {
    color: #718096;
}

[data-bs-theme="dark"] .search-result-main {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .search-result-description,
[data-bs-theme="dark"] .search-result-preview {
    color: #a0aec0;
}

[data-bs-theme="dark"] .search-result-phrase {
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .search-empty-title,
[data-bs-theme="dark"] .search-welcome-title {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .search-empty-text,
[data-bs-theme="dark"] .search-welcome-text {
    color: #a0aec0;
}

[data-bs-theme="dark"] .search-empty-hint {
    color: #718096;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-results-container {
        padding: 1rem;
    }

    .search-header-content {
        padding: 1.5rem;
    }

    .search-results-title {
        font-size: 2rem;
    }

    .search-result-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-result-preview {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .search-btn {
        width: 100%;
    }

    .search-empty-state,
    .search-welcome-state {
        padding: 3rem 1.5rem;
    }

    .search-empty-icon,
    .search-welcome-icon {
        font-size: 3rem;
    }
}
/* ====== Search Results - End ====== */