/**
 * Search Results Page - Custom Styles Only
 * Note: Uses utility classes from utility.css wherever possible
 */

/* Search Results Page Container */
.search-results-page {
    min-height: 60vh;
    background-color: #F9FAFB;
}

/* Header Section */
.search-results__header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Search Form - Custom Layout */
.search-form-large {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.search-form-large__input-wrapper {
    flex: 1;
    min-width: 0;
}

.search-form-large__select {
    width: 250px;
    flex-shrink: 0;
}

.search-form-large__submit {
    padding: 14px 32px;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-form-large .input--lg {
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    transition: border-color 0.2s;
    width: 100%;
}

.search-form-large .input--lg:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form-large .custom-select__trigger {
    padding: 14px 16px;
    height: 100%;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Results Grid Layout */
.search-results__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Search Result Card - Google-inspired Design */
.search-result-card {
    background: transparent;
    padding: 0;
    transition: all 0.2s ease;
}

.search-result-card__content {
    width: 100%;
    max-width: 700px;
}

/* Result Title Link */
.search-result-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.search-result-card__link {
    color: #1a0dab;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-result-card__link:hover {
    text-decoration: underline;
    color: #1a0dab;
}

/* Highlighted search terms in results */
.search-result-card__link em,
.search-result-card__meta em {
    font-style: normal;
    font-weight: 700;
    color: var(--color-dark);
}

/* Custom Badge Sizing */
.badge--xs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* Empty State - Custom Styles Only */
.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state__suggestions {
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination - Handled by _pagination.html.twig component */
/* If custom pagination styles are needed, they would go here */

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-results__header {
        padding: 1.5rem 1rem;
    }

    .search-form-large {
        flex-direction: column;
    }

    .search-form-large__select {
        width: 100%;
    }

    .search-form-large__submit {
        width: 100%;
    }

    .search-result-card__content {
        max-width: 100%;
    }

    .empty-state__suggestions {
        max-width: 100%;
    }
}