/* دفتر الكلمات · Learn With Me — صفحة الدعم والخصوصية */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-hi: #f0f1f7;
  --border: #e3e5ef;
  --accent: #6366f1;
  --accent-soft: #eef0fe;
  --text-hi: #14162b;
  --text-mid: #4a4d68;
  --text-low: #7a7d95;
  --ok: #16a34a;
  --shadow: 0 8px 28px rgba(20, 22, 43, 0.07);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1017;
    --surface: #181a24;
    --surface-hi: #20222e;
    --border: #2a2d3a;
    --accent: #8b8df5;
    --accent-soft: #23253a;
    --text-hi: #f3f4fa;
    --text-mid: #b9bcd0;
    --text-low: #8b8fa6;
    --ok: #4ade80;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-hi);
  font-family: "Cairo", "SF Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  direction: rtl;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ===== الترويسة ===== */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #4f46e5 100%);
  color: #fff;
  padding: 56px 20px 64px;
  text-align: center;
}

.hero img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 20px 0 6px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  font-size: 1.05rem;
  opacity: 0.94;
}

.hero .en {
  direction: ltr;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 10px;
}

/* ===== شرائط التنقّل ===== */
nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

nav.links a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 160ms ease;
}

nav.links a:hover { background: rgba(255, 255, 255, 0.3); }

/* ===== الأقسام ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 6px;
  margin-top: -34px;
}

section { margin-top: 34px; }

h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 12px;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--accent);
  line-height: 1.5;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 6px;
  color: var(--text-hi);
}

p, li { color: var(--text-mid); }

ul { padding-inline-start: 22px; }

li { margin-bottom: 6px; }

a { color: var(--accent); }

strong { color: var(--text-hi); }

code {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
  direction: ltr;
  display: inline-block;
}

.muted { color: var(--text-low); font-size: 0.92rem; }

/* ===== الأسئلة الشائعة ===== */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 10px;
}

details[open] { background: var(--surface-hi); }

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  color: var(--text-hi);
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "＋";
  color: var(--accent);
  font-weight: 800;
  margin-inline-end: 8px;
}

details[open] summary::before { content: "－"; }

details p { margin: 0 0 14px; }

/* ===== شبكة اللقطات ===== */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== بطاقة التواصل ===== */
.contact {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
}

.contact a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  margin: 8px 6px 0;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}

.contact a.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

/* ===== جدول ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

th, td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--text-hi); font-weight: 700; background: var(--surface-hi); }

td { color: var(--text-mid); }

table { display: block; overflow-x: auto; }

/* ===== التذييل ===== */
footer {
  text-align: center;
  color: var(--text-low);
  font-size: 0.9rem;
  padding: 40px 20px 56px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

footer a { color: var(--text-low); }
