/* Renkler Caracals uygulamasının tasarım token'larından (globals.css) alındı.
   Uygulama yalnızca koyu; açık tema bu sitede gündüz modu için eklendi. */
:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --line: #e2dfd9;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --brand: #d91e28;
  --brand-deep: #8b0000;
  --brand-dark: #6e0006;
  --brand-hi: #ff4550;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #161616;
  --line: #262626;
  --fg: #f3f2ef;
  --muted: #9a9a9a;
  --shadow: none;
}

* { box-sizing: border-box; }
html { color-scheme: light dark; background: var(--bg); }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--fg);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

/* Üst bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(16px, calc((100vw - 880px) / 2 + 16px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .08em;
}
.brand img { border-radius: 10px; display: block; background: #000; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--fg); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

main, footer { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Başlık */
.hero { padding: 40px 0 24px; }
.eyebrow {
  margin: 0 0 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 9vw, 68px); line-height: 1; letter-spacing: .01em; text-transform: uppercase;
}
h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

/* Kartlar */
.grid { list-style: none; margin: 0; padding: 0 0 40px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.row { flex: 1; display: grid; grid-template-columns: 104px 1fr; }
.row.no-badge { grid-template-columns: 1fr; }
.row.no-badge .body { border-left: 0; }
.photo { height: 120px; background: var(--line); border-bottom: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.ph {
  display: grid; place-items: center;
  background: radial-gradient(120% 140% at 50% 0%, #2b0a0d 0%, #0a0a0a 70%);
}
.photo.ph img { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; opacity: .95; }
.badge {
  position: relative; display: grid; place-items: center; padding: 14px 8px; text-align: center;
  color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 40px; line-height: 1; letter-spacing: .01em;
  background-image: linear-gradient(180deg, var(--brand), var(--brand-dark));
}
.badge.small { font-size: 22px; line-height: 1.05; }
.body { padding: 16px 18px; border-left: 2px dashed var(--line); min-width: 0; align-self: center; }
.body h2 {
  margin: 0 0 4px; font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase;
}
.desc { margin: 0; }
.note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.until {
  display: inline-block; margin-top: 10px; padding: 2px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand); border: 1px solid var(--brand); border-radius: 20px;
}

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
footer { padding-top: 8px; padding-bottom: 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer p { margin: 14px 0 0; }

@media (max-width: 420px) {
  .row { grid-template-columns: 92px 1fr; }
  .row.no-badge { grid-template-columns: 1fr; }
  .photo { height: 110px; }
  .badge { font-size: 34px; }
  .badge.small { font-size: 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, border-color .15s ease; }
  .card:hover { transform: translateY(-2px); border-color: var(--brand); }
}
