/* =========================================================
   Resmi Tarih — site stilleri
   Renkleri ve yazı tiplerini aşağıdaki değişkenlerden değiştirebilirsin.
   ========================================================= */

:root {
  --bg: #0d0c0a;
  --bg-raised: #13110e;
  --surface: #1a1714;
  --surface-2: #232019;
  --line: rgba(236, 228, 211, 0.11);
  --line-strong: rgba(236, 228, 211, 0.22);
  --text: #ece4d3;
  --text-muted: #b8ad97;
  --text-faint: #918774;
  --gold: #c9a45c;
  --gold-bright: #e3c68c;
  --on-gold: #16130e;
  --paper: #eee5d1;
  --paper-ink: #231f19;
  --paper-muted: #5f5547;
  --paper-accent: #9e3523;
  --radius: 3px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Temel ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(201, 164, 92, 0.35); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 780px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-gold); }

/* ---------- Küçük parçalar ---------- */

.label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.42rem 0.65rem 0.38rem;
  border: 1px solid rgba(201, 164, 92, 0.55);
  color: var(--gold);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin: 0;
  color: var(--gold);
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.meta > * + *::before {
  content: "·";
  margin-right: 0.55rem;
  color: var(--text-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-bright); color: var(--on-gold); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--sm { padding: 0.6rem 0.9rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.2s ease; }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(3px); }

.stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  padding: 0.35rem 0.55rem 0.3rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  color: rgba(158, 53, 35, 0.8);
  font: 700 0.625rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(5deg);
  pointer-events: none;
}

/* ---------- Üst bölüm ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 12, 10, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(13, 12, 10, 0.76);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .emblem { width: 42px; height: 42px; flex: none; color: var(--gold); }
.brand__name {
  display: block;
  font: 700 1.2rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand__tagline {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-faint);
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav__list { display: flex; gap: 1.75rem; list-style: none; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current] { color: var(--gold); }
.nav__link[aria-current]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  /* JavaScript kapalıysa menü başlığın altında satır olarak görünür */
  .site-header__inner { flex-wrap: wrap; }
  .nav { width: 100%; flex-wrap: wrap; gap: 1rem; margin-left: 0; padding-bottom: 1rem; }
  .nav__list { flex-wrap: wrap; gap: 0.25rem 1.25rem; }

  .js .site-header__inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
  }
  .js .nav.is-open { display: flex; }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__link { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .js .nav__link[aria-current]::after { display: none; }
}

/* ---------- Giriş (hero) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 65% at 80% 40%, rgba(201, 164, 92, 0.16), transparent 70%),
    radial-gradient(40% 55% at 5% 100%, rgba(158, 53, 35, 0.14), transparent 70%),
    linear-gradient(180deg, #110f0c, var(--bg));
}
.hero__globe {
  position: absolute;
  top: 50%;
  right: -6%;
  z-index: -1;
  width: min(820px, 92vw);
  height: auto;
  color: var(--gold);
  opacity: 0.16;
  transform: translateY(-50%) rotate(-16deg);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  margin: 1.4rem 0 1.25rem;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__title em { color: var(--gold); font-style: italic; font-weight: 600; }
.hero__lead {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.175rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__globe { top: 22%; right: -45%; width: 640px; }
  .hero .feature { margin-top: 0.75rem; }
}

/* ---------- Video kartları ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.media__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.5rem;
  border-radius: 2px;
  background: rgba(10, 9, 7, 0.86);
  color: var(--text);
  font: 500 0.75rem/1 var(--font-mono);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.media__duration svg { width: 0.7rem; height: 0.7rem; }
.card:hover .media img,
.feature:hover .media img,
.related-video:hover .media img { transform: scale(1.04); }
.card:hover .media__duration,
.feature:hover .media__duration,
.related-video:hover .media__duration { background: var(--gold); color: var(--on-gold); }

.card { position: relative; display: flex; flex-direction: column; }
.card__body { padding-top: 1rem; }
.card__title {
  margin: 0.55rem 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--gold-bright); }
.card__date { margin: 0; color: var(--text-faint); font-size: 0.875rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.feature {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(28, 25, 21, 0.92), rgba(19, 17, 14, 0.92));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  pointer-events: none;
}
.feature__label {
  position: absolute;
  top: -12px;
  left: 26px;
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.6rem 0.35rem;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.feature__body { padding: 1.1rem 0.35rem 0.35rem; }
.feature__title { margin: 0.6rem 0 0.5rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
.feature__title a { text-decoration: none; }
.feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature:hover .feature__title a { color: var(--gold-bright); }

/* ---------- Bölümler ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--raised { background: var(--bg-raised); }
.section--flush { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__title { margin-top: 1rem; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section__lead { max-width: 38rem; margin: 0.75rem 0 0; color: var(--text-muted); }

/* Dönem çizelgesi */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold) 85%, transparent);
  opacity: 0.5;
}
.era { position: relative; padding-top: 2.4rem; }
.era::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  background: var(--bg-raised);
  transform: rotate(45deg);
}
.era__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-right: 1.75rem;
  color: inherit;
  text-decoration: none;
}
.era__link:hover { color: inherit; }
.era__link .link-arrow { margin-top: auto; }
.era__no {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font: italic 600 2.6rem/1 var(--font-display);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.era__years { color: var(--gold); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.12em; }
.era__name { margin: 0.7rem 0 0.6rem; font-size: 1.6rem; transition: color 0.2s ease; }
.era__desc { color: var(--text-muted); font-size: 0.9375rem; }
.era__link:hover .era__name { color: var(--gold-bright); }
.era__link:hover .era__no { opacity: 0.8; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; padding-left: 2.25rem; }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 7px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--gold) 85%, transparent);
  }
  .era { padding-top: 0; }
  .era::before { top: 0.2rem; left: -2.25rem; }
  .era__link { padding-right: 0; }
}

/* Yazı kartları (belge görünümü) */
.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 760px) { .posts { grid-template-columns: minmax(0, 1fr); } }

.doc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: 2px;
  background: var(--grain), linear-gradient(180deg, #f3ebd9, var(--paper) 45%, #e7dcc4);
  color: var(--paper-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.doc::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(35, 31, 25, 0.16);
  pointer-events: none;
}
.doc__meta {
  margin: 0;
  padding-right: 4.5rem;
  color: var(--paper-accent);
  font: 600 0.6875rem/1.5 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.doc__title { margin: 0.85rem 0 0.75rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; }
.doc__title a { text-decoration: none; }
.doc__title a::after { content: ""; position: absolute; inset: 0; }
.doc a:hover { color: inherit; }
.doc:hover .doc__title a { text-decoration: underline; text-decoration-color: rgba(158, 53, 35, 0.6); }
.doc__excerpt { color: var(--paper-muted); }
.doc__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--paper-accent);
  font-size: 0.9375rem;
  font-weight: 600;
}
.doc__more svg { width: 1em; height: 1em; transition: transform 0.2s ease; }
.doc:hover .doc__more svg { transform: translateX(3px); }

/* İlkeler */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
}
.pillar { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.pillar__no { color: var(--gold); font: italic 600 2.2rem/1 var(--font-display); }
.pillar__title { margin: 1rem 0 0.6rem; font-size: 1.3rem; line-height: 1.25; }
.pillar p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Abone ol çağrısı */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line-strong);
  background: radial-gradient(70% 140% at 100% 0%, rgba(201, 164, 92, 0.14), transparent 60%), var(--surface);
}
.cta__mark {
  position: absolute;
  top: 50%;
  right: -60px;
  width: 300px;
  height: 300px;
  color: var(--gold);
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta > :not(.cta__mark) { position: relative; }
.cta__title { margin: 0.9rem 0 0.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta p { max-width: 34rem; margin: 0; color: var(--text-muted); }
.cta--compact { margin-top: 3rem; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Alt bölüm ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: #090807;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.footer__about p { max-width: 22rem; margin-top: 1.25rem; }
.footer__title {
  margin-bottom: 1rem;
  color: var(--text);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__list { display: grid; gap: 0.55rem; list-style: none; }
.footer__list a { text-decoration: none; overflow-wrap: anywhere; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8125rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

/* ---------- İç sayfalar ---------- */

.page-head { padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); }
.page-head--bordered {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 140% at 85% 0%, rgba(201, 164, 92, 0.1), transparent 70%);
}

.breadcrumbs { margin-bottom: 1.4rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  color: var(--text-faint);
  font-size: 0.8125rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--text-muted); }

.page-title {
  max-width: 920px;
  margin: 0.9rem 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
}
.page-lead { max-width: 44rem; color: var(--text-muted); font-size: 1.125rem; }
.page-meta { margin: 0; color: var(--text-faint); font-size: 0.9375rem; }
.page-meta a { text-decoration: none; color: var(--text-muted); }

/* Video sayfası */
.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--placeholder img { width: 100%; height: 100%; object-fit: cover; }
.player__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
}
.player__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__fallback span {
  position: relative;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(10, 9, 7, 0.85);
  font-weight: 600;
}
.player__fallback:hover span { background: var(--gold); color: var(--on-gold); }
.player__note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(0deg, rgba(10, 9, 7, 0.94), rgba(10, 9, 7, 0.7));
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.player__note svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.player__note p { margin: 0; }
.player__note strong { color: var(--text); }
@media (max-width: 560px) {
  .player__note { gap: 0.6rem; padding: 0.55rem 0.75rem; font-size: 0.75rem; line-height: 1.4; }
  .player__note svg { width: 16px; height: 16px; }
}

.watch__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.watch__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.share a,
.share button {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.share a:hover,
.share button:hover { border-color: var(--gold); color: var(--gold-bright); }
.share [data-copy] { display: none; }
.js .share [data-copy] { display: inline-block; }

.watch__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}
.watch__layout--single { grid-template-columns: minmax(0, 780px); }
.watch__aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
  .watch__layout { grid-template-columns: minmax(0, 1fr); }
  .watch__aside { position: static; order: -1; }
}

/* Künye kutusu (belge görünümü) */
.record {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--grain), linear-gradient(180deg, #f3ebd9, var(--paper) 50%, #e7dcc4);
  color: var(--paper-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.record::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(35, 31, 25, 0.16);
  pointer-events: none;
}
.record__label {
  margin: 0 0 1.2rem;
  color: var(--paper-accent);
  font: 700 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.record dl { display: grid; gap: 0.95rem; margin: 0; }
.record dt {
  color: var(--paper-muted);
  font: 600 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.record dd { margin: 0.3rem 0 0; font-size: 0.9375rem; line-height: 1.5; }

/* Uzun metin */
.prose { color: #ddd4c2; font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose .lead { color: var(--text); font-size: 1.25rem; line-height: 1.65; }
.prose h2 { margin-top: 2.2em; color: var(--text); font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 0.8em; }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.prose a { color: var(--gold-bright); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--gold);
  color: var(--text);
  font: italic 600 1.25rem/1.6 var(--font-display);
}

.prose .chapters { padding-left: 0; list-style: none; border-top: 1px solid var(--line); }
.prose .chapters li { margin: 0; border-bottom: 1px solid var(--line); }
.chapters a,
.chapters__row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.75rem 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
}
.chapters a:hover { background: rgba(201, 164, 92, 0.07); color: var(--text); }
.chapters__time { min-width: 4.5ch; color: var(--gold); font: 500 0.875rem/1 var(--font-mono); }

.prose .sources { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }
.prose .sources li::marker { color: var(--text-faint); }

/* Video filtresi */
.filters {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.js .filters { display: flex; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search input {
  width: min(300px, 100%);
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 400 0.9375rem/1.2 var(--font-body);
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus-visible { border-color: var(--gold); outline-offset: 2px; }
.filters__count {
  margin: 0 0 2rem;
  color: var(--text-faint);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .search,
  .search input { width: 100%; }
}
.chip {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font: 500 0.875rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.empty { padding: 3rem 0; color: var(--text-muted); text-align: center; }

/* Yazı sayfası */
.toc {
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.toc__title {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 0.4rem; padding-left: 1.2em; color: var(--text-muted); }
.toc li::marker { color: var(--text-faint); }
.toc a { text-decoration: none; }

.related-video {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.related-video__title { margin: 0.8rem 0 0.4rem; font-size: 1.2rem; line-height: 1.3; }
.related-video__title a { text-decoration: none; }
.related-video__title a::after { content: ""; position: absolute; inset: 0; }
.related-video:hover .related-video__title a { color: var(--gold-bright); }
@media (max-width: 560px) { .related-video { grid-template-columns: minmax(0, 1fr); } }

/* Video sayfasında konunun yazısı */
.video-post {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  background: var(--surface);
}
.video-post .label { margin-bottom: 0.85rem; }
.video-post__title { margin: 0 0 0.5rem; font: 600 1.25rem/1.3 var(--font-display); }
.video-post__title a { text-decoration: none; }
.video-post__title a:hover { color: var(--gold-bright); }
.video-post__excerpt { margin: 0 0 0.6rem; color: var(--text-muted); font-size: 0.9375rem; }
.video-post__meta,
.video-post__more { margin: 0; color: var(--text-faint); font-size: 0.875rem; }
.video-post__meta + .video-post__more { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }

.article__footer {
  margin-top: 2.5rem;
  padding: 1.25rem 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

/* İletişim */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.contact-card h2 { margin: 1.1rem 0 0.6rem; font-size: 1.35rem; }
.contact-card p { color: var(--text-muted); }
.contact-card .link-arrow { margin-top: auto; }
.contact-direct { margin-top: 2rem; color: var(--text-muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.notfound { padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound .page-title { max-width: 16ch; }

/* Konu kartları */
.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1000px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topics { grid-template-columns: minmax(0, 1fr); } }
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.topic:hover { border-color: rgba(201, 164, 92, 0.6); }
.topic__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.topic__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.6s ease, opacity 0.3s ease; }
.topic__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 10, 0.85)); }
.topic__body { padding: 1rem 1.1rem 1.25rem; }
.topic__title { margin: 0.55rem 0 0.4rem; font-size: 1.15rem; line-height: 1.25; }
.topic__title a { text-decoration: none; }
.topic__title a::after { content: ""; position: absolute; inset: 0; }
.topic__desc { margin: 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }
.topic:hover img { transform: scale(1.04); opacity: 0.95; }
.topic:hover .topic__title a { color: var(--gold-bright); }

/* Dönem ve konu sayfaları */
.hub-intro { max-width: 48rem; margin-top: 1.1rem; }
.hub-intro p { color: var(--text-muted); }
.hub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin: 1.1rem 0 0;
  color: var(--text-faint);
  font-size: 0.9375rem;
}
.hub-links > span:first-child { color: var(--text-muted); font-weight: 600; }
.hub-links a { color: var(--gold); text-decoration: none; }
.hub-links a:hover { color: var(--gold-bright); text-decoration: underline; }
.section--flush > .hub-links { margin-top: 3rem; }

/* Künye kutusundaki bağlantılar */
.record dd a { color: var(--paper-accent); text-decoration: underline; text-decoration-color: rgba(158, 53, 35, 0.35); }
.record dd a:hover { color: var(--paper-ink); }

/* Yazı kapağı ve yazı içi görseller */
.article__cover { margin: 0 0 2rem; }
.article__cover img { width: 100%; border: 1px solid var(--line-strong); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; border: 1px solid var(--line-strong); }
.prose figcaption { margin-top: 0.5rem; color: var(--text-faint); font-size: 0.875rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
