/* Düğüncübaşı Nostalji — sıcak nostaljik tema paleti + köy hero görseli */

:root {
  --primary: #9a3412;
  --primary-dark: #78350f;
  --primary-light: #d97706;
  --primary-soft: rgba(180, 83, 9, 0.12);
  --accent: #eab308;
  --accent-dark: #b45309;
  --accent-hover: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.14);
  --gradient-hero: linear-gradient(135deg, rgba(67, 20, 7, 0.86) 0%, rgba(120, 53, 15, 0.72) 55%, rgba(146, 64, 14, 0.82) 100%);
}

[data-theme="dark"] {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --primary-soft: rgba(245, 158, 11, 0.16);
  --bg-main: #14110f;
  --bg-alt: #1c1714;
  --surface: #241e1a;
  --bg-surface: #241e1a;
  --bg-surface-alt: #181310;
  --surface-glass: rgba(20, 17, 15, 0.94);
  --border: #3a3029;
}

.nostalji-hero {
  background: var(--gradient-hero), url('/img/hero-koy.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
}
.nostalji-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(234, 179, 8, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07), transparent 40%);
  pointer-events: none;
}
.nostalji-hero .container { position: relative; z-index: 1; }
.nostalji-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.nostalji-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.nostalji-hero h1 span { color: #facc15; }
.nostalji-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 22px;
}
.nostalji-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nostalji-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.nostalji-stat {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}
.nostalji-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #facc15; }
.nostalji-stat span { font-size: 0.78rem; opacity: 0.9; }

.nostalji-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.nostalji-search { flex: 1; min-width: 220px; max-width: 360px; }
.nostalji-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.nostalji-grid {
  columns: 3 280px;
  column-gap: 18px;
}
.nostalji-card {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nostalji-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nostalji-card img {
  width: 100%;
  display: block;
  background: var(--bg-surface-alt);
  filter: sepia(0.18) contrast(1.02);
}
.nostalji-card-body { padding: 12px 14px 14px; }
.nostalji-year {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.nostalji-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: var(--text-main); }
.nostalji-card p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }
.nostalji-card-meta { margin-top: 8px; font-size: 0.76rem; color: var(--text-muted); }
.nostalji-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.nostalji-lightbox-img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
}
.nostalji-lightbox-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.nostalji-lightbox-thumbs img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.nostalji-lightbox-thumbs img.active { border-color: var(--primary); }

.nostalji-consent {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 14px;
}
.nostalji-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.83rem;
  line-height: 1.48;
  cursor: pointer;
  color: var(--text-main);
  margin: 0;
}
.nostalji-consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }

.nostalji-pending-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  margin-bottom: 10px;
}
.nostalji-pending-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.nostalji-pending-row .info { flex: 1; min-width: 0; }
.nostalji-pending-row .info strong { display: block; }
.nostalji-pending-row .info small { color: var(--text-muted); }
.nostalji-pending-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.nostalji-pwa-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 900;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nostalji-pwa-bar.show { display: flex; }

.nostalji-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
}
.hidden { display: none !important; }
