/* DentSys Akademi bölüm sayfaları — ortak stil (tools/akademi-build.cjs üretir, elle düzenlenebilir) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #0F172A; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:root {
  --primary: #1D6AE5; --primary-dark: #1558C8; --primary-light: #EEF4FF;
  --text: #0F172A; --text-mid: #475569; --border: #E2E8F0; --bg: #F8FAFF;
  --shadow: 0 4px 16px rgba(29,106,229,.10); --transition: .22s cubic-bezier(.4,0,.2,1);
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-size: .97rem; font-weight: 700; border: 1.5px solid transparent; cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: inherit; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Üst menü */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; }
.logo span { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--text-mid); }
.top nav a:hover, .top nav a[aria-current] { color: var(--primary); background: var(--primary-light); }
.top .btn { padding: 10px 18px; }

/* Sayfa yolu */
.crumbs { font-size: .85rem; color: var(--text-mid); padding: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--primary); font-weight: 600; }

/* Bölüm */
.ep { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 16px 0 48px; }
.ep-phone { flex: 0 0 320px; margin: 0 auto; background: var(--text); border-radius: 30px; padding: 8px; position: sticky; top: 88px; }
.ep-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--primary); }
.ep-screen img, .ep-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ep-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ep-play svg { width: 28px; height: 28px; fill: var(--primary); margin-left: 4px; }
.ep-soon { position: absolute; inset: 0; background: rgba(15,23,42,.86); color: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.ep-soon.show { display: flex; }
.ep-soon p { font-size: .88rem; color: #CBD5E1; }
.ep-soon .btn { background: #fff; color: var(--text); }
.ep-dur { position: absolute; left: 12px; bottom: 12px; background: rgba(15,23,42,.8); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.ep-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ep-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-mid); font-weight: 600; }
.pill { background: var(--primary-light); color: var(--primary-dark); font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.pill.gray { background: #F1F5F9; color: #334155; font-weight: 700; }
.ep-info h1 { font-size: 2.6rem; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.ep-hook { color: var(--primary); font-weight: 700; font-size: 1.15rem; }
.ep-desc { color: var(--text-mid); font-size: 1.08rem; line-height: 1.65; max-width: 600px; }
.ep-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-transcript { margin-top: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.ep-transcript h2 { font-size: 1.15rem; margin-bottom: 10px; }
.ep-transcript p { font-size: 1rem; line-height: 1.75; color: #334155; }
.ep-transcript .note { font-size: .82rem; color: var(--text-mid); margin-top: 12px; }

/* Önceki / sonraki */
.ep-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 48px; }
.ep-pn a { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 16px; padding: 10px 16px 10px 10px; transition: var(--transition); }
.ep-pn a:hover { border-color: var(--primary); }
.ep-pn a.next { flex-direction: row-reverse; text-align: right; padding: 10px 10px 10px 16px; }
.ep-pn img { width: 40px; height: 71px; object-fit: cover; border-radius: 8px; }
.ep-pn small { display: block; font-size: .72rem; font-weight: 800; color: var(--text-mid); letter-spacing: .04em; }
.ep-pn b { font-size: 1rem; }

/* Kart ızgarası (ilgili bölümler ve liste sayfası) */
.section-h { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card .thumb { position: relative; border-radius: 16px; overflow: hidden; transition: transform .2s; }
.card:hover .thumb { transform: translateY(-3px); }
.card img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--primary); }
.card .ep-dur { left: 8px; bottom: 8px; font-size: .72rem; padding: 3px 8px; }
.card small { font-size: .75rem; font-weight: 700; color: var(--text-mid); }
.card b { font-size: .98rem; line-height: 1.3; margin-top: -4px; }
.card p { font-size: .88rem; color: var(--text-mid); line-height: 1.5; }
.related { padding-bottom: 72px; }
.more { display: inline-block; margin-top: 24px; color: var(--primary); font-weight: 700; }

/* Liste sayfası */
.hub-head { padding: 24px 0 40px; max-width: 760px; }
.hub-head h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hub-head p { font-size: 1.1rem; color: var(--text-mid); margin-top: 14px; line-height: 1.6; }
.season { padding-bottom: 56px; }
.season-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.season-h h2 { font-size: 1.6rem; font-weight: 800; }
.soon-pill { background: #FEF3C7; color: #92400E; font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.season-note { color: var(--text-mid); max-width: 640px; }

/* Alt bilgi */
footer { background: var(--text); color: #CBD5E1; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding: 28px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a:hover { color: #fff; }

/* Maskotlu WhatsApp */
#whatsappBtn { position: fixed; right: 20px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 10px; }
.wa-bot { position: relative; width: 66px; height: 66px; border-radius: 50%; background: #DCE8FD; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(15,23,42,.25); animation: waBob 3.4s ease-in-out infinite; }
.wa-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wa-smile { opacity: 0; animation: waSmile 6s infinite; }
.wa-badge { position: absolute; right: -5px; bottom: -3px; width: 26px; height: 26px; border-radius: 50%; background: #25D366; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; }
.wa-badge svg { width: 14px; height: 14px; }
.wa-bubble { background: #fff; color: var(--text-mid); font-size: .86rem; line-height: 1.35; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(15,23,42,.18); opacity: 0; transform: translateX(8px); transition: .3s; pointer-events: none; }
.wa-bubble b { display: block; color: var(--text); }
#whatsappBtn:hover .wa-bubble, #whatsappBtn:focus-visible .wa-bubble { opacity: 1; transform: none; }
@keyframes waBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
@keyframes waSmile { 0%, 80%, 100% { opacity: 0; } 83%, 95% { opacity: 1; } }

@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .ep { gap: 28px; }
  .ep-phone { position: static; flex-basis: 270px; }
  .ep-info h1 { font-size: 2rem; }
  .hub-head h1 { font-size: 2.1rem; }
  .ep-pn { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-bot, .wa-smile { animation: none; }
}
