/* ── Theme: Garden (default) ─────────────────────────────────────────────── */
[data-theme="garden"] {
  --theme-primary:   #5a7c5a;
  --theme-secondary: #8fbb8f;
  --theme-accent:    #c8a96e;
  --theme-bg:        #f7f5f0;
  --theme-surface:   #ffffff;
  --theme-text:      #2d3a2d;
  --theme-muted:     #7a8c7a;
  --theme-border:    #d4ddd4;
}

/* ── Theme: Dusk ─────────────────────────────────────────────────────────── */
[data-theme="dusk"] {
  --theme-primary:   #b07080;
  --theme-secondary: #d4a0a0;
  --theme-accent:    #c9a84c;
  --theme-bg:        #fdf8f5;
  --theme-surface:   #ffffff;
  --theme-text:      #3a2a2a;
  --theme-muted:     #9a7a7a;
  --theme-border:    #e8d4d4;
}

/* ── Theme: Midnight ─────────────────────────────────────────────────────── */
[data-theme="midnight"] {
  --theme-primary:   #1a2a4a;
  --theme-secondary: #3a5080;
  --theme-accent:    #a0b4d0;
  --theme-bg:        #f0f4f8;
  --theme-surface:   #ffffff;
  --theme-text:      #1a2a3a;
  --theme-muted:     #6080a0;
  --theme-border:    #c0d0e0;
}

/* ── Theme: Fiesta ───────────────────────────────────────────────────────── */
[data-theme="fiesta"] {
  --theme-primary:   #e05050;
  --theme-secondary: #f0a030;
  --theme-accent:    #30b0b0;
  --theme-bg:        #fffaf5;
  --theme-surface:   #ffffff;
  --theme-text:      #2a1a0a;
  --theme-muted:     #a07050;
  --theme-border:    #f0d0b0;
}

/* ── Theme: Woodland ─────────────────────────────────────────────────────── */
[data-theme="woodland"] {
  --theme-primary:   #8b4513;
  --theme-secondary: #2d5a2d;
  --theme-accent:    #d4a050;
  --theme-bg:        #f8f5f0;
  --theme-surface:   #ffffff;
  --theme-text:      #2a1a0a;
  --theme-muted:     #806040;
  --theme-border:    #d4c0a0;
}

/* ── Theme: Slate ────────────────────────────────────────────────────────── */
[data-theme="slate"] {
  --theme-primary:   #3a4a5a;
  --theme-secondary: #607080;
  --theme-accent:    #90a0b0;
  --theme-bg:        #f4f5f6;
  --theme-surface:   #ffffff;
  --theme-text:      #1a2530;
  --theme-muted:     #607080;
  --theme-border:    #c0cad4;
}

/* ── Font defaults (overridden by JS from data-font) ─────────────────────── */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Base styles ─────────────────────────────────────────────────────────── */
body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--theme-primary);
}

.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
}

.btn-outline-primary {
  color: var(--theme-primary);
  border-color: var(--theme-primary);
}
.btn-outline-primary:hover {
  background-color: var(--theme-primary);
  color: #fff;
}

.card {
  border: 1px solid var(--theme-border);
  background-color: var(--theme-surface);
}

.badge-theme {
  background-color: var(--theme-accent);
  color: var(--theme-text);
}

.text-theme { color: var(--theme-primary); }
.text-muted-theme { color: var(--theme-muted); }
.bg-theme { background-color: var(--theme-surface); }

.countdown-block {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--theme-primary);
}
.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-muted);
}

.list-item-card {
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--theme-surface);
  transition: border-color 0.2s;
}
.list-item-card.claimed {
  opacity: 0.55;
  background: #f0f0f0;
}
.list-item-card.mine {
  border-color: var(--theme-primary);
  background: var(--theme-bg);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}
.photo-tile img, .photo-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-tile .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 6px 8px;
  font-size: 0.7rem;
}

/* Display page (TV/projector) */
.display-body {
  background: #000;
  color: #fff;
}
.display-slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.display-slide img, .display-slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.display-caption {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-size: 1.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
