/* === Shared Item Detail Styles === */

.detailRow {
  background: none !important;
}

.detailRow:hover {
  background: none !important;
}

.detailCell {
  padding: 0 !important;
  border-bottom: 2px solid var(--hull-grey) !important;
}

.detailContent {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.04), rgba(13, 19, 33, 0.6));
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  white-space: normal;
}

.detailContent.compact {
  padding: 1rem 1.25rem;
}

.detailHeader {
  margin-bottom: 1rem;
}

.compact .detailHeader {
  margin-bottom: 0.75rem;
}

.detailDescription {
  color: var(--chrome-silver);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.compact .detailDescription {
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.detailMeta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.metaTag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(61, 90, 108, 0.3);
  border: 1px solid rgba(61, 90, 108, 0.5);
  border-radius: 3px;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Rarity badges */
.rarityBadge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.rarityCommon {
  background: rgba(168, 197, 214, 0.15);
  border: 1px solid rgba(168, 197, 214, 0.4);
  color: var(--chrome-silver);
}

.rarityUncommon {
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: var(--bio-green);
}

.rarityRare {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--plasma-cyan);
}

.rarityExotic {
  background: rgba(155, 89, 182, 0.15);
  border: 1px solid rgba(155, 89, 182, 0.4);
  color: #c084fc;
}

/* Section titles within detail */
.detailSectionTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--plasma-cyan);
  margin: 0 0 0.5rem;
}

/* === Recipe Sections === */

.recipeSections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.recipeSectionsCompact {
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.recipeSection {
  min-width: 0;
}

/* Recipe card */
.recipeCard {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(61, 90, 108, 0.4);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.recipeCard.compact {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.recipeHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.recipeName {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--star-white);
}

.recipeCategory {
  font-size: 0.65rem;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.recipeFlow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.recipeInputs,
.recipeOutputs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.recipeItem {
  font-size: 0.75rem;
  color: var(--chrome-silver);
}

.recipeOutputs .recipeItem {
  color: var(--bio-green);
}

.recipeArrow {
  font-size: 1rem;
  color: var(--hull-grey);
  flex-shrink: 0;
}

.recipeSkills {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--warning-yellow);
  opacity: 0.8;
}

/* Facility tags within recipe card */
.recipeFacilities {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(61, 90, 108, 0.25);
}

.facilityTag {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 3px;
  color: var(--chrome-silver);
}

/* === Module Stats === */

.moduleSection {
  margin-top: 0.5rem;
}

.moduleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.4rem;
}

.moduleStat {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(61, 90, 108, 0.3);
  border-radius: 3px;
}

.moduleStatLabel {
  font-size: 0.7rem;
  color: var(--hull-grey);
  text-transform: uppercase;
}

.moduleStatValue {
  font-size: 0.75rem;
  color: var(--star-white);
  font-weight: 500;
}

/* Empty state within detail */
.detailEmpty {
  color: var(--hull-grey);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .recipeSections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detailContent {
    padding: 1rem;
  }

  .moduleGrid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
