/* Recipes Page Specific Styles */

h1 {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

/* Sortable table headers */
th {
  cursor: pointer;
  user-select: none;
}

th:hover {
  background: #1a4a7a;
}

th.sorted-asc::after {
  content: ' \25B2';
  font-size: 10px;
}

th.sorted-desc::after {
  content: ' \25BC';
  font-size: 10px;
}

/* Clickable rows */
tr.clickable {
  cursor: pointer;
}

/* Checkbox styling */
label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Recipe Detail Panel */
.recipe-detail {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
}

.recipe-detail.visible {
  display: block;
}

.recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.recipe-title {
  font-size: 1.5em;
  color: var(--accent-gold);
  margin: 0;
}

.recipe-meta {
  color: #9ca3af;
  font-size: 0.9em;
}

.close-btn {
  background: #444;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn:hover {
  background: #555;
}

/* Cost Breakdown Grid */
.cost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.cost-card {
  background: #1a1a3e;
  padding: 15px;
  border-radius: 6px;
}

.cost-card h4 {
  margin: 0 0 10px 0;
  color: #9ca3af;
  font-size: 0.85em;
  text-transform: uppercase;
}

.cost-card .value {
  font-size: 1.3em;
}

/* Reagent List */
.reagent-list {
  margin-top: 20px;
}

.reagent-list h3 {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

/* Skill colors */
.skill-range {
  font-size: 0.85em;
  color: #9ca3af;
}

.skill-orange { color: var(--color-orange); }
.skill-yellow { color: var(--color-yellow); }
.skill-green { color: var(--color-green); }
.skill-gray { color: var(--color-gray); }

/* Stats Summary */
.stats-summary {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.stats-summary span {
  margin-right: 20px;
}

/* Badges */
.transmute-badge {
  background: #7c3aed;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75em;
  margin-left: 5px;
}
