/* NeredeIzlesem — "Gişe" teması
 * Konsept: eski sinema gişesi. Sıcak siyah + film greni zemin, krem bilet
 * koçanı skorlar, afiş tipografisi (Bebas Neue), gişe fişi mono etiketler,
 * köşeli print-offset butonlar. Glow/gradient yok.
 * (ui-ux-pro-max: Vintage Analog Film stili + condensed display/mono istatistik)
 */
:root {
  --bg: #12100d;
  --bg2: #181510;
  --card: #1d1915;
  --card-hover: #262119;
  --border: #332c22;
  --border-strong: #4a4030;
  --text: #f0e9db;
  --muted: #a79b85;
  --gold: #f5c518;
  --gold-deep: #b8860b;
  --gold-text: #191100;
  --cream: #f2e8d3;
  --cream-ink: #221c12;
  --cream-muted: #6b5f4a;
  --good: #79c77e;
  --mid: #f5c518;
  --bad: #e05243;
  --radius: 8px;
  --radius-sm: 6px;
  --f-display: "Bebas Neue", "Archivo", sans-serif;
  --f-body: "Archivo", -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --tr: .18s ease;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* film greni — her şeyin üstünde çok hafif doku */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .035em;
}
h1 { font-size: 2rem; margin: 0 0 4px; }
h2 { font-size: 1.35rem; margin: 1.2em 0 .5em; }
.mono, .sub, .badge, .hint-label { font-family: var(--f-mono); }

/* ---- Üst çubuk ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-ic { width: 22px; height: 22px; color: var(--gold); }
.wordmark {
  font-family: var(--f-display);
  font-size: 1.45rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wordmark em { font-style: normal; color: var(--gold); }

.search-wrap { position: relative; flex: 1; max-width: 520px; }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
#search {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: .92rem;
  font-family: var(--f-body);
  outline: none;
  transition: border-color var(--tr);
}
#search::placeholder { color: var(--muted); }
#search:focus { border-color: var(--gold); }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
}
.search-results a {
  display: block;
  padding: 11px 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  font-size: .9rem;
  font-weight: 500;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover, .search-results a.active { background: var(--card-hover); }
.search-results .sub { color: var(--muted); font-size: .72rem; letter-spacing: .02em; }

/* ---- Genel ---- */
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 20px; }
.hidden { display: none !important; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.btn:hover { border-color: var(--gold-deep); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-accent {
  background: var(--gold);
  color: var(--gold-text);
  border-color: var(--gold);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}
.btn-accent:hover { background: #ffd63a; border-color: #ffd63a; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-size: .85rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 8px 0 4px; }
a { color: var(--gold); }

/* ---- Hero + bilet koçanı istatistikler ---- */
.hero { margin: 8px 0 26px; }
.marquee {
  height: 12px;
  margin-bottom: 18px;
  background-image: radial-gradient(circle 3.5px, var(--gold) 45%, rgba(245, 197, 24, .15) 55%, transparent 60%);
  background-size: 26px 12px;
  background-repeat: repeat-x;
  background-position: left center;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; margin-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 640px; margin: 0 0 22px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-tile {
  --punch: var(--bg);
  position: relative;
  background: var(--cream);
  color: var(--cream-ink);
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  min-width: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
  transition: transform var(--tr);
}
.stat-tile:nth-child(1) { transform: rotate(-1.2deg); }
.stat-tile:nth-child(2) { transform: rotate(.8deg); }
.stat-tile:nth-child(3) { transform: rotate(-.5deg); }
.stat-tile:hover { transform: rotate(0); }
/* bilet zımba delikleri */
.stat-tile::before, .stat-tile::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--punch);
  transform: translateY(-50%);
}
.stat-tile::before { left: -7px; }
.stat-tile::after { right: -7px; }
.stat-tile b {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat-tile span {
  font-family: var(--f-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cream-muted);
}

/* ---- Harita ---- */
#map {
  height: 440px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  margin-bottom: 24px;
}
.leaflet-container { background: #171410; font-family: var(--f-body); }
.dark-tiles { filter: invert(1) hue-rotate(185deg) sepia(.45) saturate(.35) brightness(.8) contrast(.95); }
.marker-badge {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 4px;
  background: var(--cream);
  border: 2px solid var(--gold-deep);
  color: var(--cream-ink);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .74rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.marker-badge.none { background: var(--card); border-color: var(--border-strong); color: var(--muted); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--cream); color: var(--cream-ink); border-radius: var(--radius-sm); }
.leaflet-popup-content a { color: #7a5a00; font-weight: 700; text-decoration: none; }
.popup-sub { color: var(--cream-muted); font-size: .78rem; font-family: var(--f-mono); }

/* ---- Araç çubuğu + çipler ---- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar-right { margin-left: auto; font-size: .72rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chip {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}
.chip:hover { color: var(--text); border-color: var(--gold-deep); }
.chip.active { background: var(--gold); color: var(--gold-text); border-color: var(--gold); font-weight: 600; }

/* ---- Sinema kartları ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--tr), background var(--tr);
}
.card:hover { background: var(--card-hover); border-left-color: var(--gold); }
.card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card .name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: .7rem; letter-spacing: .02em; margin-top: 4px; text-transform: uppercase; }
.badges { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .62rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge.format { border-color: var(--gold-deep); color: var(--gold); background: rgba(245, 197, 24, .07); }

/* ---- Bilet koçanı skorlar ---- */
.score-pill {
  --punch: var(--card);
  position: relative;
  min-width: 56px;
  text-align: center;
  padding: 5px 10px 5px 14px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--cream-ink);
  flex: none;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.score-pill::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px; bottom: 4px;
  border-left: 1px dashed rgba(34, 28, 18, .35);
}
.score-pill::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--pill-c, var(--cream-muted));
}
.score-pill { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em; }
.score-pill small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cream-muted); }
.score-pill.s-good { --pill-c: var(--good); }
.score-pill.s-mid { --pill-c: var(--mid); }
.score-pill.s-bad { --pill-c: var(--bad); }
.score-pill.s-none { background: var(--bg2); color: var(--muted); box-shadow: none; border: 1px dashed var(--border-strong); --pill-c: transparent; }
/* metin içi skor renkleri (yorum başlıkları, çubuk uçları) */
span.s-good, b.s-good { color: var(--good); }
span.s-mid, b.s-mid { color: var(--mid); }
span.s-bad, b.s-bad { color: var(--bad); }
span.s-none, b.s-none { color: var(--muted); }

/* ---- Sinema detay ---- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .ic { width: 12px; height: 12px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; margin-top: 16px; }
.hall-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  transition: background var(--tr), border-color var(--tr);
}
.hall-card:hover { background: var(--card-hover); border-color: var(--gold-deep); }
.hall-card .hn { display: flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.hall-card .hn .ic { width: 12px; height: 12px; color: var(--gold); }
.hall-card .hc { color: var(--muted); font-size: .62rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* ---- Salon detay: film karesi çubuklar ---- */
.stats-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.stats-box h2 { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: 190px 1fr 44px; align-items: center; gap: 12px; margin: 10px 0; font-size: .88rem; }
.stat-row > b { font-family: var(--f-mono); font-size: .8rem; text-align: right; }
.bar {
  height: 12px;
  background: var(--bg2);
  overflow: hidden;
  /* 5 film karesi segment */
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%), linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%);
}
.bar i { display: block; height: 100%; }
.b-good { background: var(--good); }
.b-mid { background: var(--mid); }
.b-bad { background: var(--bad); }

/* ---- Puanlama formu ---- */
.review-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.review-form h2 { margin-top: 0; }
.q-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.q-row:last-of-type { border-bottom: none; }
.q-label { font-size: .9rem; font-weight: 500; }
.q-label small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.seg { display: flex; gap: 5px; }
.seg button {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.seg button:hover { border-color: var(--gold); color: var(--text); }
.seg button.sel { background: var(--gold); color: var(--gold-text); border-color: var(--gold); box-shadow: 2px 2px 0 rgba(0, 0, 0, .4); }
.stars { display: flex; gap: 2px; }
.stars button {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  padding: 6px;
  color: var(--border-strong);
  transition: color var(--tr), transform var(--tr);
}
.stars button .ic { width: 100%; height: 100%; }
.stars button:hover { transform: scale(1.1); }
.stars button.sel { color: var(--gold); }
.review-form textarea, .review-form input[type="text"] {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--f-body);
  margin-top: 8px;
  transition: border-color var(--tr);
}
.review-form textarea:focus, .review-form input[type="text"]:focus { outline: none; border-color: var(--gold); }
.review-form textarea { min-height: 84px; resize: vertical; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.form-foot input { max-width: 220px; margin-top: 0; }

/* ---- Yorumlar ---- */
.review {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  margin-bottom: 12px;
}
.review .head { display: flex; justify-content: space-between; gap: 10px; font-size: .72rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; flex-wrap: wrap; }
.review .head b { color: var(--text); }
.review .head .ic { width: 11px; height: 11px; vertical-align: -1px; }
.review .txt { font-size: .92rem; white-space: pre-wrap; }
.review .mini { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.review .mini span { font-size: .6rem; font-family: var(--f-mono); padding: 3px 8px; border-radius: 4px; background: var(--bg2); border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* ---- Skeleton yükleme ---- */
@keyframes sk-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.sk { background: var(--card); border-radius: var(--radius-sm); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk-title { height: 44px; width: min(420px, 70%); margin-bottom: 10px; }
.sk-line { height: 16px; width: min(560px, 90%); border-radius: 4px; margin-bottom: 20px; }
.sk-map { height: 440px; margin-bottom: 22px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sk-card { height: 104px; }
.sk-review { height: 84px; margin-bottom: 12px; }

/* ---- Bildirim (toast) — bilet ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px) rotate(-1deg);
  background: var(--cream);
  color: var(--cream-ink);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: .8rem;
  font-family: var(--f-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr), transform var(--tr);
  z-index: 4500;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }

/* ---- Modallar ---- */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 8, 5, .78);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
}
.modal-box h2 { margin: 0 0 12px; }
.modal-box label { display: block; font-size: .72rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 0; }
.modal-box input, .modal-box select {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 10px 13px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--f-body);
  transition: border-color var(--tr);
}
.modal-box input:focus, .modal-box select:focus { outline: none; border-color: var(--gold); }
.modal-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#mc-map { height: 240px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-top: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.footer { text-align: center; padding: 22px 20px; color: var(--muted); font-size: .68rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; border-top: 1px dashed var(--border-strong); margin-top: 36px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.loading { text-align: center; color: var(--muted); padding: 40px 10px; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  #map, .sk-map { height: 320px; }
  .stat-row { grid-template-columns: 116px 1fr 40px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats-row .stat-tile:last-child { grid-column: 1 / -1; }
  main { padding: 16px 14px; }
}
