/**
 * صفحه رسانه‌ها — الهام از هاب کانال‌های مرجع نرخ (شبکه اجتماعی + وب + API)
 */
body.media-page {
  background: #eef2f7;
}

.media-page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.media-page-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.media-page-crumb a {
  color: #1b4fd8;
  text-decoration: none;
}

.media-page-hero {
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 8px 28px -22px rgba(15, 23, 42, 0.2);
}

.media-page-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.media-page-hero__lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.85;
  color: #475569;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.media-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 6px 22px -18px rgba(15, 23, 42, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.media-card:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 12px 32px -18px rgba(29, 78, 216, 0.22);
  transform: translateY(-2px);
}

.media-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.08));
  color: #1e3a8a;
}

.media-card__icon svg {
  width: 28px;
  height: 28px;
}

.media-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 850;
  color: #0f172a;
}

.media-card__subtitle {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.media-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 240px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.media-card__cta:hover {
  background: #1e293b;
}

.media-card__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.media-card__more {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.media-card__more:hover {
  color: #1d4ed8;
}

.media-trust {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  margin-bottom: 1.25rem;
}

.media-trust p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #475569;
}

.media-trust strong {
  color: #0f172a;
}

.media-api {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 138, 0.2);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  margin-bottom: 1rem;
}

.media-api__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 850;
  color: #0f172a;
}

.media-api__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #64748b;
}

.media-api pre {
  margin: 0 0 0.75rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.media-api__note {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
}

.media-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.media-links-row a {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.25);
  background: #fff;
}

.media-links-row a:hover {
  background: #eff6ff;
}

:root[data-fx-shell-theme='dark'] body.media-page {
  background: #0f172a;
}

:root[data-fx-shell-theme='dark'] body.media-page .media-page-hero,
:root[data-fx-shell-theme='dark'] body.media-page .media-card,
:root[data-fx-shell-theme='dark'] body.media-page .media-trust,
:root[data-fx-shell-theme='dark'] body.media-page .media-api {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(71, 85, 105, 0.55);
}

:root[data-fx-shell-theme='dark'] body.media-page .media-page-hero__title {
  color: #93c5fd;
}

:root[data-fx-shell-theme='dark'] body.media-page .media-card__title {
  color: #f1f5f9;
}
