/* ============================================================
   Prof. Dr. Bülent Düz — Ortak sayfa & içerik stilleri
   ============================================================ */
:root {
  --navy-deep: #071422;
  --navy: #0c1f35;
  --navy-mid: #143052;
  --teal: #1a7a78;
  --teal-light: #2a9d9a;
  --teal-glow: rgba(42, 157, 154, 0.18);
  --cream: #f7f5f0;
  --cream-dark: #ebe8e1;
  --gold: #b8954a;
  --gold-soft: rgba(184, 149, 74, 0.15);
  --text: #1c2a3a;
  --text-muted: #5a6d7d;
  --white: #ffffff;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-soft: 0 4px 24px rgba(7, 20, 34, 0.06);
  --shadow-lift: 0 24px 48px -12px rgba(7, 20, 34, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
body.page {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container--narrow { max-width: 52rem; }

/* —— Alt sayfa hero —— */
.page-hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 45%, #0d3d3c 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 85% 10%, var(--teal-glow), transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-light); margin: 0 0 0.75rem;
}
.page-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0;
}
.page-hero__sub { margin: 1rem 0 0; max-width: 40rem; color: rgba(255,255,255,0.74); font-size: 1.02rem; font-weight: 300; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin: 0 0 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* —— Bölüm —— */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.6rem; }
.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--navy); letter-spacing: -0.02em; margin: 0; }

/* —— Butonlar —— */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer;
  border: 0; transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px -10px rgba(7,20,34,0.6); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); }
.btn-primary i { color: var(--teal-light); }
.btn-primary:hover i { color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid rgba(12,31,53,0.18); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--navy); transform: translateY(-2px); }

/* —— Kart ızgarası —— */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid rgba(12,31,53,0.06); box-shadow: var(--shadow-soft);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(26,122,120,0.2); }
.card__media { aspect-ratio: 16/10; background: var(--cream-dark); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.card__icon {
  width: 3rem; height: 3rem; border-radius: 0.9rem; display: flex; align-items: center; justify-content: center;
  background: rgba(26,122,120,0.1); color: var(--teal); font-size: 1.1rem; margin-bottom: 0.5rem;
}
.card__tag {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); background: rgba(26,122,120,0.1); padding: 0.25rem 0.6rem; border-radius: 100px;
}
.card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.25; }
.card__desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.card__meta { font-size: 0.78rem; color: var(--text-muted); margin-top: auto; padding-top: 0.5rem; }
.card__link { font-size: 0.82rem; font-weight: 700; color: var(--teal); margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.4rem; }

/* —— İçerik (render edilen HTML) —— */
.prose { color: var(--text); font-size: 1.02rem; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--navy); margin: 2.2rem 0 0.8rem; line-height: 1.25; }
.prose h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 600; color: var(--navy); margin: 1.8rem 0 0.6rem; }
.prose p { margin: 0 0 1.15rem; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-lg); margin: 1.5rem 0; box-shadow: var(--shadow-soft); }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--teal);
  background: var(--cream); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: var(--text-muted); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--cream-dark); margin: 2rem 0; }

/* —— YouTube zengin kart —— */
.yt-card-wrap { margin: 0 0 1.35rem; }
.prose .yt-card-wrap + .yt-card-wrap { margin-top: -0.35rem; }
.yt-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(12, 31, 53, 0.08);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
@media (min-width: 640px) {
  .yt-card { grid-template-columns: minmax(11rem, 38%) 1fr; align-items: stretch; }
}
.yt-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(26, 122, 120, 0.28);
}
.yt-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0c1f35;
  overflow: hidden;
}
@media (min-width: 640px) {
  .yt-card__media { aspect-ratio: auto; min-height: 100%; }
}
.yt-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.5s var(--ease);
}
.yt-card:hover .yt-card__thumb { transform: scale(1.04); }
.yt-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 31, 53, 0.45) 100%);
  color: #fff;
  font-size: 2.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.yt-card__play i { color: #ff0033; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
.yt-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.25rem;
}
.yt-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4302b;
}
.yt-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.yt-card__author {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.yt-card__cta {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal);
}
.yt-card__cta i { font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .yt-card, .yt-card__thumb { transition: none; }
  .yt-card:hover { transform: none; }
  .yt-card:hover .yt-card__thumb { transform: none; }
}

/* —— Galeri —— */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery__item { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--cream-dark); border: 1px solid rgba(12,31,53,0.06); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }

/* —— Filtre sekmeleri —— */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.25rem; }
.filter-btn {
  padding: 0.6rem 1.2rem; border-radius: 100px; border: 1px solid rgba(12,31,53,0.1);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  font-family: inherit; transition: all 0.3s var(--ease); box-shadow: var(--shadow-soft);
}
.filter-btn:hover { border-color: rgba(26,122,120,0.35); color: var(--teal); }
.filter-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* —— Durumlar —— */
.state { text-align: center; padding: 3.5rem 1rem; color: var(--text-muted); }
.state i { font-size: 1.6rem; color: var(--teal); margin-bottom: 0.75rem; display: block; }
.spinner {
  width: 2rem; height: 2rem; border: 3px solid var(--cream-dark); border-top-color: var(--teal);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 0.75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* —— PDF / dosya satırı —— */
.pub-card {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white);
  border: 1px solid rgba(12,31,53,0.06); border-radius: var(--radius-xl); padding: 1.4rem; box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pub-card__thumb { width: 4.5rem; height: 4.5rem; border-radius: 0.9rem; flex-shrink: 0; object-fit: cover; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 1.3rem; }
.pub-card__year { font-size: 0.72rem; font-weight: 700; color: var(--gold); letter-spacing: 0.05em; }
.pub-card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 0.15rem 0 0.35rem; line-height: 1.25; }
.pub-card__meta { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.6rem; }

/* —— Lightbox —— */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(7,20,34,0.92);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.5rem; color: #fff; font-size: 1.6rem; background: none; border: 0; cursor: pointer; }

/* —— Reveal —— */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
