/* Sunumun yazı tipi: Aptos (Office ile gelen dosyalardan, WOFF2) */
@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-Light.woff2) format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-SemiBold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos Light';
  src: url(fonts/Aptos-Light.woff2) format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos Light';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos SemiBold';
  src: url(fonts/Aptos-SemiBold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Aptos SemiBold';
  src: url(fonts/Aptos-Bold.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* sunumdaki Darker Grotesque yüklü olmadığı için PowerPoint Calibri çiziyor; site de aynısını yapar */
@font-face {
  font-family: 'Calibri';
  src: url(fonts/Calibri.woff2) format('woff2');
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: 'Calibri';
  src: url(fonts/Calibrib.woff2) format('woff2');
  font-weight: 700;
  font-display: block;
}

:root {
  --yellow: #a32037;            /* marka vurgu rengi (Desecure bordo) */
  --on-accent: #ffffff;
  --ink: #46433f;
  --page: #f1f1f1;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: 'Aptos', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

/* 1920x1080 sahne, JS ile ekrana sığdırılır */
#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
}

.slide.nobg { background: none !important; }

/* önceden kurulan slaytlar: ölçülebilir ama görünmez */
.prep {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  contain: strict;
}

/* --- slayt öğeleri ---------------------------------------------------- */
.el {
  position: absolute;
  transform-origin: 50% 50%;
}

.el.pic { overflow: hidden; }


.el.pic > img,
.el.pic > video {
  position: absolute;
  max-width: none;
  display: block;
  pointer-events: none;
}

.el > .bx, .el > .bd {
  position: absolute;
  inset: 0;
}

.el > .sv {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.tx {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1.2;
  font-size: 36px;
}

.tx.nw { white-space: pre; }

.tx p {
  margin: 0;
  line-height: inherit;
}

/* başlık vurgusu: tek parça sarı şerit, sağ ucu D */
.tx .hl {
  background: linear-gradient(100deg, #ffe271 0%, #fece1f 42%, #f8bb0e 100%);
  border-radius: 0 .62em .62em 0;
  padding: .02em .5em .05em .16em;
  margin: 0 -.5em 0 -.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 0 .16em .55em -.18em rgba(214, 154, 0, .5), inset 0 -.06em 0 rgba(160, 110, 0, .12);
}

.el > .bx.hlbox {
  background: linear-gradient(100deg, #ffe271 0%, #fece1f 42%, #f8bb0e 100%);
  box-shadow: 0 10px 26px -10px rgba(214, 154, 0, .55), inset 0 -4px 0 rgba(160, 110, 0, .12);
}

/* "01" gibi numaralar: D biçimli rozet */
.tx .hl.num {
  display: inline-block;
  line-height: 1.12;
  padding: .04em .26em .02em .08em;
  margin: 0 -.26em 0 -.08em;
  border-radius: 0 .58em .58em 0;
}

.tx .bu {
  display: inline-block;
  text-indent: 0;
}

/* --- D ekranı (hub) -------------------------------------------------- */
.hub-hit {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
  z-index: 50;
}

.hub-hit:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 6px;
}

.el.hub-glow {
  transition: filter .35s ease, translate .35s ease;
}

.hub-hover .el.hub-glow.on {
  filter: drop-shadow(0 18px 28px rgba(70, 67, 63, .22)) brightness(1.04);
  translate: 0 -6px;
}

.mini {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  pointer-events: none;
}

/* --- kontroller ---------------------------------------------------- */
#controls {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .8);
  z-index: 100;
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity .4s ease, translate .4s ease;
}

body.in-section #controls {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

/* bir süre hareket olmazsa çubuk çekilir; dokunma, fare ya da tuşla geri gelir */
body.in-section.idle #controls {
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
}

#controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}

#controls button:hover { background: rgba(163, 32, 55, .16); }
#controls button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }

#controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#btn-home { background: var(--yellow) !important; }
#btn-home svg { fill: var(--on-accent); stroke: none; }

#progress {
  min-width: 52px;
  padding: 0 10px 0 4px;
  font: 600 13px/1 'Aptos', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

#hint {
  position: fixed;
  left: 50%;
  top: max(20px, env(safe-area-inset-top));
  translate: -50% 0;
  font: 500 14px/1 'Aptos', system-ui, sans-serif;
  letter-spacing: .02em;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
  z-index: 90;
}

body.show-hint #hint { opacity: 1; }

#rotate {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  font: 500 14px/1.3 'Aptos', system-ui, sans-serif;
  color: var(--ink);
  z-index: 110;
}

#rotate svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}

#rotate span { flex: 1; }

#rotate button {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (orientation: portrait) and (max-width: 820px) {
  #rotate { display: flex; }
  body.rotate-dismissed #rotate { display: none; }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font: 16px system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .el.hub-glow, #controls, #hint { transition: none; }
}

[data-href] { cursor: pointer; }
.hub-hit:focus-visible, [data-href]:hover { filter: brightness(1.05); }

/* Sayfa içindeki dikdörtgen fotoğraflar: marka D'si biçiminde çerçeve (sol köşeler hafif,
   sağ kenar tam yarım daire), bordo ışık çizgisi ve yumuşak gölge. Görsele gömülü ince kenar
   çizgisi, hafif büyütmeyle kesimin dışında kalır. */
.el.pic.photo {
  border-radius: 22px 26% 26% 22px / 22px 50% 50% 22px;
  box-shadow: 0 28px 50px -24px rgba(60, 8, 20, .6);
  isolation: isolate;
}

.el.pic.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px #a32037, inset 0 0 0 5px rgba(255, 255, 255, .55);
  pointer-events: none;
}

.el.pic.photo > img {
  transform: scale(1.035);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) {
  .el.pic.photo:hover > img { transform: scale(1.08); }
}

/* film penceresi */
#film {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(20, 4, 9, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .25s ease;
}

#film.open { opacity: 1; }
#film[hidden] { display: none; }

.film-card {
  position: relative;
  width: min(1100px, 100%, calc((100vh - 64px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

#film.open .film-card { transform: none; }

.film-frame, .film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #a32037;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.film-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.film-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }




/* sahnenin yanlarında kalan boşluk: slaytın zemini, bulanık ve hafif koyu */
#backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #8e1730;
}

#backdrop i {
  position: absolute;
  inset: -60px;
  opacity: 0;
  filter: blur(40px);
  transition: opacity .7s ease;
}

/* sahne kenarı bulanık zemine yumuşakça karışır (yalnızca boşluk kalan yönde) */
body.lb-x #stage { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
body.lb-y #stage { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }

/* telefon ve tabletlerde (dokunmatik ya da dar ekran) kenar zemini ve yumuşatma kapalı:
   ilk sürümdeki düz görünüm korunur */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  #backdrop { display: none; }
  body.lb-x #stage, body.lb-y #stage { -webkit-mask-image: none; mask-image: none; }
}
