/**
 * web/public/seo/seo.css
 * Lightweight, high-end standalone stylesheet for RealRate SEO static pages.
 * Zero dependency on main app bundle.
 */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/seo/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151b26;
  --bg-glass: rgba(14, 18, 26, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(234, 179, 8, 0.4);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --blue: #0284c7;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --rose: #f43f5e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1080px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--cyan);
}

/* ── Container ─────────────────────────────────────────── */
.seo-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ────────────────────────────────────────────── */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.seo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.seo-brand svg {
  color: var(--gold);
}

.seo-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.seo-nav a:hover,
.seo-nav a.active {
  color: var(--text-primary);
}

.seo-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.seo-btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.seo-btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.seo-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.seo-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.seo-btn-demo {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #07090e;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.seo-btn-demo:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #07090e;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ── Main Content ───────────────────────────────────────── */
.seo-main {
  flex: 1;
  padding: 2rem 0 4rem;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.seo-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
  font-size: 1rem;
}

.seo-breadcrumb a {
  color: var(--text-secondary);
}

.seo-breadcrumb a:hover {
  color: var(--text-primary);
}

.seo-breadcrumb [aria-current="page"] {
  color: var(--cyan);
  font-weight: 500;
}

/* ── Hero / Top Section ────────────────────────────────── */
.seo-hero {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.seo-hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.seo-hero-intro {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 900px;
}

/* A line of small print under the hero's buttons (the Android page) */
.seo-hero .seo-cta-buttons {
  margin-top: 1.5rem;
}

.seo-hero-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
}

/* ── Article Sections ───────────────────────────────────── */
.seo-article {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.seo-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.seo-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.seo-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.seo-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2rem;
  background: linear-gradient(to bottom, var(--gold), var(--cyan));
  border-radius: 2px;
}

.seo-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.85;
}

.seo-section p:last-child {
  margin-bottom: 0;
}

.seo-bullets {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.seo-bullets li {
  position: relative;
  padding-right: 1.4rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.seo-bullets li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ── Steps: How It Works ───────────────────────────────── */
.seo-steps-block {
  margin: 3rem 0;
}

.seo-steps-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.seo-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.seo-step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.seo-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.seo-step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.seo-step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── FAQ Block ─────────────────────────────────────────── */
.seo-faq-block {
  margin: 3rem 0;
}

.seo-faq-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.seo-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seo-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
}

.seo-faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.seo-faq-a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Related Features ───────────────────────────────────── */
.seo-related-block {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.seo-related-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.seo-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.seo-related-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: var(--bg-surface-elevated);
}

.seo-related-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.seo-related-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.seo-related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
}

/* ── Hub Grid (for /features page) ──────────────────────── */
.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.seo-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.22s ease;
}

.seo-hub-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  background: var(--bg-surface-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.seo-hub-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.seo-hub-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.seo-hub-card .seo-hub-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

/* ── CTA Banner ────────────────────────────────────────── */
.seo-cta {
  margin: 3.5rem 0 1rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%), var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.seo-cta h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.seo-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.8;
}

.seo-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.seo-cta-buttons .seo-btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.98rem;
}

/* ── 404 Page ──────────────────────────────────────────── */
.seo-404-box {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.seo-404-code {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 1rem;
}

.seo-404-box h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.seo-404-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────────── */
.seo-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.seo-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.seo-footer-about h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-footer-about p {
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seo-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.seo-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seo-footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.seo-footer-links a:hover {
  color: var(--cyan);
}

.seo-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Responsive Mobile Adjustments (>= 360px) ──────────── */
@media (max-width: 768px) {
  .seo-hero h1 {
    font-size: 1.6rem;
  }

  .seo-section {
    padding: 1.35rem;
  }

  .seo-section h2 {
    font-size: 1.25rem;
  }

  .seo-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .seo-nav {
    display: none;
  }

  .seo-header-inner {
    height: 60px;
    gap: 0.5rem;
  }
}

/* Phones: brand + two buttons must fit in 360px */
@media (max-width: 520px) {
  .seo-brand-tag,
  .seo-header-actions .seo-btn-ghost {
    display: none;
  }

  .seo-brand {
    font-size: 1.05rem;
  }

  .seo-header-actions {
    gap: 0.4rem;
  }

  .seo-header-actions .seo-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

/* Long Persian words and URLs never widen the page */
.seo-main {
  overflow-wrap: anywhere;
}
