/* Kur'an web sitesi — uygulamanın zümrüt/altın temasıyla aynı dil. */

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Amiri Bismillah";
  src: url("/static/fonts/amiri-bismillah.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #04150f;
  --bg-top: #0b3226;
  --surface: rgba(12, 44, 34, 0.72);
  --surface-solid: #0c2c22;
  --surface-high: #14402f;
  --line: rgba(212, 175, 55, 0.18);
  --line-soft: rgba(171, 195, 185, 0.14);
  --text: #f3efe2;
  --text-soft: #c9d8d0;
  --muted: #abc3b9;
  --gold: #d4af37;
  --gold-light: #f1d98a;
  --emerald: #1b7f5f;
  --emerald-light: #3db58a;
  --pattern-opacity: 0.07;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf6ec;
    --bg-top: #efe6cf;
    --surface: rgba(255, 253, 247, 0.86);
    --surface-solid: #fffdf7;
    --surface-high: #f3ecda;
    --line: rgba(160, 124, 22, 0.22);
    --line-soft: rgba(11, 50, 38, 0.1);
    --text: #10261e;
    --text-soft: #2c4a3e;
    --muted: #5b7468;
    --gold: #9a7414;
    --gold-light: #7d5d0c;
    --emerald: #15684e;
    --emerald-light: #15684e;
    --pattern-opacity: 0.06;
    --shadow: 0 24px 60px -34px rgba(16, 38, 30, 0.35);
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-top), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sekiz köşeli yıldız deseni */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1.2'%3E%3Cpath d='M48 14l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; }
.narrow { max-width: 760px; }

/* Üst çubuk */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font: 700 19px/1 "Playfair Display", Georgia, serif; letter-spacing: 0.2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--surface-high); }
.nav a[aria-current="page"] { color: var(--gold-light); }

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-soft);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang[open] summary { color: var(--text); background: var(--surface-high); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--text-soft); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--surface-high); color: var(--text); }
.lang li a[aria-current="true"] { color: var(--gold-light); }

.menu-btn { display: none; }

/* Ana sayfa */
.hero { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.bismillah {
  font-family: "Amiri Bismillah", "Amiri", "Geeza Pro", serif;
  font-size: 30px;
  line-height: 1.6;
  color: var(--gold);
  margin: 0 0 22px;
  direction: rtl;
}
.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -24px rgba(212, 175, 55, 0.35);
}
.hero h1 {
  font: 700 clamp(36px, 6vw, 60px)/1.1 "Playfair Display", Georgia, serif;
  margin: 28px auto 14px;
  max-width: 820px;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-soft); max-width: 640px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 15px;
}
.badge svg { width: 18px; height: 18px; color: var(--gold); }
.badge.primary { background: linear-gradient(135deg, var(--emerald), #0f5a43); color: #fff; border-color: transparent; }
.badge.primary svg { color: var(--gold-light); }

.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.eyebrow { font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section h2 { font: 700 clamp(28px, 4vw, 38px)/1.2 "Playfair Display", Georgia, serif; margin: 8px 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font: 600 21px/1.3 "Playfair Display", Georgia, serif; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--surface-high), transparent);
  border: 1px solid var(--line);
  color: var(--gold);
}
.ico svg { width: 24px; height: 24px; }

.plus {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  border-radius: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(212, 175, 55, 0.14), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.plus h2 { margin-top: 6px; }
.plus p { color: var(--text-soft); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 16px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise div { text-align: center; padding: 8px 12px; }
.promise strong { display: block; font: 600 19px/1.3 "Playfair Display", Georgia, serif; margin: 12px 0 6px; }
.promise span { color: var(--muted); font-size: 15px; }
.promise .ico { margin: 0 auto; }

/* Belge sayfaları */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font: 700 clamp(32px, 5vw, 46px)/1.15 "Playfair Display", Georgia, serif; margin: 6px 0 10px; }
.page-head p { color: var(--muted); margin: 0; }
.doc { padding-top: 16px; padding-bottom: 64px; }
.doc h2 {
  font: 600 23px/1.3 "Playfair Display", Georgia, serif;
  margin: 40px 0 10px;
  padding-top: 8px;
  color: var(--text);
}
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--text); }
.updated {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

.contact {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 28px 0 8px;
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(212, 175, 55, 0.12), transparent 70%),
    var(--surface);
}
.contact h2 { margin: 0 0 4px; font: 600 22px/1.3 "Playfair Display", Georgia, serif; }
.contact p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 460px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1b1405;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: #1b1405; filter: brightness(1.05); }
.btn svg { width: 18px; height: 18px; }
.mail { font-size: 14px; color: var(--muted); margin-top: 8px; word-break: break-all; }

.faq { margin-top: 36px; }
.faq h2 { margin-bottom: 14px; }
.faq details {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: 16px;
  margin: 10px 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 16px; }
.faq details p, .faq details li { color: var(--text-soft); margin: 0 0 10px; }
.faq details ul { margin: 0 0 10px; padding-left: 20px; }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line-soft); padding: 32px 0 44px; margin-top: 24px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--text-soft); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--gold-light); }
.foot small { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plus { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { gap: 8px; min-height: 58px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 17px; }
  .nav { display: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .top.open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    padding: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .top.open .nav a { padding: 12px 14px; font-size: 16px; }
  .hero { padding-top: 48px; padding-bottom: 24px; }
  .hero-icon { width: 104px; height: 104px; border-radius: 24px; }
  .bismillah { font-size: 24px; }
  .grid, .promise { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .contact { padding: 22px; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
