/*
  SEARCH SAYFASI OZEL CSS
  Arama sonuclari, arama formu, akis reklamlari ve sayfalama.
*/
.page-search .listing-hero--plain {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 18px;
  text-align: center;
}

.page-search .search-results-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 620px;
  margin: 12px auto 8px;
}

.page-search .search-results-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.page-search .search-results-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.page-search .posts { padding: 5px; }
.page-search .post-list { display: block; }
.page-search .post-list--grid3,
.page-search .post-list--grid4 { display: grid; gap: 16px; padding: 5px; box-sizing: border-box; margin-bottom: 10px; }
.page-search .post-list--grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-search .post-list--grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-search .post-list--grid3 .post-item,
.page-search .post-list--grid4 .post-item { display: block; border: 0 solid var(--line-soft); border-radius: 5px; padding: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.95) 100%); align-content: start; }
.page-search .post-list--grid3 .post-item__thumb,
.page-search .post-list--grid4 .post-item__thumb { height: auto; min-height: 190px; margin-bottom: 10px; overflow: hidden; border-radius: 3px; border: 0; }
.page-search .post-list--grid3 .post-item__body h3,
.page-search .post-list--grid4 .post-item__body h3 { display: flex; align-items: center; justify-content: center; min-height: 2.5em; font-size: 1.01rem; line-height: 1.25; text-align: center; margin-bottom: 6px; }
.page-search .post-list--grid3 .post-item__body p,
.page-search .post-list--grid4 .post-item__body p { font-size: 0.75rem; text-align: center; line-height: 1.5; }
.page-search .post-list--grid3 .post-item .meta,
.page-search .post-list--grid4 .post-item .meta { font-size: 0.82rem; margin-bottom: 6px; text-align: center; display: flex; align-items: center; justify-content: center; width: 100%; height: 3.15em; line-height: 1.35; padding: 0 4px; }

.page-search .post-item--clickable { cursor: pointer; }
.page-search .post-list:not(.post-list--grid3):not(.post-list--grid4) .post-item { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.page-search .post-list:not(.post-list--grid3):not(.post-list--grid4) .post-item__thumb { width: 270px; height: auto; min-height: 220px; }
.page-search .post-item { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 12px; padding: 12px; align-items: center; transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
.page-search .post-item:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 252, 254, 0.96) 100%); box-shadow: 0 10px 24px rgba(23, 52, 71, 0.05); transform: translateY(-2px); }
.page-search .post-item__thumb { min-height: 98px; padding: 0; overflow: hidden; background: linear-gradient(135deg, #dbe7ee 0%, #ffffff 100%); border: 1px solid var(--line); }
.page-search .post-item__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: saturate(0.7) contrast(1.04) brightness(0.95); border-radius: 1px; background: #eef4f8; }
.page-search .post-item__body h3 { display: flex; align-items: center; justify-content: center; min-height: 2.5em; font-size: 1.2rem; line-height: 1.25; text-align: center; margin-bottom: 8px; }

.page-search .content-ad,
.page-search .content-slot { box-sizing: border-box; grid-column: 1 / -1; width: calc(100% - 16px); margin: 8px; padding: 12px; border: 0 dashed var(--line-strong); border-radius: 5px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.92) 100%); overflow: visible; }
.page-search .post-list--grid3 .content-ad,
.page-search .post-list--grid4 .content-ad,
.page-search .post-list--mobile-2 .content-ad--feed { grid-column: 1 / -1; }
.page-search .content-ad iframe,
.page-search .content-ad ins,
.page-search .content-ad .adsbygoogle { display: block !important; width: 100% !important; max-width: 100%; min-height: 90px; }

.page-search .pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 8px -5px 0; padding: 18px; border-top: 0 solid var(--line); background: radial-gradient(circle at top left, rgba(38, 87, 128, 0.08), transparent 36%), linear-gradient(180deg, #fbfdff 0%, #f3f8fb 100%); }
.page-search .pagination__summary { color: var(--muted); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.page-search .pagination__track { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.page-search .pagination__link,
.page-search .pagination__ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; }
.page-search .pagination__link { border: 1px solid rgba(38, 87, 128, 0.16); background: rgba(255, 255, 255, 0.9); color: var(--text); box-shadow: 0 8px 18px rgba(23, 52, 71, 0.06); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease; }
.page-search .pagination__link:hover { transform: translateY(-1px); border-color: rgba(38, 87, 128, 0.34); box-shadow: 0 12px 22px rgba(23, 52, 71, 0.1); }
.page-search .pagination__link--active { border-color: var(--accent); background: linear-gradient(135deg, var(--accent) 0%, #d33d44 100%); color: #fff; box-shadow: 0 14px 28px rgba(197, 28, 34, 0.22); }
.page-search .pagination__link--nav { padding-inline: 20px; }
.page-search .pagination__ellipsis { color: var(--muted); }

@media (max-width: 980px) {
  .page-search .post-list--grid3,
  .page-search .post-list--grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-search .pagination { flex-direction: column; align-items: stretch; }
  .page-search .pagination__summary { text-align: center; }
  .page-search .pagination__track { justify-content: center; }
}

@media (max-width: 760px) {
  .page-search .listing-hero--plain { padding: 14px; }
  .page-search .search-results-form { grid-template-columns: 1fr; }
  .page-search .post-list:not(.post-list--grid3):not(.post-list--grid4) .post-item { grid-template-columns: 1fr; }
  .page-search .post-list:not(.post-list--grid3):not(.post-list--grid4) .post-item__thumb { width: 100%; height: auto; min-height: 170px; }
  .page-search .post-item__body h3 { min-height: 3.75em; text-align: center; }
  .page-search .post-item .meta { display: flex; justify-content: center; width: 100%; text-align: center; }
  .page-search .post-list--mobile-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 5px; }
  .page-search .post-list--mobile-2 .post-item { display: block; border: 0 solid var(--line-soft); border-radius: 5px; padding: 2px; }
  .page-search .post-list--mobile-2 .post-item__thumb { min-height: 110px; margin-bottom: 8px; }
  .page-search .post-list--mobile-2 .post-item__body h3 { min-height: 3.75em; font-size: 0.98rem; margin-bottom: 6px; }
  .page-search .post-list--mobile-2 .post-item__body p,
  .page-search .post-list--mobile-2 .post-item .meta { font-size: 0.70rem; line-height: 1.45; }
}
