/* Shared layout for *-bible.html language landing pages.
   Each page sets :root { --font-script: 'Noto Sans X', ... } before this file. */

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

:root {
  --bg-deep: #0D0A1A;
  --bg-card: #1A1330;
  --gold: #F5C842;
  --gold-mid: #D4A843;
  --gold-dim: rgba(245, 200, 66, 0.12);
  --cream: #FFF8E7;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --font-ui: 'DM Sans', sans-serif;
  --font-script: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-script), var(--font-ui), system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

body::before {
  content: '';
  position: fixed;
  inset: -40% -30%;
  background:
    radial-gradient(ellipse 500px 500px at 20% 30%, rgba(138,92,246,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 80% 70%, rgba(245,200,66,0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 8px;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
}

header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 10, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.brand {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Language dropdown (all pages) */
.nav-lang-details {
  position: relative;
  font-family: var(--font-ui);
}

.nav-lang-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-lang-details summary::-webkit-details-marker { display: none; }

.nav-lang-details summary::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gold-mid);
  margin-left: 4px;
}

.nav-lang-details[open] summary {
  background: rgba(255,255,255,0.08);
}

.nav-lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: min(320px, 92vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 50;
}

.nav-lang-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.nav-lang-panel a .sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-lang-panel a:hover,
.nav-lang-panel a:focus-visible {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}

.nav-lang-panel a[aria-current="page"] {
  background: var(--gold-dim);
  color: var(--gold);
}

@media (max-width: 520px) {
  .nav-lang-panel {
    left: 0;
    right: auto;
    min-width: 100%;
  }
}

[dir="rtl"] .nav-lang-panel {
  left: 0;
  right: auto;
}

main { position: relative; z-index: 1; padding: 44px 24px 64px; }
.inner { max-width: 640px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 16px;
}

.lead-en {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.trust-note {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.bullets {
  list-style: none;
  margin-bottom: 36px;
}

.bullets li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-mid);
}

[dir="rtl"] .bullets li {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .bullets li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .trust-note,
[dir="rtl"] .lead-en {
  text-align: right;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold), var(--gold-mid));
  color: var(--bg-deep);
  margin-bottom: 28px;
}

.cta:hover { filter: brightness(1.05); }
.cta svg { width: 22px; height: 22px; fill: currentColor; }

.cta-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
  cursor: not-allowed;
}

.play-updates-link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 28px;
  display: inline-block;
}

.play-updates-link:hover {
  color: var(--cream);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
}

.card h2 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card a:hover {
  color: var(--cream);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

.footer-links {
  font-family: var(--font-ui);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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