/* ============================================================
   DITIB Filderstadt Ulu Camii — Stylesheet
   Marka renkleri broşürden alınmıştır (lacivert + kırmızı)
   ============================================================ */

:root {
  --navy: #152238;
  --navy-deep: #0e1626;
  --navy-soft: #1e304c;
  --red: #d81f2a;
  --red-dark: #b3141e;
  --gold: #c9a24b;
  --cream: #f8f4ea;
  --paper: #ffffff;
  --bg: #f3f5f8;
  --ink: #1c2431;
  --muted: #5c6673;
  --line: #e3e7ee;
  --shadow: 0 10px 30px rgba(21, 34, 56, .10);
  --shadow-lg: 0 24px 60px rgba(21, 34, 56, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;            /* sticky header için ankraj boşluğu */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;   /* mobil-app hissi: mavi tap parıltısı yok */
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* Dokunmatik hedefler mobil-app gibi seçilemez/momentumlu */
.btn, .copy-btn, .lang-switch button, .nav-toggle, .gallery-item {
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--paper); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(216,31,42,.32); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,22,38,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  overflow: hidden; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: .98rem; letter-spacing: .01em; }
.brand-text span { font-size: .72rem; color: rgba(255,255,255,.6); }

/* Resmi DITIB logosu — markanın ana logosu */
.brand-logo-img { height: 44px; width: auto; flex: none; }
.site-footer .brand-logo-img { height: 48px; }
/* DITIB işareti (links sayfası vb.) */
.ditib-mark { height: 34px; width: auto; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links .btn { padding: 9px 20px; font-size: .9rem; }

/* language switcher */
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; }
.lang-switch button {
  border: none; background: transparent; color: rgba(255,255,255,.7);
  font-family: inherit; font-weight: 700; font-size: .8rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: .15s;
}
.lang-switch button.active { background: #fff; color: var(--navy); }
.lang-switch button:hover:not(.active) { color: #fff; }

/* Mobil header dil seçici — masaüstünde gizli */
.lang-switch-mobile { display: none; }
.lang-switch-mobile button { padding: 5px 10px; font-size: .74rem; }

.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,22,38,.72), rgba(14,22,38,.86)), var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(14,22,38,.55) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,31,42,.9); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800; letter-spacing: -.02em; max-width: 15ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.85); max-width: 54ch; margin: 18px 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Info / Goal cards ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start;
}
.about-text p { color: var(--muted); margin: 0 0 18px; }
.about-text p strong { color: var(--ink); }

.goal-card {
  background: var(--navy);
  color: #fff; border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.goal-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.35), transparent 70%);
}
.goal-card .goal-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.goal-card .goal-amount { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin: 6px 0 4px; }
.goal-card .goal-sub { color: rgba(255,255,255,.72); font-size: .95rem; }
.goal-card .goal-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; color: rgba(255,255,255,.8); }
.goal-card .btn { margin-top: 22px; width: 100%; justify-content: center; }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.feature-list .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(216,31,42,.12); color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--navy-soft);
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy));
  color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600; gap: 6px; padding: 10px;
}
.gallery-item .ph svg { width: 34px; height: 34px; opacity: .6; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,12,20,.92); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem;
  display: grid; place-items: center; transition: .15s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Donation ---------- */
.donate-section { background: var(--navy); color: #fff; }
.donate-section .section-title { color: #fff; }
.donate-section .section-lead { color: rgba(255,255,255,.72); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.donate-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
}
.donate-card h3 {
  font-size: 1.15rem; color: var(--navy); display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid rgba(21,34,56,.08);
}
.donate-card h3 .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--red); color:#fff; display:grid; place-items:center; flex:none; }
.donate-card h3 .ic svg { width: 20px; height: 20px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.copy-row .val { font-weight: 700; color: var(--navy); font-size: 1.02rem; word-break: break-all; letter-spacing: .02em; }
.copy-btn {
  flex: none; border: none; cursor: pointer; background: var(--navy); color: #fff;
  font-family: inherit; font-weight: 700; font-size: .78rem;
  padding: 8px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.copy-btn:hover { background: var(--navy-soft); }
.copy-btn.done { background: #1f9d55; }
.copy-btn svg { width: 15px; height: 15px; }

.paypal-note {
  background: rgba(216,31,42,.08); border: 1px solid rgba(216,31,42,.2);
  color: var(--red-dark); font-weight: 600; font-size: .9rem;
  border-radius: 10px; padding: 12px 14px; margin-top: 4px;
}

/* contacts */
.contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contacts li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 4px; border-bottom: 1px dashed rgba(21,34,56,.12); color: var(--ink);
}
.contacts li:last-child a { border-bottom: none; }
.contacts li a:hover { text-decoration: none; color: var(--red); }
.contacts .name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.contacts .name .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(21,34,56,.08); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.contacts .phone { font-weight: 700; color: var(--navy); white-space: nowrap; }
.contacts .role { font-size: .74rem; color: var(--muted); font-weight: 600; }

/* ---------- Legal (Impressum/Datenschutz) ---------- */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.legal-block h3 { color: var(--navy); font-size: 1.25rem; }
.legal-block p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.legal-block strong { color: var(--ink); }
.legal-block address { font-style: normal; color: var(--muted); line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 44px 0 30px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 22px 24px; border: 1px solid var(--line);
  transform: translateY(160%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.cookie p { margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; font-size: .9rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; z-index: 400; box-shadow: var(--shadow-lg);
  transition: transform .3s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Links page (donation only) ---------- */
.links-page { min-height: 100vh; background: var(--navy); color: #fff; padding: 30px 0 60px; }
.links-head { text-align: center; margin-bottom: 34px; }
.links-head .brand-logo { width: 64px; height: 64px; margin: 0 auto 16px; font-size: 1.5rem; border-radius: 16px; }
.links-logo { height: 64px; width: auto; display: block; margin: 0 auto 18px; }
.links-head h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); color: #fff; }
.links-head p { color: rgba(255,255,255,.72); max-width: 40ch; margin: 6px auto 0; }
.links-page .lang-switch { justify-content: center; width: max-content; margin: 20px auto 0; }
.links-page .donate-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.links-footer { text-align: center; margin-top: 30px; color: rgba(255,255,255,.5); font-size: .85rem; }
.links-footer a { color: rgba(255,255,255,.8); }

/* iOS güvenli alan: header ve hero çentik altına taşmasın */
@supports (padding: max(0px)) {
  .site-header .nav { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .donate-grid, .legal-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* Menü header'ın ALTINDAN aşağı doğru açılır/kapanır (akordeon) — logonun üstünden geçmez */
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--navy-deep);
    padding: 0 20px;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-links.open {
    max-height: calc(100vh - 72px);
    padding: 12px 20px 20px;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 30px rgba(0,0,0,.35);
  }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { justify-content: center; margin-top: 4px; }
  /* menü içindeki dil seçiciyi gizle, header ortasındakini göster */
  .nav-links .lang-switch { display: none; }
  .lang-switch-mobile { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 52px 0; }
  .donate-card { padding: 22px; }
  .copy-row { flex-direction: column; align-items: stretch; }
  .copy-btn { justify-content: center; }
}
/* Dar ekranlarda header'ı ferahlatmak için marka alt başlığını gizle, adı tek satırda tut */
@media (max-width: 460px) {
  .site-header .brand-text span { display: none; }
  .site-header .brand-text b { white-space: nowrap; }
  .lang-switch-mobile button { padding: 5px 9px; font-size: .72rem; }
}
