.side-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.crafting-workbench {
  display: grid;
  gap: 10px;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 10px;
  justify-content: center;
}

.craft-slot,
.craft-result-slot {
  width: 72px;
  height: 72px;

  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.38);

  background: rgba(15, 23, 42, 0.48);

  display: grid;
  place-items: center;

  color: #9fb3d1;
  font-size: 0.72rem;

  position: relative;
  overflow: hidden;
}

.craft-slot:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(30, 41, 59, 0.72);
}

.craft-slot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.craft-slot span {
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.craft-result-area {
  display: grid;
  justify-content: center;
  gap: 8px;
}

.craft-result-slot {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
}

.craft-result-slot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.craft-result-slot span {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.craft-result-label {
  margin: 0;
  text-align: center;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.craft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.craft-actions button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #34d399, #059669);
  color: #06131c;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.craft-actions button:hover {
  filter: brightness(1.08);
}

.craft-actions button:active {
  transform: translateY(1px);
}

.crafting-card {
  position: relative;
}

.recipes-card {
  display: grid;
  gap: 12px;
}

.recipes-card[hidden] {
  display: none;
}

.recipes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.recipes-header h3 {
  margin: 0;
  font-size: 1rem;
}

.recipes-close {
  width: 26px;
  height: 26px;

  border: 0;
  border-radius: 50%;

  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;

  cursor: pointer;
  font-weight: 900;
}

.recipes-close:hover {
  background: rgba(220, 38, 38, 0.85);
}

.recipes-category {
  color: #a7f3d0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 4px 0 4px;
}

.recipe-filter-btn {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.recipe-filter-btn:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(30, 41, 59, 0.88);
}

.recipe-filter-btn.is-active {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.16));
  color: #bbf7d0;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.12);
}


.recipe-list {
  display: grid;
  gap: 4px;
}

.recipe-row {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.56);
}

.recipe-ingredients {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 4px;
  justify-content: space-evenly;
}

.recipe-tool-group {
  border: 1px dashed rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 4px;
}

.recipe-item,
.recipe-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  text-align: center;
  font-size: 0.8rem;
}

.recipe-item img,
.recipe-result img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.recipe-plus,
.recipe-equals {
  color: #34d399;
  font-weight: 900;
}

.recipe-result {
  justify-content: center;
}

.recipe-liquid {
  position: relative;
}

.recipe-liquid::after {
  /* sağ üstte su simgesi
  content: "💧";
  position: absolute;
  top: -5px;
  right: -5px;
  */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(25, 75, 105, 0.9);
}

.recipe-liquid-missing {
  opacity: 0.55;
  border-radius: 8px;
  padding: 4px;
  outline: 1px solid rgba(180, 55, 55, 0.9);
}

.recipe-liquid-missing span {
  color: #d96b6b;
}

.log-card {
  min-height: 260px;
}

.log-header h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.log-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
}

.log-list::-webkit-scrollbar {
  width: 8px;
}

.log-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 999px;
}

.log-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.log-list::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.75);
}

.log-empty {
  margin: 0;
  color: #9fb3d1;
  font-size: 0.85rem;
}


.log-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.log-item {
  margin: 0;
  padding: 9px 10px;

  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);

  background: rgba(30, 41, 59, 0.56);
  color: #dbeafe;

  font-size: 0.82rem;
  font-weight: 700;
}

.log-success {
  border-color: rgba(52, 211, 153, 0.35);
}

.log-warning {
  border-color: rgba(251, 191, 36, 0.35);
}

.log-danger {
  border-color: rgba(244, 63, 94, 0.4);
}

.crafting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.workstation-slots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workstation-slot {
  position: relative;

  width: 32px;
  height: 32px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 4px;

  background: rgba(15, 23, 42, 0.48);

  display: grid;
  place-items: center;

  overflow: hidden;
}

.workstation-slot.is-active {
  border-color: rgba(52, 211, 153, 0.75);
  background: rgba(52, 211, 153, 0.14);
}

.workstation-slot img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.workstation-remove {
  position: absolute;
  top: 2px;
  right: 2px;

  width: 16px;
  height: 16px;

  border: 0;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.75);

  cursor: pointer;
  opacity: 0;

  font-size: 0;
}

.workstation-remove::before {
  content: "×";
  font-size: 13px;
  line-height: 1;
}

.workstation-slot:hover .workstation-remove {
  opacity: 1;
}

.workstation-remove:hover {
  background: rgba(150, 91, 91, 0.85);
  color: white;
}

.recipe-workstation,
.recipe-workstation-missing {
    border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 10px;
  padding: 4px;
}

.recipe-workstation-missing {
  opacity: 0.45;
  filter: grayscale(1);
}

.recipe-ingredient-group {
  border: 1px solid rgba(129, 86, 172, 0.518);
  border-radius: 10px;
  padding: 4px;
}

.quick-craft-button {
  flex: 0 0 auto;
  padding: 6px 10px;

  border: 1px solid rgba(190, 160, 105, 0.75);
  border-radius: 5px;

  background: rgba(72, 58, 38, 0.92);
  color: #ead8ac;

  font-size: 12px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.quick-craft-button:hover {
  background: rgba(98, 78, 49, 0.96);
  border-color: rgba(225, 195, 130, 0.95);
}

.quick-craft-button:active {
  transform: translateY(1px);
}