/* cellar — app-specific styles.
 * Shared reset / tokens / components come from /assets/darkmatter.css.
 */

textarea {
  min-height: 120px;
}

input[type="file"] {
  border: none;
  padding: 0;
  font-size: 12px;
}

button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Wine list (public) */

.wine-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wine-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid #333;
  text-decoration: none;
}

.wine-card:hover {
  opacity: 0.7;
}

.wine-pentagon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.wine-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wine-name {
  font-size: 16px;
}

.wine-meta {
  font-size: 12px;
  opacity: 0.5;
}

/* Wine detail (public) */

.wine-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding-bottom: 4rem;
}

.wine-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 480px) {
  .wine-detail-top {
    grid-template-columns: 1fr;
  }
  .wine-image {
    max-height: none;
    width: 100%;
  }
}

.wine-image-wrap {
  width: 100%;
}

.wine-image {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.wine-detail-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.wine-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 14px;
}

.meta-label {
  font-size: 12px;
  opacity: 0.5;
}

.wine-detail-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.wine-detail-notes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wine-detail-notes p {
  white-space: pre-wrap;
}

/* Admin list */

.admin-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-item-name {
  font-size: 16px;
}

.admin-item-meta {
  font-size: 12px;
  opacity: 0.5;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  font-size: 12px;
}

/* Score inputs */

.image-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.score-section-label {
  font-size: 11px;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.75rem;
}

.score-section-label:first-child {
  margin-top: 0;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-row label {
  width: 80px;
  flex-shrink: 0;
}

.score-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #555;
  border: none;
  padding: 0;
}

.score-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.score-row input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.score-value {
  width: 16px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}
