/* ==========================================================================
   DERNEK — Tasarım sistemi
   Palet: Derin Mor #3B1E78 · Gece Siyahı #0E0E14
   Yön: editöryel, kurumsal, sade. Serif başlık + sans gövde. İnce çizgiler.
   ========================================================================== */

:root {
  /* Çekirdek renkler */
  --purple: #3B1E78;
  --purple-deep: #2A1556;
  --purple-700: #4A2A90;
  --purple-soft: #7A60BE;     /* koyu zeminde mor metin */
  --purple-tint: #EDE8F6;     /* açık mor yüzey */
  --purple-line: #DDD4EE;

  --ink: #0E0E14;             /* gece siyahı */
  --ink-soft: #1A1A22;
  --ink-2: #26242F;

  --text: #1C1A24;
  --muted: #6A6577;
  --muted-soft: #908BA0;

  --paper: #FBFAFC;
  --surface: #F4F1F9;         /* hafif mor-gri yüzey */
  --white: #ffffff;
  --line: #E7E2F0;
  --line-soft: #EFEBF5;

  --accent: #C9A227;          /* çok az kullanılan sıcak vurgu */

  /* Tipografi */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 40px rgba(14, 14, 20, .10);
  --shadow-soft: 0 2px 14px rgba(14, 14, 20, .06);

  --container: 1120px;
  --container-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { color: var(--text); }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--container-narrow); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--ink { background: var(--ink); color: #E8E6EF; }
.section--surface { background: var(--surface); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

/* Kicker / eyebrow — küçük, harf aralıklı, mor */
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple);
  padding-bottom: 8px; position: relative;
}
.eyebrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--purple); }
/* Koyu zeminlerde (hero, page-hero, koyu bölümler, cta) okunur açık lila */
.hero .eyebrow, .page-hero .eyebrow, .section--ink .eyebrow, .cta-strip .eyebrow { color: #C9BCEC; }
.hero .eyebrow::after, .page-hero .eyebrow::after, .section--ink .eyebrow::after, .cta-strip .eyebrow::after { background: var(--purple-soft); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { left: 50%; transform: translateX(-50%); }
.section-head h2 { margin: 14px 0 0; }
.section-head .sub { font-size: 1.12rem; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.section--ink .section-head .sub { color: #B7B3C6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans);
  font-size: .98rem; font-weight: 600; line-height: 1; padding: 15px 26px;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-deep); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--purple); color: var(--purple); }
.btn--on-ink { background: #fff; color: var(--ink); }
.btn--on-ink:hover { background: #ECE9F4; color: var(--ink); }
.btn--on-ink-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-ink-ghost:hover { border-color: #fff; color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 1.02rem; }
.btn--sm { padding: 10px 16px; font-size: .86rem; }
.btn--block { width: 100%; justify-content: center; }
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow { font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 7px; }
.link-arrow .arr { transition: transform .18s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,252,.9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; flex: none; background: var(--purple); border-radius: 3px; transform: rotate(45deg); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; background: var(--paper); border-radius: 1px; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: .04em; color: var(--ink); }
.brand-word small { font-family: var(--sans); display: block; font-size: .58rem; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-top: -2px; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; font-size: .96rem; font-weight: 500; color: var(--text); border-radius: var(--radius); }
.nav-links a:hover { color: var(--purple); text-decoration: none; background: var(--purple-tint); }
.nav-links a.active { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: 74px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta { flex-direction: column; align-items: stretch; margin: 14px 0 0; gap: 8px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #E8E6EF; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(59,30,120,.55), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 800px; padding: 116px 0 104px; }
.hero h1 { color: #fff; margin: 22px 0 0; }
.hero .lead { font-size: 1.24rem; line-height: 1.6; color: #B9B5C8; margin: 26px 0 0; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .98rem; color: #9A95AC; max-width: 560px; }
.hero-note strong { color: #fff; font-weight: 600; }
@media (max-width: 760px) { .hero-inner { padding: 76px 0 70px; } }

/* Interior page hero */
.page-hero { background: var(--ink); color: #E8E6EF; padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -40%; right: -5%; width: 50%; height: 140%; background: radial-gradient(closest-side, rgba(59,30,120,.5), transparent 70%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 18px 0 0; max-width: 760px; }
.page-hero .sub { color: #B9B5C8; font-size: 1.14rem; max-width: 680px; margin-top: 18px; line-height: 1.6; }
.breadcrumb { font-size: .82rem; letter-spacing: .04em; color: #8C879C; margin-bottom: 4px; }
.breadcrumb a { color: #B9B5C8; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Editorial cards (no icons) ---------- */
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: border-color .18s, box-shadow .18s; }
.tile:hover { border-color: var(--purple-line); box-shadow: var(--shadow-soft); }
.tile .kicker { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.tile h3 { font-size: 1.22rem; margin: 14px 0 10px; }
.tile p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.tile .num { font-family: var(--serif); font-size: 1.5rem; color: var(--purple); font-weight: 500; }

.section--ink .tile { background: var(--ink-soft); border-color: rgba(255,255,255,.1); }
.section--ink .tile:hover { border-color: rgba(122,96,190,.5); }
.section--ink .tile h3 { color: #fff; }
.section--ink .tile p { color: #ADA8BC; }
.section--ink .tile .kicker { color: var(--purple-soft); }

/* List with hairline rules — institutional */
.rule-list { list-style: none; padding: 0; }
.rule-list li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list h4 { font-size: 1.18rem; margin: 0; }
.rule-list p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 680px) { .rule-list li { grid-template-columns: 1fr; gap: 8px; } }

/* Numbered editorial steps */
.numbered { list-style: none; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; color: var(--purple); font-weight: 500; }
.numbered h4 { margin: 0 0 4px; }
.numbered p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; line-height: 1.55; }
table.data thead th { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); border-bottom: 2px solid var(--purple-line); }
table.data tbody td { color: var(--muted); }
table.data tbody td strong { color: var(--ink); font-weight: 600; }
table.data tbody tr:hover td { background: var(--surface); }

/* ---------- Callout / quote ---------- */
.callout { border-left: 3px solid var(--purple); padding: 6px 0 6px 26px; }
.callout h4 { margin: 0 0 8px; }
.callout p { color: var(--muted); margin: 0; }
.pullquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
.section--ink .pullquote { color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .92rem; color: var(--ink); }
.field label .req { color: var(--purple); }
.field .hint { font-size: .82rem; color: var(--muted-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(59,30,120,.12); }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.checkbox-row label { font-size: .92rem; color: var(--muted); font-weight: 400; }
.form-note { font-size: .85rem; color: var(--muted-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

.form-status { padding: 14px 18px; border-radius: var(--radius); font-weight: 500; font-size: .95rem; display: none; margin-top: 4px; }
.form-status.show { display: block; }
.form-status.success { background: #EAF6EE; color: #1B7A40; border: 1px solid #BFE3CB; }
.form-status.error { background: #FBEAEA; color: #B5302C; border: 1px solid #F0C7C5; }
.form-status.info { background: var(--purple-tint); color: var(--purple-deep); border: 1px solid var(--purple-line); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; font-family: var(--sans); letter-spacing: .02em; }
.badge--cat { background: var(--purple-tint); color: var(--purple-deep); }
.badge--new { background: #EAF6EE; color: #1B7A40; }
.badge--review { background: #FBF1E3; color: #9A6A12; }
.badge--approved { background: var(--purple-tint); color: var(--purple-deep); }
.badge--rejected { background: #FBEAEA; color: #B5302C; }
.badge--muted { background: var(--surface); color: var(--muted); }

/* ---------- CTA strip (sade, tek) ---------- */
.cta-strip { background: var(--ink); border-radius: var(--radius-lg); padding: 64px 56px; color: #fff; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; top: -50%; right: -5%; width: 45%; height: 200%; background: radial-gradient(closest-side, rgba(59,30,120,.55), transparent 70%); }
.cta-strip > * { position: relative; }
.cta-strip h2 { color: #fff; max-width: 620px; }
.cta-strip p { color: #B9B5C8; margin: 16px 0 28px; max-width: 560px; font-size: 1.08rem; }
@media (max-width: 620px) { .cta-strip { padding: 40px 26px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9A95AC; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { color: #8C879C; font-size: .96rem; margin-top: 18px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: #ADA8BC; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #76728A; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--muted); line-height: 1.65; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Dil seçici (dropdown) ---------- */
.lang-dd { position: relative; }
.lang-dd-toggle { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.lang-dd-toggle:hover { border-color: var(--purple); color: var(--purple); }
.lang-caret { font-size: .68rem; color: var(--muted); transition: transform .18s; }
.lang-dd.open .lang-caret { transform: rotate(180deg); }
.lang-dd-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 5px; min-width: 150px; display: none; z-index: 120; }
.lang-dd.open .lang-dd-menu { display: block; }
.lang-dd-item { display: block; width: 100%; text-align: left; font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--text); background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.lang-dd-item:hover { background: var(--purple-tint); color: var(--purple-deep); }
.lang-dd-item.active { color: var(--purple); font-weight: 600; }
@media (max-width: 940px) {
  .lang-dd { align-self: flex-start; }
  .lang-dd-menu { right: auto; left: 0; }
}

/* ---------- Footer tam ad ---------- */
.footer-fullname { color: #fff; font-family: var(--serif); font-size: 1rem; font-weight: 500; margin-top: 16px; line-height: 1.35; }
.footer-brand .footer-fullname + p { margin-top: 6px; }
