/* Nur fuer die Bewerten-Seite (index.html im Root): Sterne, Zutaten-Panel
   und das Formular zum Hinzufuegen inklusive Vorschlagsliste. */

.expand-icon {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  display: inline-block;
  width: 12px;
}

.expand-icon.open { transform: rotate(90deg); }

.stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.star {
  font-size: 1.4rem;
  color: var(--star-empty);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s, color 0.15s;
  line-height: 1;
}

.star:hover { transform: scale(1.15); }

.star.filled { color: var(--star-filled); }

.ingredients-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}

.ingredients-panel.open {
  max-height: 320px;
  margin-top: 10px;
}

.ingredients-inner {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.ingredients-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.ingredients-list li {
  margin: 2px 0;
}

.no-ingredients {
  color: var(--muted);
  font-style: italic;
}

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

.summary {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.name-input-wrap {
  position: relative;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fffefc;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.suggestions-list.open { display: block; }

/* Überschrift über den Vorschlägen ("Beliebte Cocktails") - kein Eintrag,
   daher nicht anklickbar und nicht mit den Pfeiltasten erreichbar. */
.suggestion-headline {
  padding: 6px 10px 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.suggestion-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}

.suggestion-item:active,
.suggestion-item.active {
  background: #fbeedd;
}

/* Seit die Vorschläge offline aus dem Katalog kommen, steht hier das Emoji
   der erkannten Art statt eines Fotos aus dem Netz. */
.suggestion-thumb {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.suggestion-name {
  font-weight: 500;
}

/* Zutaten als zweite Zeile: hilft beim Unterscheiden ähnlicher Namen. */
.suggestion-sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-empty {
  padding: 9px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
