:root {
  --bg: #0d0d12;
  --bg-card: #161620;
  --bg-input: #1e1e2a;
  --gold: #c9a96e;
  --gold-light: #e2c48a;
  --gold-dark: #a07840;
  --text: #f0f0f0;
  --text-muted: #888;
  --border: #2a2a38;
  --red: #e05252;
  --green: #52c07a;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.search-bar {
  flex: 1;
  max-width: 400px;
  margin-left: auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--gold);
}

.search-bar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 200;
  display: none;
}

.search-dropdown.show { display: block; }

.search-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.search-dropdown a:hover { background: var(--bg-input); }
.search-dropdown a span { color: var(--text-muted); font-size: 0.75rem; }

.btn-add {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-add:hover { background: var(--gold-light); }

/* BANNER */
.banner {
  background: var(--gold-dark);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* FILTERS */
.filters-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem 0.75rem;
}

/* COMPACT FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-btn {
  border: 1px solid rgba(201,169,110,0.25);
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(30,30,42,0.8), rgba(22,22,32,0.9));
  border-radius: 25px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}

.filter-dropdown-btn:hover {
  border-color: var(--gold);
  color: var(--text);
  background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.06));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.15);
}

.filter-dropdown-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,0.18), rgba(201,169,110,0.08));
  box-shadow: 0 2px 10px rgba(201,169,110,0.2), inset 0 1px 0 rgba(201,169,110,0.1);
  font-weight: 500;
}

.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 14px;
  padding: 0.4rem;
  min-width: 170px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  animation: filterDropIn 0.15s ease-out;
}

@keyframes filterDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.filter-dropdown-menu.open {
  display: flex;
  flex-direction: column;
}

.filter-dropdown-menu a {
  padding: 0.5rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.15s;
  border-radius: 8px;
  margin: 1px 0;
}

.filter-dropdown-menu a:hover {
  background: rgba(201,169,110,0.1);
  color: var(--gold-light);
}

.filter-dropdown-menu a.active {
  color: var(--gold);
  font-weight: 600;
  background: rgba(201,169,110,0.08);
}

/* Oud – bewaar voor eventuele andere pagina's */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.filter-tag {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-tag:hover, .filter-tag.active {
  background: var(--gold);
  color: #000;
}

.filter-group-label {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.5rem 0 0.25rem;
}

/* CONTENT */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* SECTION ROW */
.section-row {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.section-more {
  color: var(--gold);
  font-size: 0.82rem;
  text-decoration: none;
}

.section-more:hover { text-decoration: underline; }

.cards-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* RECIPE CARD */
.recipe-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--gold-dark);
}

.recipe-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg-input);
}

.recipe-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}

.recipe-card-body {
  padding: 0.75rem;
}

.recipe-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stars-small {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--text-muted);
}

.badge-bbq { background: rgba(224,82,82,0.15); color: #e05252; }
.badge-oven { background: rgba(82,144,224,0.15); color: #5290e0; }

.bron-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
}

/* GRID FULL */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state a { color: var(--gold); }

/* DETAIL PAGE */
.detail-hero {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  background: var(--bg-card);
}

.detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.foto-galerij { margin-bottom: 2rem; }

.galerij-hoofd {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.galerij-hoofd img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.galerij-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.galerij-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  opacity: 0.6;
}

.galerij-thumb:hover { opacity: 0.9; }
.galerij-thumb.actief { border-color: var(--gold); opacity: 1; }

.detail-hero-placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--border);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-main h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.meta-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-pill.gold { border-color: var(--gold); color: var(--gold); }

.stars-rating {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
}

.star-btn:hover, .star-btn.active { color: var(--gold); }
.star-btn:hover { transform: scale(1.2); }

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.ingredienten-list {
  list-style: none;
}

.ingredienten-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ingredienten-list li::before {
  content: '•';
  color: var(--gold);
  flex-shrink: 0;
}

.instructies-text {
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
}

/* SIDEBAR */
.detail-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* BOODSCHAPPENLIJST */
.eters-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.eters-control label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.eters-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 0.2s;
}

.eters-btn:hover { border-color: var(--gold); color: var(--gold); }

.eters-count {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.boodschappen-list {
  list-style: none;
  margin-bottom: 1rem;
}

.boodschappen-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.boodschappen-list li input[type=checkbox] {
  accent-color: var(--gold);
}

.boodschappen-list li.checked {
  opacity: 0.4;
  text-decoration: line-through;
}

.btn-boodschappen {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-boodschappen:hover { background: var(--gold-light); }

.bron-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  word-break: break-all;
}

.bron-link:hover { text-decoration: underline; }

/* GERELATEERD */
.gerelateerd-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gerelateerd-item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  align-items: center;
  border-radius: 8px;
  padding: 0.4rem;
  transition: background 0.15s;
}

.gerelateerd-item:hover { background: var(--bg-input); }

.gerelateerd-img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-input);
  flex-shrink: 0;
}

.gerelateerd-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.gerelateerd-titel {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
}

/* FORM */
.form-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.form-page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select option { background: var(--bg-card); }

/* Foto upload */
.foto-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foto-dropzone:hover, .foto-dropzone.dragover { border-color: var(--gold); }

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.foto-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-input);
  border: 2px solid var(--border);
  aspect-ratio: 1;
  cursor: default;
}

.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.85rem;
  cursor: grab;
  line-height: 1;
  z-index: 2;
}
.foto-handle:active { cursor: grabbing; }

.foto-verwijder {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(224,82,82,0.9);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.foto-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--gold);
  color: #000;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
}

.foto-ghost { opacity: 0.35; }

/* Legacy – niet meer gebruikt maar houden voor backward compat */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.upload-area:hover { border-color: var(--gold); }
.upload-preview { max-height: 200px; border-radius: 8px; object-fit: cover; margin-top: 1rem; display: none; }
.upload-preview.show { display: block; }

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.btn-danger:hover { background: var(--red); color: #fff; }

/* FLASH MESSAGES */
.flash-messages {
  max-width: 1400px;
  margin: 1rem auto 0;
  padding: 0 2rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.flash.success { background: rgba(82,192,122,0.15); border: 1px solid var(--green); color: var(--green); }
.flash.info { background: rgba(82,144,224,0.15); border: 1px solid #5290e0; color: #5290e0; }
.flash.error { background: rgba(224,82,82,0.15); border: 1px solid var(--red); color: var(--red); }

/* USER MENU */
.user-menu { position: relative; flex-shrink: 0; }

.user-menu-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  transition: border-color 0.2s;
}

.user-menu-btn:hover { border-color: var(--gold); }

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-naam { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  display: none;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.user-dropdown a:hover { background: var(--bg-input); }

/* KAART STERREN */
.card-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 0.35rem;
}

.card-stars .star { font-size: 0.78rem; }
.card-stars .star.vol { color: var(--gold); }
.card-stars .star.half { color: var(--gold); opacity: 0.6; }
.card-stars .star.leeg { color: var(--border); }

.card-rating-num { font-size: 0.72rem; color: var(--text-muted); margin-left: 3px; }

/* REACTIES */
.reactie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.reactie-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.reactie-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reactie-naam { font-weight: 600; font-size: 0.88rem; }

.reactie-admin-badge {
  background: rgba(201,169,110,0.15);
  color: var(--gold);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.reactie-datum {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.reactie-tekst {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

.reactie-verwijder {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.reactie-verwijder:hover { color: var(--red); background: rgba(224,82,82,0.1); }

/* IMPORT BOX */
.import-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.import-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.import-row {
  display: flex;
  gap: 0.75rem;
}

.import-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.import-row input:focus { border-color: var(--gold); }

.import-row button {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.import-row button:hover { background: var(--gold-light); }
.import-row button:disabled { opacity: 0.6; cursor: not-allowed; }

#import-status {
  margin-top: 0.6rem;
  font-size: 0.83rem;
  min-height: 1.2rem;
}

/* MENU KAARTEN */
.menu-kaart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}
.menu-kaart:hover { transform: translateY(-3px); border-color: var(--gold-dark); }

.menu-kaart-fotos {
  display: flex;
  height: 110px;
  overflow: hidden;
}
.menu-kaart-fotos img {
  flex: 1;
  object-fit: cover;
  min-width: 0;
}
.menu-kaart-placeholder {
  flex: 1;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--border);
}

.menu-recept-rij {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.menu-recept-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* DRANK KNOPPEN */
.drank-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drank-btn:hover { border-color: var(--gold); background: var(--bg-card); }

/* FOTO UPLOAD — MOBIEL KNOPPEN */
.foto-mobiel-knoppen {
  display: flex;
  gap: 1rem;
}

.foto-keuze-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-input);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.foto-keuze-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

/* Standaard: mobiele knoppen verborgen, dropzone zichtbaar */
.desktop-only { display: flex; }
.mobile-only  { display: none; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBIEL MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }

.mobile-search {
  position: relative;
  margin-bottom: 0.75rem;
}
.mobile-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.mobile-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 0.7rem 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

/* ═══ HERO SLIDER ═══ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  max-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%),
              linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
}

.hero-content {
  position: absolute;
  bottom: 5rem;
  left: 3rem;
  max-width: 520px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-auteur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}

.hero-auteur-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero-titel {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

.hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 5;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.hero-strip-item {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  position: relative;
  font-family: inherit;
}

.hero-strip-item:hover { color: rgba(255,255,255,0.8); }
.hero-strip-item.active { color: #fff; }

.hero-strip-bar {
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.hero-strip-item.active .hero-strip-bar {
  background: var(--gold);
}

/* ═══ CATEGORIE SECTIE ═══ */
.cat-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem;
  background: var(--bg);
}

.cat-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cat-tag {
  background: rgba(201,169,110,0.15);
  color: var(--gold-light);
  border: none;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-tag:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-1px);
}

.cat-tag-ai {
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
}

.cat-tag-ai:hover {
  background: linear-gradient(135deg,#7c7ff7,#a78bfa);
  color: #fff;
}

.cat-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.cat-grid::-webkit-scrollbar { display: none; }

.cat-card {
  position: relative;
  flex: 0 0 180px;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s;
}

.cat-card:hover { transform: translateY(-4px); }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cat-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.cat-card-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.8);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}

/* ADMIN TABEL */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

/* PRINT */
@media print {
  .navbar, .filters-section, .detail-sidebar, .btn-boodschappen { display: none; }
  body { background: white; color: black; }
}

/* ── TABLET (≤900px) ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 0 1.25rem 2rem;
  }
  .detail-sidebar { position: static; }
  .cards-scroll {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ── MOBIEL (≤640px) ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero */
  .hero-slider { height: 55vh; min-height: 320px; }
  .hero-content { bottom: 4.5rem; left: 1.25rem; right: 1.25rem; max-width: none; }
  .hero-titel { font-size: 1.5rem; }
  .hero-meta { font-size: 0.78rem; gap: 0.75rem; }
  .hero-btn { font-size: 0.82rem; padding: 0.55rem 1.2rem; }
  .hero-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .hero-prev { left: 0.5rem; }
  .hero-next { right: 0.5rem; }
  .hero-strip-item { font-size: 0.68rem; padding: 0.5rem 0.5rem; }

  /* Categorieën */
  .cat-section { padding: 1.25rem 1rem; }
  .cat-title { font-size: 1.1rem; }
  .cat-grid { gap: 0.6rem; }
  .cat-card { flex: 0 0 130px; height: 170px; border-radius: 10px; }
  .cat-tags { gap: 0.35rem; }
  .cat-tag { font-size: 0.75rem; padding: 0.3rem 0.75rem; }

  /* Navbar */
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .search-bar { display: none; }
  .btn-add { display: none; }
  .hamburger { display: flex; }
  .user-naam { display: none; }

  /* Content padding */
  .content { padding: 0 1rem 2rem; }
  .filters-section { padding: 0.75rem 0.75rem 0.5rem; }
  .filter-bar { gap: 0.35rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-dropdown-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  .filter-dropdown-menu { min-width: 150px; left: 0; transform: none; }
  @keyframes filterDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .flash-messages { padding: 0 1rem; }

  /* Hero afbeelding */
  .detail-hero, .galerij-hoofd { max-height: 240px; border-radius: 8px; }
  .detail-hero img, .galerij-hoofd img { max-height: 240px; }
  .foto-galerij, .detail-hero { margin-bottom: 1rem; }
  .detail-layout { padding: 0 1rem 2rem; gap: 1.25rem; }
  .detail-main h1 { font-size: 1.4rem; }

  /* Receptkaarten: 2 kolommen */
  .cards-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Formulier */
  .form-page { padding: 1rem; }
  .form-page h1 { font-size: 1.25rem; margin-bottom: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn-danger { margin-left: 0; width: 100%; text-align: center; }

  /* Import box */
  .import-row { flex-direction: column; }
  .import-row button { width: 100%; }

  /* Foto upload knoppen wisselen */
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex; }

  /* Foto grid */
  .foto-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  /* Detail sectie */
  .detail-section h2 { font-size: 1rem; }
  .instructies-text { font-size: 0.9rem; }

  /* Sterren beoordeling */
  .star-btn { font-size: 1.5rem; }

  /* Admin tabel */
  .table-scroll { border-radius: var(--radius); }

  /* Galerij strip */
  .galerij-thumb { width: 60px; height: 45px; }

  /* Modal */
  .modal-box { margin: 1rem; padding: 1.25rem; }

  /* Filters: horizontaal scrollen */
  .filter-tags { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .filter-tags::-webkit-scrollbar { display: none; }
  .filter-tag { flex-shrink: 0; }
  .filter-group-label { width: auto; margin: 0; }
}
