/* Ported from src/pages/recherche.astro + ArticleCard.astro */
.search-page-content { padding: var(--space-12) 0 var(--space-20); background: var(--color-bg); min-height: 50vh; }
.results-container { display: flex; flex-direction: column; gap: var(--space-16); }
.results-section { display: flex; flex-direction: column; gap: var(--space-6); }
.results-section-title { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--color-text); border-bottom: 2px solid var(--color-primary); padding-bottom: var(--space-2); width: fit-content; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.stores-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

/* ArticleCard */
.article-card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: box-shadow .2s, border-color .2s; height: 100%; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.article-card-link { display: flex; flex-direction: column; height: 100%; }
.article-img { position: relative; aspect-ratio: 16/9; background: var(--color-bg); overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-type { position: absolute; top: var(--space-3); left: var(--space-3); color: #fff; font-size: var(--text-xs); font-weight: var(--fw-bold); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); }
.article-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.article-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.article-titre { font-size: var(--text-base); font-weight: var(--fw-bold); line-height: 1.3; }
.article-extrait { font-size: var(--text-sm); color: var(--color-text-body); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-lire { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-primary); margin-top: var(--space-2); }

/* Empty state */
.empty-search-state { display: flex; justify-content: center; align-items: center; padding: var(--space-8) 0; }
.empty-search-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: var(--space-12) var(--space-8); max-width: 600px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.empty-icon { color: var(--color-text-muted); margin-bottom: var(--space-2); }
.empty-search-card h2 { font-size: var(--text-2xl); font-weight: var(--fw-bold); color: var(--color-text); }
.empty-search-card p { color: var(--color-text-body); font-size: var(--text-sm); line-height: 1.6; max-width: 450px; }
.inline-search-form { display: flex; gap: var(--space-3); width: 100%; max-width: 500px; margin-top: var(--space-2); }
.inline-search-form input { flex: 1; height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--color-border); font-size: var(--text-sm); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.inline-search-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(224, 0, 26, 0.1); }
.inline-search-form button { height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full); font-weight: var(--fw-bold); }
.suggestions-links { margin-top: var(--space-6); border-top: 1px solid var(--color-border); padding-top: var(--space-6); width: 100%; text-align: left; }
.suggestions-links h3 { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--color-text); margin-bottom: var(--space-3); }
.suggestions-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.suggestions-links a { color: var(--color-accent-blue); font-size: var(--text-sm); font-weight: var(--fw-medium); transition: color 0.15s; }
.suggestions-links a:hover { color: var(--color-primary); text-decoration: underline; }

@media (max-width: 1023px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .articles-grid { grid-template-columns: 1fr; }
  .stores-grid { grid-template-columns: 1fr; }
  .empty-search-card { padding: var(--space-8) var(--space-4); }
  .inline-search-form { flex-direction: column; gap: var(--space-2); }
  .inline-search-form button { width: 100%; }
}
