/* Shared theme for all static SEO pages — matches the app's dark UI */
:root {
  --bg: #0f1a1c;
  --surface: #142428;
  --surface-2: #1a2d31;
  --surface-3: #223a3f;
  --line: #2a4147;
  --text: #eef4f5;
  --text-muted: #a7b8bb;
  --text-faint: #7c8f92;
  --accent: #45d7d1;
  --accent-strong: #6ee6df;
  --accent-fg: #0f1a1c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f9fa;
    --surface: #ffffff;
    --surface-2: #eef3f4;
    --surface-3: #dde5e6;
    --line: #d5dfe1;
    --text: #10262a;
    --text-muted: #4b6266;
    --text-faint: #6e858a;
    --accent: #0e8a86;
    --accent-strong: #086b68;
    --accent-fg: #ffffff;
    --shadow: 0 12px 40px rgba(20, 40, 44, 0.08);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Noto Sans Arabic", "Segoe UI Arabic", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Top nav */
.seo-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.seo-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.seo-logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: url('/logo.png') center/cover no-repeat;
  display: inline-flex; align-items: center; justify-content: center;
  /* Hide the fallback "B" text — the real logo image takes over */
  font-size: 0;
  color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.seo-nav-spacer { flex: 1; }
.seo-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.seo-nav a:hover { color: var(--text); }
.seo-nav .cta-mini {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.seo-nav .cta-mini:hover { background: var(--accent-strong); color: var(--accent-fg); }

/* Main content wrap */
.seo-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}
h3 {
  font-size: 18px;
  margin-top: 32px;
  color: var(--text);
}
p {
  color: var(--text-muted);
  margin: 12px 0;
  font-size: 16px;
}
p strong, li strong { color: var(--text); }
ul, ol { padding-left: 22px; color: var(--text-muted); }
li { margin: 8px 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

/* CTA button */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg) !important;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin: 28px 0;
  text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s;
}
.cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Callout / note box */
.note {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  border-radius: 10px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--text);
}

/* Related links block */
.related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Footer */
.seo-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
}
.seo-footer a { color: var(--text-muted); margin: 0 8px; }

/* RTL — Arabic pages */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .note { border-left: none; border-right: 4px solid var(--accent); }

/* Updated meta line */
.updated { color: var(--text-faint); font-size: 14px; margin-bottom: 24px; }

/* Table (comparison) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
}
th { background: var(--surface-2); color: var(--text); font-weight: 600; }
