/* Instagram hikâyesi — 9:16 (1080×1920) */

@page {
  size: 1080px 1920px;
  margin: 0;
}

:root {
  --ink: #fffdf8;
  --ink-soft: rgba(255, 253, 248, 0.78);
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #1a1714;
  color: var(--ink);
  font-family: var(--sans);
}

.screen-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.2rem 1.1rem 0.6rem;
}

.nav-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.screen-nav h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.screen-nav p {
  margin: 0 0 0.7rem;
  color: #c9bfb2;
  line-height: 1.45;
  font-size: 0.95rem;
}

.yazdir-btn,
.ust-sag {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.yazdir-btn {
  border: 1px solid #e8c27a;
  background: #e8c27a;
  color: #2c261f;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.yazdir-btn.geri {
  background: transparent;
  color: #e8c27a;
  border-color: #5a5148;
}

.yazdir-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.kayit-not {
  margin: 0 0 0.7rem;
  color: #e8c27a;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.kutu-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.4rem 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kutu-kart {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fffdf8;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, #2a2420) 0%, #2a2420 100%);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, #444);
}

.kutu-kart strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.kutu-kart span { color: #d8cfc2; font-size: 0.92rem; line-height: 1.4; }

.sahne {
  display: flex;
  justify-content: center;
  padding: 0.4rem 1rem 2rem;
}

.telefon {
  width: min(420px, calc(90vh * 9 / 16), 92vw);
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.story {
  position: absolute;
  inset: 0;
  background: #2c261f;
  color: var(--ink);
}

.story-bg {
  position: absolute;
  inset: 0;
}

.story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.38) 0%, transparent 22%, transparent 48%, rgba(20, 16, 12, 0.72) 78%, rgba(16, 13, 10, 0.92) 100%);
}

.barlar {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
}

.bar.gecti i { width: 100%; }
.bar.simdi i {
  width: var(--dolu, 0%);
  transition: width 80ms linear;
}

.story-ust,
.story-alt {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 22px;
}

.story-ust {
  top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.series {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.kod {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
}

.story-alt {
  bottom: 28px;
}

.tema-chip {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.story-alt h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(22px, 6.2vw, 34px);
  line-height: 1.2;
  margin: 0 0 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.anlam {
  margin: 0 0 14px;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 34ch;
}

.marka {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.7;
}

.bolge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  z-index: 4;
}

.bolge.sol { left: 0; }
.bolge.sag { right: 0; }

.tek-baski { display: none; }

@media print {
  html, body { background: #fff; }
  .screen-nav, .sahne { display: none !important; }
  .tek-baski {
    display: block;
  }
  .tek-baski .story {
    position: relative;
    width: 1080px;
    height: 1920px;
    break-after: page;
    page-break-after: always;
  }
  .tek-baski .story:last-child { break-after: auto; }
  .barlar, .bolge { display: none !important; }
}

@media (max-width: 720px) {
  .kutu-wrap { grid-template-columns: 1fr; }
}
