/* =========================================================
   Mezhep.Org — tasarım sistemi
   ========================================================= */
:root {
  --bg: #f7f4ee;
  --bg-2: #efe9df;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --ink: #14211f;
  --ink-2: #3c4a47;
  --muted: #6b7774;
  --line: #e3ddd2;
  --line-2: #d6cfc2;
  --brand: #2a4862;
  --brand-2: #355b7c;
  --brand-ink: #ffffff;
  --brand-soft: #e3eaf2;
  --gold: #b88a2e;
  --gold-soft: #f5ecd7;
  --rose: #a2463b;
  --rose-soft: #f6e4e0;
  --indigo: #1f6f6a;
  --indigo-soft: #dff0ed;
  --shadow-sm: 0 1px 2px rgba(20, 33, 31, .06), 0 1px 1px rgba(20, 33, 31, .04);
  --shadow: 0 10px 30px -12px rgba(20, 33, 31, .18), 0 2px 6px rgba(20, 33, 31, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 50, 44, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --header-h: 72px;
  --container: 1240px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c121a; --bg-2: #101823; --surface: #141e2a; --surface-2: #182432;
    --ink: #eef2f6; --ink-2: #c4ced9; --muted: #8e9cad; --line: #223042; --line-2: #2d3e54;
    --brand: #8fb5df; --brand-2: #abc8ea; --brand-ink: #0b1622; --brand-soft: #1c2c40;
    --gold: #e0b75a; --gold-soft: #3a2f17; --rose: #ec8b7d; --rose-soft: #3d221e;
    --indigo: #7fd1c7; --indigo-soft: #16302e;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c121a; --bg-2: #101823; --surface: #141e2a; --surface-2: #182432;
  --ink: #eef2f6; --ink-2: #c4ced9; --muted: #8e9cad; --line: #223042; --line-2: #2d3e54;
  --brand: #8fb5df; --brand-2: #abc8ea; --brand-ink: #0b1622; --brand-soft: #1c2c40;
  --gold: #e0b75a; --gold-soft: #3a2f17; --rose: #ec8b7d; --rose-soft: #3d221e;
  --indigo: #7fd1c7; --indigo-soft: #16302e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 72, "SOFT" 30; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; border-radius: 10px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.hero-logo { display: block; width: 100px; height: 68px; margin: 0 auto 6px; border-radius: 14px; box-shadow: var(--shadow); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand small { display: block; font: 500 .7rem/1 var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.search-trigger { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; min-width: 200px; transition: border-color .2s; }
.search-trigger:hover { border-color: var(--line-2); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; font: 500 .72rem var(--sans); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.menu-btn { display: none; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

@media (max-width: 1360px) {
  .nav a { padding: 8px 10px; }
  .site-header .container { gap: 14px; }
}
@media (max-width: 1360px) and (min-width: 981px) {
  body:has([data-account]) .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  body:has([data-account]) .search-trigger span, body:has([data-account]) .search-trigger kbd { display: none; }
}
@media (max-width: 1120px) {
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 28px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .header-actions { margin-left: auto; }
}

/* ---------- butonlar, rozetler ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; font-family: inherit; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-2); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-2); transform: translateY(-2px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .01em; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.b-brand { background: var(--brand-soft); color: var(--brand); }
.badge.b-gold { background: var(--gold-soft); color: var(--gold); }
.badge.b-rose { background: var(--rose-soft); color: var(--rose); }
.badge.b-indigo { background: var(--indigo-soft); color: var(--indigo); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero-pattern { position: absolute; inset: 0; z-index: -1; color: var(--brand); opacity: .07; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 30%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--gold) 30%, transparent), transparent 65%); filter: blur(20px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 600px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); }
.hero-card .arabic { font-family: var(--arabic); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.4; color: var(--brand); text-align: center; direction: rtl; margin: 4px 0 14px; }
.hero-card .quote { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); text-align: center; font-style: italic; margin: 0 0 24px; }
.hero-card .sig { text-align: center; font-size: .85rem; color: var(--muted); }
.hero-card .sig strong { color: var(--ink); font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- section ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); font-size: .95rem; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: auto; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { margin: 18px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile .num { font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; margin-top: 14px; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.feature { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.tile.feature p { color: color-mix(in oklab, var(--brand-ink) 78%, transparent); }
.tile.feature .ic { background: color-mix(in oklab, var(--brand-ink) 16%, transparent); color: var(--brand-ink); }
.tile.feature .pattern { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .14; color: var(--brand-ink); }
.tile.gold .ic { background: var(--gold-soft); color: var(--gold); }
.tile.rose .ic { background: var(--rose-soft); color: var(--rose); }
.tile.indigo .ic { background: var(--indigo-soft); color: var(--indigo); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } .tile.tall { grid-row: auto; } }

/* ---------- kartlar ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.card .foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.news-card .thumb { margin: -22px -22px 6px; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--brand); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb svg { width: 48px; height: 48px; opacity: .35; }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 62px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.date-chip b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.date-chip span { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.person { flex-direction: row; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; color: var(--brand); background: var(--brand-soft); }
.avatar.lg { width: 96px; height: 96px; border-radius: 28px; font-size: 2.2rem; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .info { min-width: 0; }
.person h3 { font-size: 1.02rem; }
.person .rank { font-size: .78rem; color: var(--brand); font-weight: 600; }
.person .uni { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- liste / feed ---------- */
.feed { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-item { display: flex; gap: 18px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: flex-start; transition: background .2s; }
.feed-item:first-child { border-top: 0; }
a.feed-item:hover { background: var(--surface-2); }
.feed-item .body { min-width: 0; flex: 1; }
.feed-item h3 { font-size: 1.05rem; margin: 2px 0 6px; line-height: 1.35; }
.feed-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.feed-item .chev { color: var(--muted); align-self: center; flex-shrink: 0; }
.feed-item .chev svg { width: 18px; height: 18px; }

/* ---------- sayfa başlığı ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero-pattern { opacity: .06; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--ink-2); max-width: 720px; margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- filtre çubuğu ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.toolbar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent); }
.input svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.input input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; }
.select { height: 46px; padding: 0 38px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7774' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); font: inherit; font-size: .92rem; appearance: none; cursor: pointer; max-width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: .74rem; opacity: .65; }
.result-info { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- detay / prose ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.detail aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail aside { position: static; } }
.prose, .panel, .card { overflow-wrap: anywhere; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2, .panel h3 { font-size: 1.15rem; }
.panel + .panel { margin-top: 18px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.dl dd a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose { font-size: 1.04rem; line-height: 1.8; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; box-shadow: var(--shadow-sm); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.abstract-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 4px; margin-bottom: 18px; }
.abstract-tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.abstract-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.post { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.post-head .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.post-head strong { color: var(--ink); font-weight: 600; }

/* ---------- zaman çizelgesi ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--gold)); border-radius: 2px; opacity: .45; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl-item.gold::before { border-color: var(--gold); }
.year-label { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: 18px 0 2px; }
.coord-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.coord { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: .3s var(--ease); }
.coord:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.coord .no { font-family: var(--serif); font-size: 2rem; color: var(--brand); line-height: 1; font-weight: 600; }
.coord .city { font-weight: 600; margin-top: 8px; }
.coord .yr { font-size: .82rem; color: var(--muted); }

/* ---------- galeri ---------- */
.album-card { padding: 0; overflow: hidden; }
.album-card .cover { aspect-ratio: 4/3; background: var(--bg-2); display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card .cover img:first-child { grid-row: span 2; }
.album-card .cover.single img { grid-column: span 2; }
.album-card .txt { padding: 16px 18px 18px; }
.album-card h3 { font-size: 1.05rem; }
.masonry { columns: 4 220px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; position: relative; }
.masonry img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.masonry figure:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(6, 12, 11, .92); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 92vw); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #e8efed; font-size: .9rem; padding: 0 60px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- komut paleti (arama) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(10, 18, 17, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 10vh 16px 16px; }
.cmdk.open { display: block; animation: fade .2s ease; }
.cmdk-box { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { width: 20px; height: 20px; color: var(--muted); }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); }
.cmdk-input kbd { font: 500 .72rem var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.cmdk-list { max-height: 58vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cmdk-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); flex-shrink: 0; }
.cmdk-item .ic svg { width: 16px; height: 16px; }
.cmdk-item .t { font-weight: 500; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .s { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .tx { min-width: 0; }
.cmdk-item[aria-selected="true"] { background: var(--brand-soft); }
.cmdk-item mark { background: color-mix(in oklab, var(--gold) 30%, transparent); color: inherit; border-radius: 3px; }
.cmdk-empty { padding: 36px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- CTA, footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--brand); color: var(--brand-ink); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta h2 { color: inherit; }
.cta p { color: color-mix(in oklab, var(--brand-ink) 80%, transparent); margin: 0; }
.cta .pattern { position: absolute; right: -60px; top: -60px; width: 420px; opacity: .1; z-index: -1; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-primary { background: var(--brand-ink); color: var(--brand); }
.cta .btn-ghost { background: transparent; color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand-ink) 35%, transparent); }
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { color: var(--muted); margin: 14px 0 0; max-width: 360px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- hesap menüsü ve yorumlar (sunucu modu) ---------- */
.account { display: flex; align-items: center; gap: 8px; }
.acc-menu { position: relative; }
.acc-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.acc-btn .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: .9rem; }
.acc-dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.acc-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.acc-pop.open { display: block; animation: pop .2s var(--ease); }
.acc-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; font-size: .88rem; }
.acc-head span { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.acc-pop a, .acc-pop button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: .92rem; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.acc-pop a:hover, .acc-pop button:hover { background: var(--bg-2); }
@media (max-width: 560px) { .acc-signup { display: none; } }
.muted { color: var(--muted); font-size: .9rem; }
.comments { margin-top: 18px; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; padding-top: 4px; }
.comment .prose { font-size: .98rem; }
.comment.is-pending { opacity: .8; }
.comment-form textarea { width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; resize: vertical; margin-top: 14px; }
.comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 15%, transparent); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Akaid Asistanı ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font: 600 .95rem var(--sans); cursor: pointer; box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--brand) 70%, transparent); transition: transform .2s var(--ease), background .2s; }
.ai-fab:hover { transform: translateY(-2px); background: var(--brand-2); }
.ai-fab svg { width: 22px; height: 22px; }
.has-assistant .to-top { bottom: 88px; }
.ai-open .ai-fab { display: none; }
.ai-box { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.ai-box[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--brand); color: var(--brand-ink); }
.ai-head img { border-radius: 8px; flex-shrink: 0; }
.ai-head div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.ai-head strong { font-family: var(--serif); font-size: 1.05rem; }
.ai-head span { font-size: .78rem; opacity: .8; }
.ai-icon { width: 34px; height: 34px; border-radius: 10px; border: 0; background: color-mix(in oklab, var(--brand-ink) 14%, transparent); color: inherit; display: grid; place-items: center; cursor: pointer; }
.ai-icon:hover { background: color-mix(in oklab, var(--brand-ink) 24%, transparent); }
.ai-icon svg { width: 18px; height: 18px; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.ai-msg { display: flex; }
.ai-msg.me { justify-content: flex-end; }
.ai-bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: .94rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ai-bubble.prose { font-size: .94rem; line-height: 1.65; }
.ai-bubble p { margin: 0 0 .6em; }
.ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul { margin: .2em 0 .6em; padding-left: 1.2em; }
.ai-msg.me .ai-bubble { background: var(--brand); color: var(--brand-ink); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.ai-msg.err .ai-bubble { background: var(--rose-soft); border-color: transparent; color: var(--ink); }
.ai-note { font-size: .8rem; color: var(--muted); }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-size: .68rem; font-weight: 700; vertical-align: 2px; }
.ai-src { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: .82rem; }
.ai-src summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.ai-src ol { margin: 8px 0 0; padding-left: 1.4em; color: var(--ink-2); }
.ai-src li span { color: var(--muted); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chips .chip { height: auto; padding: 8px 12px; text-align: left; line-height: 1.3; }
.ai-typing { display: inline-flex; gap: 5px; align-items: center; height: 44px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-foot { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-form { display: flex; gap: 8px; align-items: flex-end; }
.ai-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: .94rem; line-height: 1.45; }
.ai-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 15%, transparent); }
.ai-send { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.ai-send svg { width: 18px; height: 18px; }
.ai-meta { font-size: .74rem; color: var(--muted); margin-top: 6px; text-align: right; min-height: 1em; }
.ai-gate { margin: 4px; font-size: .9rem; color: var(--ink-2); text-align: center; }
@media (max-width: 560px) {
  .ai-fab span { display: none; }
  .ai-fab { width: 54px; padding: 0; justify-content: center; }
  .ai-box { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .ai-fab, .ai-box { display: none !important; } }

/* ---------- animasyon ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .brand small { display: none; }
  .feed-item { padding: 16px; gap: 14px; }
  .detail { padding-top: 28px; }
}
@media print {
  .site-header, .site-footer, .toolbar, .to-top, aside, .cmdk { display: none !important; }
  .detail { grid-template-columns: 1fr; }
  body { background: #fff; }
}
