﻿/* =============================================================
   CRAFTING SYSTEM STYLES
   Crafting container, recipe cards, material slots,
   forge/brew buttons.
   Source: original styles.css lines 10732-10988
   ============================================================= */
/* ==================== Crafting System Styles ==================== */
.crafting-container {
  width: 90%;
  max-width: 1400px;
  max-height: 90vh;
  background: rgba(10, 5, 20, 0.95);
  border: 3px solid #8a67ff;
  border-radius: 15px;
  padding: 30px;
  overflow-y: auto;
}

.crafting-container h2 {
  color: #d4af37;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.crafting-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(40, 20, 60, 0.4);
  border-radius: 10px;
  border: 1px solid #8a67ff;
}

.crafting-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8d4a0;
  font-size: 1.1em;
}

.crafting-controls select {
  padding: 8px 15px;
  background: rgba(10, 5, 30, 0.8);
  border: 2px solid #8a67ff;
  border-radius: 5px;
  color: #e8d4a0;
  font-size: 1em;
  cursor: pointer;
}

.crafting-skill-progress {
  background: rgba(40, 20, 60, 0.5);
  border: 2px solid #8a67ff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
}

.crafting-skill-progress h3 {
  color: #d4af37;
  margin-bottom: 10px;
}

.skill-bar-container {
  width: 100%;
  height: 25px;
  background: rgba(10, 5, 30, 0.8);
  border: 2px solid #666;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.5s ease;
}

.race-bonus {
  color: #8a67ff;
  font-style: italic;
  margin-top: 10px;
}

.recipe-category {
  margin-bottom: 40px;
}

.recipe-category h3 {
  color: #d4af37;
  font-size: 1.5em;
  margin-bottom: 15px;
  border-bottom: 2px solid #8a67ff;
  padding-bottom: 10px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.recipe-card {
  background: rgba(40, 20, 60, 0.6);
  border: 2px solid #8a67ff;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s;
}

.recipe-img-container {
  text-align: center;
  margin-bottom: 10px;
}

.recipe-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #8a67ff44;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(138, 103, 255, 0.5);
}

.recipe-card.locked {
  opacity: 0.5;
  border-color: #666;
}

.recipe-card.insufficient-materials {
  border-color: #ff8800;
}

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

.recipe-header h4 {
  color: #e8d4a0;
  font-size: 1.2em;
}

.recipe-tier {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
}

.recipe-tier.starter {
  background: #888;
  color: #fff;
}

.recipe-tier.common {
  background: #4CAF50;
  color: #fff;
}

.recipe-tier.uncommon {
  background: #00BCD4;
  color: #fff;
}

.recipe-tier.rare {
  background: #9C27B0;
  color: #fff;
}

.recipe-description {
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 15px;
  font-style: italic;
}

.recipe-requirements {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(10, 5, 30, 0.5);
  border-radius: 5px;
}

.recipe-requirements p {
  margin: 5px 0;
  font-size: 0.9em;
}

.recipe-materials {
  margin-bottom: 15px;
}

.recipe-materials h5 {
  color: #8a67ff;
  margin-bottom: 8px;
}

.recipe-materials ul {
  list-style: none;
  padding: 0;
}

.recipe-materials li {
  padding: 5px 0;
  font-size: 0.9em;
}

.recipe-result {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 5px;
  border: 1px solid #d4af37;
}

.recipe-result h5 {
  color: #d4af37;
  margin-bottom: 5px;
}

.recipe-result p {
  color: #e8d4a0;
  font-size: 0.9em;
}

.craft-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #8a67ff, #a87eff);
  border: 2px solid #d4af37;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.craft-button:hover:not([disabled]) {
  background: linear-gradient(135deg, #9977ff, #b88eff);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(138, 103, 255, 0.6);
}

.craft-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #666;
}

