/* ==========================================================
   ANATOMY OF INDIFFERENCE — style.css
   Mobile-first. Museum / literary catalogue aesthetic.
   ========================================================== */

:root {
  --cream:        #1c1d20;   /* sayfa zemini — antrasit gri */
  --cream-deep:   #2a2c31;   /* kutu/kart/panel yüzeyi — antrasitten bir ton açık */
  --ink:          #f3efe6;   /* ana metin — sıcak fildişi (koyu zeminde) */
  --ink-soft:     #a8a39a;   /* ikincil metin — soluk gri */
  --oxblood:      #b3473b;   /* vurgu — parlatılmış oksblood */
  --oxblood-soft: #cc6252;   /* vurgu (hover) — daha açık */
  --brass:        #e3ba66;   /* canlı altın — kontrast tonu (etiketler, vurgular) */
  --line:         rgba(243,239,230,0.14);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --header-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body { min-height: 100vh; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------
   1. SABİT HEADER
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 12px;
  text-align: center;
}

.site-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(15px, 4.8vw, 22px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------------------------------------------------------
   2. BANNER (slayt) — sabit kalır, içerik üzerine kayar
   Banner "position: fixed" ile viewport'a sabitlenir.
   .banner-spacer aynı yüksekliği normal akışta rezerve eder,
   böylece content-sheet ondan hemen sonra başlar ve
   yukarı kaydıkça (opak arkaplanıyla) sabit banner'ın
   üzerine doğru kayar.
   --------------------------------------------------------- */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 65vh;
  min-height: 416px;
  overflow: hidden;
  background: var(--ink);
  z-index: 1;
}

.banner-spacer {
  width: 100%;
  height: 65vh;
  min-height: 416px;
}

.banner__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.banner__slide.is-active { opacity: 1; }

.banner__slide img,
.banner__slide .banner__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2a2a, #111);
  color: rgba(247,244,237,0.5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  padding: 20px;
}

.banner::after {
  /* content-sheet ile kaynaşma için hafif gölge geçişi */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.35));
  pointer-events: none;
}

.banner__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.banner__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247,244,237,0.4);
  transition: background 200ms ease, transform 200ms ease;
}

.banner__dots span.is-active {
  background: var(--ink);
  transform: scale(1.3);
}

/* ---------------------------------------------------------
   İçerik "sayfası" — banner'ın üzerine kayan katman
   --------------------------------------------------------- */
.content-sheet {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  background: var(--cream);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 30px rgba(0,0,0,0.12);
  padding-top: 34px;
}

/* ---------------------------------------------------------
   3. ESER AÇIKLAMASI
   --------------------------------------------------------- */
.description {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 28px 8px;
  text-align: center;
}

.description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 400;
}

.description__question {
  margin-top: 16px !important;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px !important;
  color: var(--ink) !important;
}

/* ---------------------------------------------------------
   4. VURUCU CÜMLE
   --------------------------------------------------------- */
.statement {
  max-width: 560px;
  margin: 44px auto;
  padding: 0 26px;
  text-align: center;
  position: relative;
}

.statement::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--oxblood);
  margin: 0 auto 22px;
}

.statement__text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.3;
  color: var(--ink);
}

/* ---------------------------------------------------------
   5. TOPLUMSAL SORUN KUTULARI — 4 x 3
   --------------------------------------------------------- */
.issues {
  padding: 30px 18px 10px;
}

.issues__label {
  text-align: center;
  margin: 0 0 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.issues__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.issue-box {
  aspect-ratio: 2 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.issue-box:hover {
  background: var(--oxblood-soft);
  border-color: var(--oxblood-soft);
  box-shadow: 0 6px 14px rgba(110,42,42,0.18);
}

.issue-box:hover .issue-box__text {
  color: var(--ink);
}

.issue-box:active {
  transform: scale(0.94);
  background: var(--oxblood);
  border-color: var(--oxblood);
}

.issue-box:active .issue-box__text {
  color: var(--ink);
}

.issue-box__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: none;
  transition: color 200ms ease;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ---------------------------------------------------------
   6. ÇAĞRI METNİ
   --------------------------------------------------------- */
.callout {
  max-width: 480px;
  margin: 48px auto 10px;
  padding: 0 30px;
  text-align: center;
}

.callout p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   7. İNTERAKTİF DUVAR
   --------------------------------------------------------- */
.wall-section {
  padding: 28px 0 0;
}

.wall-section__label {
  text-align: center;
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.wall {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  touch-action: manipulation;
  /* Kendi tuğla duvar görselini "wall-texture.jpg" adıyla index.html
     ile aynı klasöre koy — otomatik olarak döşenerek (tile) kullanılır.
     Çözünürlük / oran önerisi için script.js'teki not veya
     sohbetteki açıklamaya bak. */
  background-color: #8a4b3d;
  background-image: url("wall-texture.jpg");
  background-repeat: repeat;
  background-size: 420px auto;
  box-shadow: inset 0 8px 22px rgba(0,0,0,0.35);
  transition: min-height 320ms ease;
}

.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05) 18%, rgba(0,0,0,0.05) 82%, rgba(0,0,0,0.3));
  pointer-events: none;
}

.wall__hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(247,244,237,0.75);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  text-align: center;
  padding: 0 30px;
  pointer-events: none;
  z-index: 1;
}

.postit {
  position: absolute;
  width: 110px;
  min-height: 100px;
  padding: 12px 10px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #2a2a2a;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.35);
  transform-origin: center;
  z-index: 2;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  animation: postit-drop 260ms ease;
}

.postit__text {
  flex: 1;
}

.postit__category {
  margin-top: 8px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(42,42,42,0.55);
  border-top: 1px solid rgba(42,42,42,0.18);
  padding-top: 5px;
}

.postit__delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.postit:hover .postit__delete,
.postit.show-delete .postit__delete {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@keyframes postit-drop {
  from { opacity: 0; transform: translateY(-14px) scale(0.9) rotate(var(--r, 0deg)); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); }
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer {
  padding: 40px 20px 34px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.6;
}

/* ---------------------------------------------------------
   POP-UP (tam ekran)
   --------------------------------------------------------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--cream);
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.popup.is-open { transform: translateY(0); }

.popup__inner {
  position: relative;
  min-height: 100%;
  padding: 26px 26px 60px;
}

.popup__close,
.popup__add {
  position: absolute;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup__close { left: 16px; }
.popup__add   { right: 16px; font-weight: 500; }

.popup__eyebrow {
  margin: 56px 0 4px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.popup__title {
  margin: 0 0 30px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
}

.popup__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.popup__links li {
  border-bottom: 1px solid var(--line);
}

.popup__links a {
  display: block;
  padding: 16px 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.5;
}

.popup__links a::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  color: var(--oxblood);
}

.popup__empty {
  text-align: center;
  color: var(--ink-soft);
  opacity: 0.6;
  font-size: 13px;
  margin-top: 30px;
}

.popup__form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup__form input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream-deep);
  color: var(--ink);
}

.popup__form-actions {
  display: flex;
  gap: 10px;
}

.popup__form-actions button {
  flex: 1;
  padding: 11px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--ink);
}

.popup__form-actions button[type="submit"] {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ink);
}

/* ---------------------------------------------------------
   POST-IT GİRİŞ KUTUSU
   --------------------------------------------------------- */
.note-editor {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(26,26,26,0.55);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.note-editor.is-open {
  opacity: 1;
  pointer-events: auto;
}

.note-editor__inner {
  width: 100%;
  background: var(--cream);
  border-radius: 18px 18px 0 0;
  padding: 22px 22px 30px;
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(.4,0,.2,1);
}

.note-editor.is-open .note-editor__inner {
  transform: translateY(0);
}

.note-editor__label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
}

.note-editor textarea {
  width: 100%;
  height: 90px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--cream-deep);
  color: var(--ink);
}

.note-editor__category {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a8a39a'><path d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23a8a39a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.note-editor__colors {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 4px;
}

.note-editor__colors span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.note-editor__colors span.is-selected {
  border-color: var(--ink);
}

.note-editor__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.note-editor__actions button {
  flex: 1;
  padding: 13px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--ink);
}

#noteSave {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ink);
}

/* ---------------------------------------------------------
   Küçük ekranlar (< 360px) için ince ayar
   --------------------------------------------------------- */
@media (max-width: 359px) {
  .issue-box__text { font-size: 10.5px; }
  .postit { width: 94px; min-height: 90px; font-size: 11px; }
}

/* ---------------------------------------------------------
   Tablet / masaüstünde ölçek (sergi hâlâ mobil odaklı ama
   bir tablet kioskta da düzgün görünsün diye)
   --------------------------------------------------------- */
@media (min-width: 640px) {
  .content-sheet { max-width: 640px; margin-left: auto; margin-right: auto; border-radius: 28px 28px 0 0; }
  .banner { max-width: 640px; left: 50%; right: auto; transform: translateX(-50%); }
  .banner-spacer { max-width: 640px; margin: 0 auto; }
}

/* Hareketi azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
  .banner__slide, .popup, .note-editor, .note-editor__inner, .postit {
    transition: none !important;
    animation: none !important;
  }
}
