/* ── Beer Detail: Ratings Visual ──────────────────────────── */
.ratings-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

/* Star Rating */
.star-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.star-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stars {
  display: flex;
  gap: 0.15rem;
}
.star {
  font-size: 2.2rem;
  line-height: 1;
}
.star-full  { color: var(--accent); }
.star-empty { color: var(--border-warm); }
.star-half {
  position: relative;
  display: inline-block;
  color: var(--border-warm);
}
.star-half-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: var(--accent);
  display: inline-block;
}
.star-half-bg {
  color: var(--border-warm);
}
.star-value {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Radar Chart */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.radar-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.radar-svg {
  max-width: 280px;
  width: 100%;
  overflow: visible;
}
.radar-data {
  fill: rgba(232, 145, 10, 0.2);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.5;
}
.radar-label {
  fill: var(--text);
  font-size: 11px;
  font-family: var(--font);
}


/* ═══════════════════════════════════════════════════════════════════
   BEER DETAIL PAGE (bd-*)
   ═══════════════════════════════════════════════════════════════════ */

.beer-detail-page { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Top Bar ───────────────────────────────────────────────────────── */
.bd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Info: volle Breite ────────────────────────────────────────────── */
.bd-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* ── Main: Geschmacksprofil oben-links, Bild rechts (2 Reihen), Farbe unten-links ── */
.bd-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.bd-image-col {
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
}

.bd-beer-image {
  width: 100%;
  max-height: 280px;
  object-fit: scale-down;
  border-radius: var(--radius);
  border: 1px solid var(--border-warm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  background: var(--bg-card);
}

.bd-beer-image-placeholder {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border-warm);
  background: linear-gradient(135deg, #1e1a0e 0%, #2d2008 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.5;
}

/* legacy — kept for compatibility */
.bd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bd-like-btn {
  background: rgba(12,10,7,0.65);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  backdrop-filter: blur(4px);
}
.bd-like-btn:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.bd-like-icon { font-size: 1rem; }

.bd-hero-content { display: flex; flex-direction: column; gap: 0.35rem; }

.bd-hero-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

.bd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.bd-badge {
  background: rgba(232,145,10,0.12);
  border: 1px solid rgba(232,145,10,0.28);
  color: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.bd-hero-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.bd-hero-brewery { font-size: 0.875rem; }
.bd-hero-brewery a { color: var(--accent); }
.bd-hero-brewery a:hover { color: var(--accent-light); }

.bd-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.bd-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
}

/* ── Ratings Block ─────────────────────────────────────────────────── */
.bd-ratings-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.bd-ratings-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(232,145,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bd-ratings-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 120px;
}

.bd-score-big {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.bd-score-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 24px rgba(232,145,10,0.3);
}
.bd-score-denom {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.bd-stars {
  display: flex;
  gap: 0.1rem;
}
.bd-stars .star { font-size: 1.35rem; }

.bd-score-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.bd-ratings-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bd-ratings-right .radar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.bd-ratings-right .radar-svg  { width: 100%; max-width: 240px; }
.bd-ratings-right .radar-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bd-no-ratings {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Tabs ──────────────────────────────────────────────────────────── */
.bd-tabs { display: flex; flex-direction: column; gap: 0; }

.bd-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-warm);
  margin-bottom: 1rem;
}

.bd-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font);
  font-weight: 500;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s, border-color 0.15s;
}
.bd-tab-btn:hover { color: var(--text); }
.bd-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.bd-tab-count {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  padding: 0.05rem 0.45rem;
  color: var(--text-muted);
}
.bd-tab-btn.active .bd-tab-count { background: var(--accent-glow); border-color: var(--border-warm); color: var(--accent); }

.bd-tab-panel { display: flex; flex-direction: column; gap: 0.75rem; }

.bd-empty { font-size: 0.875rem; padding: 0.25rem 0; }

/* ── Tasting Cards ─────────────────────────────────────────────────── */
.bd-tasting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.15s;
}
.bd-tasting-card:hover { border-color: var(--border-warm); }

.bd-tasting-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bd-tasting-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.bd-tasting-user { flex: 1; min-width: 0; }
.bd-tasting-username { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.bd-tasting-date { font-size: 0.775rem; color: var(--text-muted); }

.bd-tasting-rating {
  background: var(--accent-glow);
  border: 1px solid rgba(232,145,10,0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.bd-tasting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bd-tasting-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.6rem;
  font-size: 0.75rem;
}

.bd-tasting-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-warm);
}

.bd-tasting-notes {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: pre-line;
  line-height: 1.55;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--border-warm);
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .bd-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 1px;
  }
  .bd-tab-btn { flex-shrink: 0; padding: 0.5rem 0.75rem; font-size: 0.82rem; }
  .bd-ratings-block { padding: 0.875rem 1rem; gap: 1rem; }
  .bd-hero-name { font-size: 1.35rem; }
  .bd-topbar { flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 560px) {
  .bd-main {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .bd-image-col {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
  }
  .bd-beer-image,
  .bd-beer-image-placeholder {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .bd-hero-name { font-size: 1.5rem; }
  .bd-ratings-block { flex-direction: column; align-items: stretch; text-align: center; }
  .bd-ratings-left { flex-direction: row; justify-content: center; flex-wrap: wrap; min-width: unset; }
  .bd-ratings-right { justify-content: center; }
  .bd-score-num { font-size: 2.2rem; }
}

/* ── Hero Action Buttons ───────────────────────────────────────────── */
.bd-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bd-icon-btn {
  background: rgba(12,10,7,0.65);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.35rem 0.5rem;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
}
.bd-icon-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}
.bd-icon-btn.on-wishlist {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Distributions ─────────────────────────────────────────────────── */
.bd-distributions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  margin-top: 0.75rem;
}

.bd-dist-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.bd-dist-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.bd-dist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.bd-dist-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bd-dist-chip-count {
  background: var(--accent);
  color: #000;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.35rem;
  line-height: 1.5;
}

.bd-dist-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bd-dist-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: default;
}

.bd-dist-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}

.bd-dist-swatch-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Brewery Name Row ──────────────────────────────────────────────── */
.brewery-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.brewery-name-row h2 { margin: 0; }

.btn-report-flag {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem 0.3rem;
  opacity: 0.45;
  line-height: 1;
  border-radius: 6px;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}
.btn-report-flag:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

/* ── Report Modal ──────────────────────────────────────────────────── */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 360px;
  width: 90%;
}
.report-modal h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.report-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.report-reason-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.btn-report-reason {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.btn-report-reason:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.btn-report-reason:disabled { opacity: 0.5; cursor: default; }

.report-modal-actions { display: flex; justify-content: flex-end; }

.report-modal-msg {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--success, #5cb85c);
}
.report-modal-msg.error { color: var(--danger, #e74c3c); }

