/* =========================================================
   Sergi odası: gri galeri duvarı, büyük tabela yazısı,
   eserlerin yanında etiket, altında katalog dizini.
   ========================================================= */

/* ---- Yazı tipleri (kendi sunucumuzdan) ---- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display/big-shoulders-display-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Renkler ---- */
:root {
  --wall: #e9ebee;      /* galeri duvarı */
  --paper: #f7f8f9;     /* etiket kartı, form alanları */
  --ink: #16191d;       /* yazı */
  --muted: #5e6670;     /* ikincil yazı */
  --line: #cdd2d8;      /* ayırıcılar */
  --accent: #1f4fe0;    /* bağlantılar, odak */
  --lamp: #19a05a;      /* "açık" lambası */
  --private: #8a5200;
  --private-bg: #f3e6cf;
  --danger: #b3261e;
  --danger-bg: #f9dedc;
  --ok-bg: #dfe8fb;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --frame: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #121417;
    --paper: #1a1d21;
    --ink: #e6e8eb;
    --muted: #98a0aa;
    --line: #2c3137;
    --accent: #8aa6ff;
    --lamp: #3fd283;
    --private: #e3b46a;
    --private-bg: #3a2c14;
    --danger: #f2b8b5;
    --danger-bg: #3b1d1b;
    --ok-bg: #1d2740;
  }
}

/* ---- Temel ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
code { font-size: .9em; background: var(--paper); padding: 1px 6px; border-radius: 4px; }

.frame { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Büyük tabela yazısı: sitenin tek gösterişli öğesi */
.wall-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 184px);
  line-height: .84;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.wall-title.small { font-size: clamp(48px, 8vw, 96px); line-height: .9; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 34em; margin-top: clamp(20px, 2.5vw, 32px); }

/* ---- Yönetici şeridi ---- */
.adminbar {
  background: var(--ink); color: var(--wall);
  font-size: 14px; padding: 8px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
}
.adminbar nav { display: flex; gap: 20px; align-items: center; }
.adminbar a, .adminbar button { color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; }
.adminbar a:hover, .adminbar button:hover { text-decoration-color: currentColor; }
.adminbar form { margin: 0; }

/* ---- Üst kısım ---- */
.top-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  min-height: 72px;
}
.top-name { font-family: var(--display); font-weight: 800; font-size: 26px; text-decoration: none; letter-spacing: .01em; }
.top-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.status { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.status-since { color: var(--muted); }
.lamp {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lamp);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lamp) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .lamp { animation: lamp 2.4s ease-out infinite; }
  @keyframes lamp {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lamp) 55%, transparent); }
    70%, 100% { box-shadow: 0 0 0 8px transparent; }
  }
}

/* ---- Giriş bölümü ---- */
.intro { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }

/* ---- Öne çıkanlar: duvardaki eser + etiketi ---- */
.exhibits { display: grid; gap: clamp(56px, 8vw, 112px); padding-bottom: clamp(64px, 9vw, 128px); }
.exhibit {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
}
.exhibit-media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--line); border-radius: 2px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(20, 24, 30, .45);
}
.exhibit-media img { width: 100%; height: 100%; object-fit: cover; }
.initial, .entry-thumb > span {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--display); font-weight: 800; color: var(--muted); text-transform: uppercase;
}
.initial { font-size: clamp(96px, 14vw, 200px); opacity: .5; }

.placard {
  background: var(--paper);
  padding: 24px 24px 28px;
  border-radius: 2px;
}
.placard-kind { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.placard-title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: .95; margin: 10px 0 14px; }
.placard-title a { text-decoration: none; }
.placard-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.placard-text { color: var(--ink); }
.placard-tech { color: var(--muted); font-size: 15px; margin-top: 12px; }
.placard .actions { margin-top: 22px; }
.exhibit.is-private .placard { outline: 1.5px dashed var(--private); outline-offset: -1.5px; }

.flag-private {
  font-size: 12px; font-weight: 600; color: var(--private); background: var(--private-bg);
  padding: 1px 8px; border-radius: 999px; font-family: var(--text); vertical-align: middle;
}

/* ---- Katalog dizini ---- */
.catalogue { padding-bottom: clamp(64px, 9vw, 128px); }
.catalogue-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; margin-bottom: 20px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; }
.rooms { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rooms a { text-decoration: none; color: var(--muted); }
.rooms a:hover { color: var(--ink); }
.rooms a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.rooms sup { font-size: 11px; margin-left: 1px; }

.entries { list-style: none; margin: 0 -12px; padding: 0; border-bottom: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.2fr) 56px;
  gap: 24px; align-items: center;
  padding: 14px 12px;
  border-top: 1px solid var(--line); text-decoration: none;
}
.entry:hover { background: var(--paper); }
.entry:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; }
.entry-thumb { width: 88px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); border-radius: 2px; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-thumb > span { font-size: 28px; }
.entry-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; text-underline-offset: 4px; }
.entry-kind, .entry-tech { color: var(--muted); font-size: 15px; }
.entry-tech { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-year { color: var(--muted); font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.entry.is-private .entry-thumb { outline: 1.5px dashed var(--private); outline-offset: 2px; }

.empty { padding: 56px 0; border-top: 1px solid var(--line); color: var(--muted); }
.empty .btn { margin-top: 20px; }

/* ---- Çalışma sayfası ---- */
.work { padding-bottom: clamp(64px, 9vw, 128px); }
.crumb { display: flex; gap: 10px; font-size: 15px; color: var(--muted); padding-top: 32px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.work-head { padding: clamp(32px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.private-note { margin-top: 18px; display: inline-block; font-size: 15px; color: var(--private); background: var(--private-bg); padding: 6px 12px; border-radius: 4px; }
.work-cover { margin: 0 auto clamp(40px, 6vw, 72px); }
.work-cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: 2px; box-shadow: 0 24px 48px -32px rgba(20, 24, 30, .45); }
.work-body { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.work-placard { position: sticky; top: 24px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.work-placard .actions { margin-top: 24px; flex-direction: column; align-items: stretch; }
.placard-sub { font-size: 15px; font-weight: 600; margin: 28px 0 10px; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.downloads a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--wall); border-radius: 4px; text-decoration: none; font-size: 15px; }
.downloads a:hover { outline: 1.5px solid var(--ink); }
.dl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-size { color: var(--muted); flex-shrink: 0; }

.prose { max-width: 38em; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin-top: 1.6em; }
.prose h1 { font-size: 44px; } .prose h2 { font-size: 36px; } .prose h3 { font-size: 28px; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { border-radius: 2px; }
.prose pre { background: var(--paper); padding: 16px; border-radius: 4px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--line); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.gallery a:hover img { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- Oyun sahnesi ---- */
.stage { padding: 24px 0 64px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); text-decoration: underline; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; border-radius: 2px; }

/* ---- Düz sayfalar ---- */
.page { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 128px); }
.page .prose { margin-top: 32px; }
.page .actions { margin-top: 32px; }
.login { max-width: calc(440px + 2 * var(--gutter)); }
.login .form { margin-top: 32px; }

/* ---- Düğmeler ---- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 6px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font: 600 15px/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--wall); }
.btn.primary { background: var(--ink); color: var(--wall); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.quiet { border-color: transparent; color: var(--muted); }
.btn.quiet:hover { background: transparent; color: var(--ink); text-decoration: underline; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--wall); }
.btn.small { padding: 6px 12px; font-size: 14px; }

/* ---- Formlar ---- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink);
  background: var(--wall); border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
.form textarea { resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 14.5px; line-height: 1.55; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.notice { padding: 12px 16px; border-radius: 6px; background: var(--paper); font-size: 15px; }
.notice.ok { background: var(--ok-bg); }
.notice.error { background: var(--danger-bg); color: var(--danger); }

/* ---- Yönetim paneli ---- */
.admin { padding-top: 32px; padding-bottom: 96px; }
.admin h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: .95; }
.admin h2 { font-family: var(--display); font-weight: 800; font-size: 34px; margin: 48px 0 12px; }
.admin > .notice { margin-top: 20px; }
.admin-note { color: var(--muted); margin-top: 12px; max-width: 40em; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-top: 8px; }
.panel { background: var(--paper); border-radius: 4px; padding: 24px; margin-top: 16px; }
.panel.inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel.inline form { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 28px 0 12px; }
.stats div { background: var(--paper); padding: 14px 16px; display: grid; border-radius: 4px; }
.stats strong { font-family: var(--display); font-size: 36px; line-height: 1; }
.stats span { color: var(--muted); font-size: 14px; }

.backup-status { font-size: 15px; padding: 12px 16px; border-radius: 6px; margin-bottom: 28px; }
.backup-status.ok { background: var(--ok-bg); }
.backup-status.warn { background: var(--private-bg); color: var(--private); }
.backup-status.error { background: var(--danger-bg); color: var(--danger); }

.admin-list, .file-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.admin-list li, .file-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-list .thumb { width: 80px; aspect-ratio: 16 / 10; flex-shrink: 0; overflow: hidden; background: var(--line); border-radius: 2px; display: grid; place-items: center; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--muted); }
.admin-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-list .info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.admin-list .info > a { text-decoration: none; font-size: 18px; }
.admin-list .info > a:hover { text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.tag { font-size: 13px; color: var(--muted); }
.tag.private { color: var(--private); font-weight: 600; }
.tag.accent { color: var(--accent); font-weight: 600; }
.file-list { margin-top: 16px; }
.file-list img, .file-icon { width: 64px; aspect-ratio: 16 / 10; object-fit: cover; flex-shrink: 0; background: var(--line); border-radius: 2px; display: grid; place-items: center; color: var(--muted); }
.file-list li > div { flex: 1; min-width: 0; display: grid; }
.file-list strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list form { margin: 0; }
.danger-zone { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- Alt kısım ---- */
.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 32px; align-items: center; padding-block: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Tablet ve telefon ---- */
@media (max-width: 900px) {
  .top-inner { grid-template-columns: 1fr auto; gap: 8px 20px; padding-block: 14px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; }
  .exhibit { grid-template-columns: 1fr; gap: 0; }
  .exhibit .placard { margin: -40px 16px 0; position: relative; }
  .work-body { grid-template-columns: 1fr; }
  .work-placard { position: static; }
  .work-placard .actions { flex-direction: row; }
  .entry { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 16px; }
  .entry-thumb { width: 72px; grid-row: span 2; }
  .entry-kind { grid-column: 2; grid-row: 2; font-size: 14px; }
  .entry-tech { display: none; }
  .entry-year { grid-column: 3; grid-row: 1; }
  .entry-title { font-size: 24px; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .status-since { display: none; }
  .top-nav { gap: 6px 18px; font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .exhibit .placard { margin: -24px 8px 0; padding: 20px; }
  .admin-list .btn { display: none; }
}
