/* SlotLayout.css — tata letak GUI khas game untuk Furnace & Brewing Stand
 * (E3b). Slot tetap tombol `.slot` yang sama; berkas ini hanya menaruhnya
 * di area grid dan menggambar hiasan (api, panah, gelembung, tabung) dengan
 * CSS murni — tanpa gambar, tanpa warna hex (lihat themeContrast.test).
 *
 * Dimuat SETELAH slotGridMinecraft.css. Tanpa berkas MC pun layout tetap
 * benar; hanya warnanya mengikuti tema.
 */

.slot-grid.slot-grid--layout {
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  row-gap: 6px;
}

/* ── Furnace / Blast Furnace / Smoker ─────────────────────────────────── *
 *   [bahan]   .      .
 *   (api)    ──▶   [HASIL]
 *   [bakar]   .      .                                                   */
.slot-grid.slot-grid--furnace {
  max-width: 300px;
  grid-template-columns: repeat(3, minmax(28px, 64px));
  grid-template-areas:
    "in    .     .  "
    "flame arrow out"
    "fuel  .     .  ";
}

/* Slot hasil lebih besar, seperti di game (26px vs 18px). */
.slot-grid--furnace .slot[data-role="output"] {
  transform: scale(1.18);
}

/* ── Brewing Stand (Bedrock: 0 bahan, 1–3 botol, 4 blaze) ─────────────── *
 *   [blaze]   .     [bahan]   .
 *   ▮meter  ∘∘∘     ║tabung   ▼
 *    .      [b1]    [b2]    [b3]                                         */
.slot-grid.slot-grid--brewing {
  max-width: 330px;
  grid-template-columns: repeat(4, minmax(28px, 64px));
  grid-template-areas:
    "fuel  .       ing   .    "
    "meter bubbles tube  arrow"
    ".     b1      b2    b3   ";
}

.slot-grid--brewing .slot[data-slot-index="2"] {
  transform: translateY(8px);
}

/* ── Hiasan ───────────────────────────────────────────────────────────── */
.slot-deco {
  pointer-events: none;
  justify-self: center;
  align-self: center;
}

.slot-deco--flame {
  grid-area: flame;
  width: 42%;
  aspect-ratio: 1 / 1.2;
  background: linear-gradient(to top, rgba(255, 110, 20, 0.95), rgba(255, 200, 60, 0.9) 60%, rgba(255, 240, 150, 0.6));
  clip-path: polygon(50% 0, 70% 30%, 88% 22%, 92% 60%, 80% 100%, 20% 100%, 8% 60%, 14% 28%, 32% 36%);
  opacity: 0.35;
}

/* Api menyala bila ada bahan bakar (di game: saat membakar). */
.slot-grid--furnace .slot[data-role="fuel"].slot--filled ~ .slot-deco--flame {
  opacity: 1;
}

.slot-deco--arrow {
  grid-area: arrow;
  width: 70%;
  aspect-ratio: 1.6 / 1;
  background: rgba(60, 60, 60, 0.55);
  clip-path: polygon(0 35%, 60% 35%, 60% 10%, 100% 50%, 60% 90%, 60% 65%, 0 65%);
}

.slot-grid--brewing .slot-deco--arrow {
  width: 34%;
  aspect-ratio: 1 / 1.8;
  clip-path: polygon(35% 0, 65% 0, 65% 60%, 95% 60%, 50% 100%, 5% 60%, 35% 60%);
}

.slot-deco--bubbles {
  grid-area: bubbles;
  width: 36%;
  aspect-ratio: 1 / 1.6;
  background:
    radial-gradient(circle at 30% 80%, rgba(90, 160, 255, 0.7) 0 12%, transparent 13%),
    radial-gradient(circle at 70% 55%, rgba(90, 160, 255, 0.6) 0 10%, transparent 11%),
    radial-gradient(circle at 40% 25%, rgba(90, 160, 255, 0.5) 0 9%, transparent 10%);
}

/* Tabung kaca dari bahan ke botol tengah. */
.slot-deco--tube {
  grid-area: tube;
  width: 14%;
  height: 90%;
  border-left: 3px solid rgba(60, 60, 60, 0.45);
  border-right: 3px solid rgba(60, 60, 60, 0.45);
}

/* Meter bahan bakar blaze: penuh bila slot blaze berisi. */
.slot-deco--meter {
  grid-area: meter;
  width: 60%;
  height: 16%;
  background: rgba(60, 60, 60, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.slot-grid--brewing .slot[data-role="blaze"].slot--filled ~ .slot-deco--meter {
  background: linear-gradient(to right, rgba(255, 150, 30, 0.95), rgba(255, 210, 70, 0.95));
}

/* ── Item tidak cocok dengan peran slotnya (peringatan) ───────────────── */
.slot-host .slot.slot--mismatch {
  outline: 2px dashed rgba(255, 170, 40, 0.95);
  outline-offset: -3px;
}

