/* Homebrew Beer Recipe Calculator Scoped Styles */
.hbrc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.hbrc-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hbrc-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.hbrc-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.hbrc-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  overflow-x: auto;
}

.hbrc-tab-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hbrc-tab-btn:hover {
  color: #d97706;
}

.hbrc-tab-btn.hbrc-active-tab {
  color: #b45309;
  border-bottom-color: #b45309;
}

.hbrc-panel {
  display: none;
}

.hbrc-panel.hbrc-active-panel {
  display: block;
}

.hbrc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.hbrc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbrc-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.hbrc-input,
.hbrc-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
  color: inherit;
}

.hbrc-input:focus,
.hbrc-select:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.hbrc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hbrc-stat-box {
  background: #fdfbf7;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.hbrc-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 2px;
}

.hbrc-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hbrc-color-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fdfbf7;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  margin-top: 16px;
}

.hbrc-swatch {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hbrc-swatch-text {
  flex: 1;
}

.hbrc-swatch-title {
  font-weight: 700;
  color: #111827;
}

.hbrc-swatch-desc {
  font-size: 0.85rem;
  color: #6b7280;
}

