/* =========================================================
   Arduvaz — search.css
   Arama formu ve sonuçları. Sadece search.php sayfasında yüklenir.
   Sonuç listesi forumdisplay.css'teki konu satırı düzenini kullanır.
   ========================================================= */

/* Arama formu */
.search-page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 56px; }
.search-page form { display: contents; }
.search-page .form-checks-inline { padding-top: 10px; }
.search-page .form-inline .check { font-size: 13px; }
.search-page .form-inline > .form-num { width: 90px; }
.search-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.search-forumlist { padding: 16px 20px; }
.search-forumlist select { width: 100%; height: auto; padding: 6px; background-image: none; }
.search-forumlist option { padding: 4px 8px; border-radius: 4px; }
.search-prefix .select { width: 100%; height: auto; background-image: none; }
.search-prefix:not(:has(select)) { display: none; }
.search-page .post-actions { display: flex; justify-content: flex-end; }
.search-page .post-actions .btn { height: 42px; padding: 0 28px; }

/* Sonuçlar: puan sütununun yerinde forum sütunu */
.search-results .thread-cols,
.search-results .thread-row { grid-template-columns: 40px minmax(0, 1fr) 64px 90px 150px 200px 24px; }
.c-forum { grid-column: 5; min-width: 0; }
.thread-row .c-forum { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row .c-forum a { color: var(--slate-700); }
.thread-row .c-forum a:hover { color: var(--slate-900); }
.search-results .fd-toolbar:not(:has(*)) { display: none; }

/* Mesaj sonuçları: alıntı */
.search-posts .thread-main h3 a { white-space: normal; }
.search-excerpt { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.search-excerpt:empty { display: none; }

@media (max-width: 1100px) {
  .search-results .thread-cols,
  .search-results .thread-row { grid-template-columns: 40px minmax(0, 1fr) 64px 90px 130px 180px 24px; }
}
@media (max-width: 980px) {
  .search-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .search-results .thread-row { grid-template-columns: 36px minmax(0, 1fr) 20px; }
  .search-results .c-forum { display: none; }
  .search-page .post-actions .btn { width: 100%; }
}