/**
 * File: assets/css/frontend/search/results.css
 * Purpose: Styles the dedicated secure generic search-result header, list, result cards, pagination and empty state.
 * Scope: WordPress posts/pages search presentation only; product search interfaces belong to HyperDAF Engine.
 * Related PHP: search.php, src/Frontend/Search/SearchResultsRenderer.php
 * Related CSS: assets/css/foundation/tokens.css
 * Related JS: None
 * Package: HyperDAF Pro
 */

.hdf-search-results { width: min(calc(100% - (2 * var(--hdf-layout-gutter-desktop))), var(--hdf-layout-wide)); margin-inline: auto; padding-block: var(--hdf-spacing-9); }
.hdf-search-results__header { max-width: var(--hdf-layout-content); margin-bottom: var(--hdf-spacing-7); }
.hdf-search-results__eyebrow { margin: 0 0 var(--hdf-spacing-2); color: var(--hdf-color-primary-strong); font-size: var(--hdf-typography-size-xs); font-weight: var(--hdf-typography-weight-bold); letter-spacing: var(--hdf-typography-letter-spacing-wide); text-transform: uppercase; }
.hdf-search-results__header h1 { margin: 0; color: var(--hdf-color-text-primary); font-size: clamp(var(--hdf-typography-size-2xl), 4vw, var(--hdf-typography-size-4xl)); line-height: var(--hdf-typography-line-height-tight); }
.hdf-search-results__count { margin: var(--hdf-spacing-3) 0 0; color: var(--hdf-color-text-muted); }
.hdf-search-results__list { display: grid; gap: var(--hdf-component-search-result-gap); }
.hdf-search-result { padding: var(--hdf-spacing-6); border: var(--hdf-border-width-default) solid var(--hdf-color-border); border-radius: var(--hdf-radius-lg); background: var(--hdf-color-surface); box-shadow: none; }
.hdf-search-result__meta { display: flex; flex-wrap: wrap; gap: var(--hdf-spacing-3); margin-bottom: var(--hdf-spacing-2); color: var(--hdf-color-text-muted); font-size: var(--hdf-typography-size-xs); font-weight: var(--hdf-typography-weight-medium); }
.hdf-search-result__title { margin: 0; font-size: var(--hdf-typography-size-xl); line-height: var(--hdf-typography-line-height-tight); }
.hdf-search-result__title a { color: var(--hdf-color-text-primary); text-decoration: none; }
.hdf-search-result__title a:hover { color: var(--hdf-color-primary-strong); text-decoration: underline; text-decoration-color: var(--hdf-color-primary); text-underline-offset: .2em; }
.hdf-search-result__excerpt { max-width: var(--hdf-layout-content); margin: var(--hdf-spacing-3) 0 0; color: var(--hdf-color-text-secondary); }
.hdf-search-result__link { display: inline-flex; margin-top: var(--hdf-spacing-4); color: var(--hdf-color-primary-strong); font-weight: var(--hdf-typography-weight-semibold); text-decoration: underline; text-decoration-color: var(--hdf-color-primary); text-underline-offset: .2em; }
.hdf-search-empty { max-width: var(--hdf-component-search-empty-width); padding: var(--hdf-spacing-7); border: var(--hdf-border-width-default) solid var(--hdf-color-border); border-radius: var(--hdf-radius-lg); background: var(--hdf-color-surface-subtle); }
.hdf-search-empty h2 { margin-top: 0; }
.hdf-search-empty .search-form { display: flex; max-width: 34rem; margin-top: var(--hdf-spacing-5); }
.hdf-search-empty .search-field { min-width: 0; flex: 1 1 auto; min-height: 2.75rem; padding-inline: var(--hdf-spacing-3); border: var(--hdf-border-width-default) solid var(--hdf-color-border); border-radius: var(--hdf-radius-md) 0 0 var(--hdf-radius-md); }
.hdf-search-empty .search-submit { min-height: 2.75rem; padding-inline: var(--hdf-spacing-4); border: 0; border-radius: 0 var(--hdf-radius-md) var(--hdf-radius-md) 0; background: var(--hdf-color-primary-strong); color: var(--hdf-color-on-primary-strong); cursor: pointer; }

@media (max-width: 48rem) { .hdf-search-results { width: min(calc(100% - (2 * var(--hdf-layout-gutter-mobile))), var(--hdf-layout-wide)); padding-block: var(--hdf-spacing-7); } .hdf-search-result { padding: var(--hdf-spacing-5); } }


body.hdf-search-width-content .hdf-search-results { max-width: var(--hdf-page-content-width); }
body.hdf-search-width-wide .hdf-search-results { max-width: var(--hdf-page-wide-width); }
body.hdf-search-header-center .hdf-search-results__header { margin-inline: auto; text-align: center; }
body.hdf-search-card-flat .hdf-search-result { padding-inline: 0; border-color: transparent; border-radius: 0; background: transparent; box-shadow: none; }
body.hdf-search-card-elevated .hdf-search-result { box-shadow: none; }
body.hdf-search-spacing-compact .hdf-search-results__list { --hdf-component-search-result-gap: var(--hdf-spacing-3); }
body.hdf-search-spacing-relaxed .hdf-search-results__list { --hdf-component-search-result-gap: var(--hdf-spacing-7); }
body.hdf-search-empty-plain .hdf-search-empty { padding-inline: 0; border-color: transparent; background: transparent; }
.hdf-search-results .posts-navigation { margin-top: var(--hdf-spacing-8); }
.hdf-search-results .posts-navigation .nav-links { justify-content: space-between; }
