/* ===== Minecraft Inventory GUI for EmberEnchants ===== */

.plugin-hero {
  position: relative;
  padding: 56px 20px 40px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 0, .14), transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(255, 69, 0, .08), transparent 60%);
}
.plugin-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 320px);
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 880px) { .plugin-hero-grid { grid-template-columns: 1fr; } }
.plugin-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.plugin-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  font-family: var(--font-mc); font-size: 13px; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 3px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--text-dim);
}
.badge.version { color: var(--ember-gold); border-color: var(--ember); }
.badge.mc { color: var(--rarity-uncommon); border-color: rgba(85, 255, 85, .35); }

.price-card {
  padding: 26px 24px;
  background: var(--bg-1);
  border: 2px solid var(--ember);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-glow-soft);
}
.price-card .price { font-family: var(--font-display); font-size: 30px; color: var(--ember-gold); margin: 8px 0 18px; text-shadow: 0 0 12px rgba(255, 215, 0, .4); }
.price-card .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.price-card .small { font-size: 12px; color: var(--text-mute); margin-top: 10px; }

/* ===== Inventory GUI ===== */
.gui-wrap { max-width: 1100px; margin: 0 auto; }

.gui-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding-left: 16px;
}
.gui-tab {
  font-family: var(--font-mc);
  font-size: 17px;
  letter-spacing: 1px;
  padding: 12px 18px;
  background: #1a1208;
  color: var(--text-dim);
  border: 2px solid #000;
  border-bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin-right: 4px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  display: flex; align-items: center; gap: 8px;
  position: relative; top: 2px;
}
.gui-tab:hover { background: #2a1d10; color: var(--ember-gold); }
.gui-tab.active {
  background: #3a2a18;
  color: var(--ember-gold);
  top: 0;
  z-index: 2;
  border-bottom: 2px solid #3a2a18;
  text-shadow: 0 0 8px rgba(255, 215, 0, .4);
}
.gui-tab .tab-icon { font-size: 18px; }

.gui-panel {
  background: #c6c6c6;
  background-image:
    linear-gradient(135deg, #d8d8d8 0%, #c6c6c6 50%, #aaaaaa 100%);
  border: 4px solid #000;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  padding: 16px;
  position: relative;
  image-rendering: pixelated;
}
.gui-inner {
  background: #8b8b8b;
  border: 2px solid #000;
  border-top-color: #555;
  border-left-color: #555;
  border-right-color: #fff;
  border-bottom-color: #fff;
  padding: 14px;
}
.gui-title {
  font-family: var(--font-mc);
  font-size: 20px;
  color: #3F3F3F;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #b0b0b0;
  letter-spacing: 1px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 4px;
  max-width: 100%;
}
.slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #8b8b8b;
  border: 2px solid #373737;
  border-top-color: #373737;
  border-left-color: #373737;
  border-right-color: #fff;
  border-bottom-color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: filter .1s, transform .1s;
  image-rendering: pixelated;
}
.slot:hover { filter: brightness(1.4); transform: scale(1.02); z-index: 1; }
.slot.empty { cursor: default; }
.slot.empty:hover { filter: none; transform: none; }
.slot .item-bg {
  position: absolute; inset: 4px;
  background:
    linear-gradient(135deg, #5a3a8e 0%, #2a1454 100%);
  border: 1px solid rgba(0,0,0,.5);
}
.slot .item-emoji {
  position: relative; z-index: 1;
  font-size: 26px;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, .35));
}
.slot.legendary .item-bg { background: linear-gradient(135deg, #FFAA00, #8a4d00); }
.slot.epic .item-bg { background: linear-gradient(135deg, #AA00AA, #4a004a); }
.slot.rare .item-bg { background: linear-gradient(135deg, #5555FF, #1d1d8a); }
.slot.uncommon .item-bg { background: linear-gradient(135deg, #55FF55, #1e7a1e); }
.slot.common .item-bg { background: linear-gradient(135deg, #888, #333); }

.slot.legendary { box-shadow: inset 0 0 0 1px rgba(255, 170, 0, .8); animation: legendaryPulse 2.5s ease-in-out infinite; }
@keyframes legendaryPulse {
  0%,100% { box-shadow: inset 0 0 0 1px rgba(255,170,0,.6), 0 0 8px rgba(255,170,0,.2); }
  50% { box-shadow: inset 0 0 0 1px rgba(255,170,0,1), 0 0 18px rgba(255,170,0,.5); }
}

/* ===== MC tooltip ===== */
.mc-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: #100010;
  border: 2px solid #2A0A2A;
  outline: 1px solid #100010;
  padding: 6px 10px;
  font-family: var(--font-mc);
  font-size: 16px;
  color: #fff;
  min-width: 220px;
  max-width: 320px;
  line-height: 1.4;
  box-shadow:
    inset 0 0 0 1px #250125,
    0 0 0 1px #100010,
    0 6px 18px rgba(0, 0, 0, .8);
  display: none;
}
.mc-tooltip.show { display: block; }
.mc-tooltip .name { font-size: 17px; margin-bottom: 4px; letter-spacing: .5px; }
.mc-tooltip .name.common { color: var(--rarity-common); }
.mc-tooltip .name.uncommon { color: var(--rarity-uncommon); }
.mc-tooltip .name.rare { color: var(--rarity-rare); }
.mc-tooltip .name.epic { color: var(--rarity-epic); }
.mc-tooltip .name.legendary { color: var(--rarity-legendary); }
.mc-tooltip .rarity-line { font-size: 14px; margin-bottom: 4px; }
.mc-tooltip .desc { color: #AAAAAA; font-style: italic; margin-bottom: 4px; }
.mc-tooltip .meta { color: #5555FF; font-size: 14px; }
.mc-tooltip .meta-amber { color: #FFAA00; font-size: 14px; }
.mc-tooltip .meta-gray { color: #AAAAAA; font-size: 14px; }
.mc-tooltip .conflict { color: #FF5555; font-size: 14px; }

/* ===== Detail panel (sticky on click) ===== */
.detail-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}
.detail-panel.hidden { display: none; }
.detail-panel .di-icon {
  width: 80px; height: 80px;
  background: var(--bg-2);
  border: 2px solid var(--ember);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  border-radius: var(--radius);
}
.detail-panel h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.detail-panel .di-meta { font-family: var(--font-mc); font-size: 16px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: .5px; }
.detail-panel .di-desc { color: var(--text-dim); margin-bottom: 12px; }
.detail-panel .di-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; font-size: 13px; }
.detail-panel .di-rows div span { color: var(--text-mute); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }

/* ===== Features list / requirements ===== */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature-row .feature-item {
  padding: 18px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.feature-row .feature-item .check { color: var(--ember-gold); font-size: 18px; }

.req-list, .install-steps { list-style: none; padding: 0; }
.req-list li, .install-steps li {
  padding: 12px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius);
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 14px;
}
.install-steps li { counter-increment: step; position: relative; padding-left: 56px; }
.install-steps { counter-reset: step; }
.install-steps li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  background: var(--ember); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 107, 0, .4);
}

/* ===== Search ===== */
.gui-search {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.gui-search input {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  font-family: var(--font-body); font-size: 14px;
  background: var(--bg-0); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius);
}
.gui-search input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 2px rgba(255, 107, 0, .2); }
.gui-search .count { font-size: 12px; color: var(--text-mute); font-family: var(--font-mc); letter-spacing: 1px; white-space: nowrap; }
