/* ─── Anıla · Yönetim paneli ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg: #1a1512;
  --panel: #221c17;
  --panel-2: #2a231d;
  --border: rgba(233, 207, 158, 0.14);
  --ink: #f4ede2;
  --ink-dim: #b5a891;
  --gold: #c9a468;
  --gold-light: #e9cf9e;
  --danger: #d98080;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }

/* ─── Üst menü ─── */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
  background: rgba(20, 16, 13, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 22px; color: var(--gold-light); text-decoration: none;
}
.brand-mark { color: var(--gold); font-style: normal; }
.brand-sub { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--gold-light); }
.inline-form { display: inline; }
.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink-dim);
}
.link-btn:hover { color: var(--gold-light); }

/* ─── Yerleşim ─── */
.container { max-width: 1080px; margin: 0 auto; padding: 34px 24px 80px; }
.container.narrow { max-width: 660px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 26px;
}
.page-head h1 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 34px; color: var(--gold-light); }
.page-desc { color: var(--ink-dim); font-weight: 300; margin: -14px 0 22px; }
.crumb { font-size: 13px; color: var(--ink-dim); margin-bottom: 6px; }
.crumb a { text-decoration: none; }
.sub-date { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.section-title {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 24px; color: var(--gold-light);
  margin: 34px 0 16px;
}
.count-badge {
  font-family: var(--sans); font-style: normal; font-size: 13px;
  background: rgba(201, 164, 104, 0.15); color: var(--gold);
  padding: 3px 11px; border-radius: 100px; vertical-align: middle; margin-left: 6px;
}

/* ─── Butonlar ─── */
.btn {
  display: inline-block; padding: 11px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  border-radius: 100px; text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn.sm { padding: 7px 15px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn.gold {
  background: linear-gradient(135deg, #ecd3a2, #c9a468);
  color: #241a10;
  box-shadow: 0 5px 20px rgba(201, 164, 104, 0.25);
}
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(201, 164, 104, 0.35); }
.btn.ghost {
  background: transparent; color: var(--gold-light);
  border: 1px solid rgba(233, 207, 158, 0.35);
}
.btn.ghost:hover { background: rgba(201, 164, 104, 0.1); }
.btn.danger { background: rgba(217, 128, 128, 0.12); color: var(--danger); border: 1px solid rgba(217, 128, 128, 0.35); }
.btn.danger:hover { background: rgba(217, 128, 128, 0.2); }

/* ─── Paneller / formlar ─── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 22px;
}
.panel-title { font-size: 16px; font-weight: 500; margin-bottom: 16px; color: var(--gold-light); }

.field { display: block; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-label {
  display: block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 104, 0.1);
}
.field select option { background: var(--panel-2); }
.hint { display: block; font-size: 12px; color: var(--ink-dim); margin-top: 6px; font-weight: 300; }

.slug-row { display: flex; align-items: center; }
.slug-prefix {
  padding: 12px 10px 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border); border-right: none;
  border-radius: 12px 0 0 12px;
  color: var(--ink-dim); font-size: 15px;
}
.slug-row input { border-radius: 0 12px 12px 0; }

.check-field {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 18px; cursor: pointer;
  font-size: 14.5px; line-height: 1.5;
}
.check-field input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; }
.check-field small { display: block; color: var(--ink-dim); font-weight: 300; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert.error { background: rgba(217, 128, 128, 0.12); color: var(--danger); border: 1px solid rgba(217, 128, 128, 0.3); }
.alert.success { background: rgba(140, 195, 143, 0.12); color: #a5d6a7; border: 1px solid rgba(140, 195, 143, 0.3); }

.danger-zone { border-color: rgba(217, 128, 128, 0.3); }
.danger-zone h3 { color: var(--danger); font-size: 15px; margin-bottom: 6px; }
.danger-zone p { color: var(--ink-dim); font-size: 13.5px; margin-bottom: 14px; font-weight: 300; }

/* ─── Giriş sayfası ─── */
.login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -10%, #2a201a 0%, transparent 60%),
    var(--bg);
  padding: 24px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px;
  text-align: center;
}
.login-logo { font-size: 30px; color: var(--gold); }
.login-card h1 { font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--gold-light); margin-top: 6px; }
.login-sub { color: var(--ink-dim); font-size: 13.5px; margin: 4px 0 26px; font-weight: 300; }
.login-card form { text-align: left; }

/* ─── Etkinlik kartları ─── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event-card {
  display: block; text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.event-card:hover { transform: translateY(-3px); border-color: rgba(233, 207, 158, 0.4); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.ec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(201, 164, 104, 0.15); color: var(--gold);
  padding: 4px 12px; border-radius: 100px;
}
.ec-date { font-size: 12.5px; color: var(--ink-dim); }
.ec-names { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 26px; color: var(--ink); }
.ec-slug { font-size: 13px; color: var(--ink-dim); margin-top: 3px; }
.ec-stats { display: flex; gap: 14px; margin-top: 16px; font-size: 13.5px; color: var(--ink-dim); flex-wrap: wrap; }

/* ─── İstatistikler ─── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px 14px;
  text-align: center;
}
.stat b { display: block; font-size: 22px; font-weight: 600; color: var(--gold-light); }
.stat span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }

.link-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.link-info { min-width: 0; }
.link-info code {
  display: block; font-size: 14px; color: var(--gold-light);
  margin-top: 4px; word-break: break-all;
  font-family: ui-monospace, Menlo, monospace;
}
.link-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Misafir kartları ─── */
.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.guest-card {
  display: block; text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.guest-card:hover { transform: translateY(-3px); border-color: rgba(233, 207, 158, 0.4); box-shadow: 0 14px 36px rgba(0,0,0,0.35); }
.gc-collage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; height: 130px; background: var(--panel-2);
}
.gc-collage:has(.gc-cell:only-child) { grid-template-columns: 1fr; }
.gc-cell { overflow: hidden; }
.gc-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-cell.video, .gc-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--ink-dim); background: var(--panel-2);
  width: 100%; height: 100%;
}
.gc-empty { grid-column: 1 / -1; }
.gc-body { padding: 14px 16px 16px; }
.gc-body h3 { font-size: 16.5px; font-weight: 500; color: var(--ink); }
.gc-meta { font-size: 12.5px; color: var(--ink-dim); margin-top: 4px; }
.gc-note {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--gold-light);
  margin-top: 9px; line-height: 1.45;
}

/* ─── Notlar ─── */
.note-list { display: grid; gap: 12px; margin-bottom: 8px; }
.note-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 18px 20px;
}
.note-card p { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink); }
.note-card footer { font-size: 12.5px; color: var(--ink-dim); margin-top: 8px; }

/* ─── Medya ızgarası ─── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s;
}
.media-item:hover { transform: scale(1.025); border-color: rgba(233, 207, 158, 0.45); }
.media-item img, .media-item video {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #17120e;
}
.media-fallback {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-size: 30px; color: var(--ink-dim); padding: 10px; text-align: center;
}
.media-fallback span { font-size: 11px; word-break: break-all; }
.media-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; background: rgba(0,0,0,0.6); color: #fff;
  padding: 3px 9px; border-radius: 100px;
}
.media-item figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 11px;
  font-size: 12px; color: var(--ink-dim);
}
.mi-dl { text-decoration: none; font-size: 15px; padding: 2px 6px; border-radius: 8px; }
.mi-dl:hover { background: rgba(201, 164, 104, 0.15); }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 7, 5, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lb-content { max-width: 92vw; max-height: 86vh; }
.lb-content img, .lb-content video {
  max-width: 92vw; max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-close, .lb-nav {
  position: fixed; z-index: 101;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(233, 207, 158, 0.25);
  color: var(--ink); cursor: pointer;
  border-radius: 100px;
  transition: background 0.15s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(201, 164, 104, 0.22); }
.lb-close { top: 18px; right: 18px; width: 42px; height: 42px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; line-height: 1; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-download { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 101; }

/* ─── Tablo ─── */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; padding: 10px 12px;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); border-bottom: 1px solid var(--border);
}
.table td { padding: 12px; border-bottom: 1px solid rgba(233, 207, 158, 0.07); }
.ta-right { text-align: right; }

/* ─── Boş durum ─── */
.empty-state {
  text-align: center; padding: 70px 24px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 20px;
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h2 { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold-light); }
.empty-state p { color: var(--ink-dim); margin: 10px 0 22px; font-weight: 300; }

@media (max-width: 640px) {
  .topnav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .container { padding: 24px 16px 60px; }
  .field-row { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 28px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
