/**
 * css/seo.css — استایل بلوک‌های محتوای سئو
 * ---------------------------------------------------------------------
 * این بلوک‌ها همان محتوای SSR داخل هیرو‌ی هر نما هستند (inc/views/*.php) که
 * پیش از boot جاوااسکریپت برای خزنده‌ها/کاربر بدون JS رندر می‌شوند. آخرین
 * لایه‌ی cascade است (بعد از auth.css) و فقط از توکن‌های رنگی/فونت موجود در
 * base.css استفاده می‌کند — رنگ یا فونت جدید تعریف نمی‌شود.
 *
 * بلوک‌ها:
 *   .seo-intro           — هیروی محتوای SSR هر صفحه (H1/H2/پاراگراف‌ها)
 *   .seo-links           — لیست پییل‌دار لینک‌های داخلی
 *   .seo-faq             — پرسش‌های متداول قابل مشاهده (FAQPage)
 *   .seo-regions         — شبکهٔ مناطق ۱/۲/۳ کنکور
 *   .seo-tracks          — شبکهٔ گروه‌های آزمایشی
 *   .seo-related         — لیست صفحات مرتبط
 *   .seo-glossary        — واژه‌نامهٔ کلمات کلیدی
 */

/* ============================ seo-intro ============================ */
.qb-site .seo-intro h2,
.hero.seo-intro h2 {
  margin: 28px 0 10px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.qb-site .seo-intro h3,
.hero.seo-intro h3 {
  margin: 20px 0 8px;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  color: var(--text, #eafff3);
}

.qb-site .seo-intro p,
.hero.seo-intro p:not(.sub) {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-dim, #9ecdb3);
  max-width: 720px;
}

.qb-site .seo-intro strong,
.hero.seo-intro strong {
  color: var(--emerald-glow, #14f195);
  font-weight: 700;
}

/* ============================ seo-links ============================ */
.seo-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 0;
  padding: 0;
}

.seo-links li {
  margin: 0;
}

.seo-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--hair, rgba(20, 241, 149, 0.14));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim, #9ecdb3);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.seo-links a:hover,
.seo-links a:focus-visible {
  border-color: var(--emerald-bright, #14f195);
  color: var(--emerald-glow, #14f195);
  background: rgba(20, 241, 149, 0.08);
}

/* ============================ seo-faq ============================ */
.seo-faq {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
}

.seo-faq h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-faq-item {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--hair, rgba(20, 241, 149, 0.1));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.seo-faq-item[open] {
  border-color: rgba(20, 241, 149, 0.3);
  background: rgba(20, 241, 149, 0.04);
}

.seo-faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #eafff3);
  list-style: none;
  padding: 2px 0;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::before {
  content: '؟';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: rgba(20, 241, 149, 0.14);
  color: var(--emerald-glow, #14f195);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.seo-faq-item p {
  margin: 10px 0 0 30px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim, #9ecdb3);
}

/* ============================ seo-regions ============================ */
.seo-regions {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
}

.seo-regions h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-regions-lead {
  margin: 0 0 18px !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  color: var(--text-dim, #9ecdb3) !important;
  max-width: 720px !important;
}

.seo-regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.seo-region-card {
  padding: 18px;
  border: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.seo-region-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-glow, #14f195);
}

.seo-region-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim, #9ecdb3);
}

.seo-region-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-bright, #14f195);
  text-decoration: none;
}

.seo-region-card a:hover {
  text-decoration: underline;
}

/* ============================ seo-tracks ============================ */
.seo-tracks {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
}

.seo-tracks h2 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-tracks-lead {
  margin: 0 0 18px !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  color: var(--text-dim, #9ecdb3) !important;
  max-width: 720px !important;
}

.seo-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.seo-track-card {
  padding: 18px;
  border: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.seo-track-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-glow, #14f195);
}

.seo-track-card p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim, #9ecdb3);
}

.seo-track-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-bright, #14f195);
  text-decoration: none;
}

.seo-track-card a:hover {
  text-decoration: underline;
}

/* ============================ seo-related ============================ */
.seo-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
}

.seo-related h2 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.seo-related-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.seo-related-list a:hover,
.seo-related-list a:focus-visible {
  border-color: var(--emerald-bright, #14f195);
  background: rgba(20, 241, 149, 0.06);
  outline: none;
}

.seo-related-list strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-related-list span {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim, #9ecdb3);
}

/* ============================ seo-glossary ============================ */
.seo-glossary {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hair, rgba(20, 241, 149, 0.14));
}

.seo-glossary h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  color: var(--text, #eafff3);
}

.seo-glossary > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim, #9ecdb3);
  max-width: 720px;
}

.seo-glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
}

.seo-glossary-item {
  padding: 14px 16px;
  border: 1px solid var(--hair, rgba(20, 241, 149, 0.1));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.seo-glossary-item dt {
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald-glow, #14f195);
  margin-bottom: 6px;
}

.seo-glossary-item dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim, #9ecdb3);
}

/* ============================ responsive ============================ */
@media (max-width: 640px) {
  .seo-links {
    gap: 8px 10px;
  }
  .seo-links a {
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .seo-regions-grid,
  .seo-tracks-grid,
  .seo-related-list,
  .seo-glossary-list {
    grid-template-columns: 1fr;
  }
  .seo-faq-item p {
    margin-left: 0;
    padding-top: 8px;
  }
  .seo-faq-item summary::before {
    margin-inline-end: 8px;
  }
}
