/* Wrapper اصلی */
.ss-search-wrapper {
  max-width: 1100px;
  margin: 60px auto;
  padding: 48px 36px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* فرم جستجو کپسولی */
.ss-search__form {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.ss-search__bar {
  direction: rtl;
  display: flex;
  align-items: center;
  width: min(780px, 92%);
  background: #f9fafc;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e6e8ef;
}

.ss-search__input {
  flex: 1;
  padding: 16px 22px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #222;
  text-align: right;
}
.ss-search__input::placeholder {
  color: #999;
  font-weight: 400;
}

.ss-search__btn {
  padding: 14px 26px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ss-search__btn:hover {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(118,75,162,0.25);
}
.ss-search__bar:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.18);
}

/* عنوان نتایج */
.ss-search__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
  color: #222;
  text-align: right;
}
.ss-search__query {
  display: inline-block;
  margin-right: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* گرید نتایج */
.ss-search__grid {
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* کارت نتیجه */
.ss-search__item {
  flex: 1 1 calc(33.333% - 24px);
  max-width: 360px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ss-search__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}
.ss-search__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f7f7fb;
  overflow: hidden;
}
.ss-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ss-search__item-title {
  font-size: 17px;
  font-weight: 800;
  color: #222;
  padding: 14px 18px 6px;
  text-align: right;
}
.ss-search__excerpt {
  font-size: 14px;
  color: #666;
  padding: 0 18px 16px;
  line-height: 1.7;
  text-align: right;
}

/* صفحه‌بندی */
.ss-search__pagination {
  margin-top: 34px;
  text-align: center;
  direction: rtl;
}
.ss-search__pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 18px;
  background: #eef0f6;
  border-radius: 999px;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
}
.ss-search__pagination .page-numbers:hover {
  background: #dfe3ef;
  transform: translateY(-2px);
}
.ss-search__pagination .page-numbers.current {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* بدون نتیجه */
.ss-search__noresult {
  text-align: center;
  font-size: 16px;
  color: #888;
  padding: 16px 22px;
  border-radius: 999px;
  background: #f5f6fb;
  display: inline-block;
}

/* رسپانسیو */
@media (max-width: 992px) {
  .ss-search__item { flex: 1 1 calc(50% - 24px); }
}
@media (max-width: 576px) {
  .ss-search__bar { width: 100%; }
  .ss-search__item { flex: 1 1 100%; max-width: 100%; }
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/soheilsadeghi-theme/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/themes/soheilsadeghi-theme/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت با !important روی همه عناصر */
body, html,
h1, h2, h3, h4, h5, h6,
p, a, li, span, div,
header, footer, nav, section,
input, textarea, button {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
