/* ========================================================
   Showcase Gaya: Layout Wrapper & Inspector Extensions
   100% Persis & Identik dengan Aplikasi Utama GUMO
   ======================================================== */

:root, [data-theme="dark"], #gaya {
  --bg: #071f20;
  --card: #0b2b2d;
  --card-hover: #103c3f;
  --line: rgba(183, 255, 26, 0.3);
  --line2: rgba(255, 255, 255, 0.08);
  --txt: #ffffff;
  --mut: #94a3b8;
  --acc: #B7FF1A;
  --acc-rgb: 183, 255, 26;
  --chip: rgba(255, 255, 255, 0.07);
}

.showcase-top-header {
  border-bottom: 1px solid var(--line2);
  background: var(--bg);
}

.showcase-main-wrap {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-intro {
  text-align: center;
  margin-bottom: 2px;
}

.showcase-intro h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--txt);
  margin-bottom: 6px;
}

.showcase-intro p {
  font-size: 14px;
  color: var(--mut);
}

/* Mode Bar (Kreator vs Produk) */
.showcase-mode-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mode-tab {
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--mut);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 260px;
  text-align: center;
}

.mode-tab svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.mode-tab b {
  font-size: 15px;
  font-weight: 750;
  color: var(--txt);
}

.mode-tab small {
  font-size: 12px;
  color: var(--mut);
}

.mode-tab:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.mode-tab.on {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc) inset, 0 8px 24px rgba(var(--acc-rgb), 0.2);
  background: radial-gradient(circle at 50% 0%, rgba(var(--acc-rgb), 0.12), transparent 75%), var(--card);
  color: var(--txt);
}

/* Showcase Grid Card Container */
.showcase-grid-card {
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 14px;
}

.grid-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-hint {
  font-size: 12px;
  color: var(--mut);
}

/* Style Grid Container */
#styleGrid.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  width: 100%;
}

/* Kartu Gaya .sg Persis Aplikasi Utama */
.sg {
  position: relative;
  border: 1px solid var(--line2);
  background: var(--card);
  border-radius: 12px;
  padding: 6px;
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--mut);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  outline: none;
  box-sizing: border-box;
}

.sg:hover {
  transform: translateY(-2px);
  border-color: var(--acc);
  color: var(--txt);
}

.sg.on {
  border-color: var(--acc);
  box-shadow: 0 0 0 1.5px var(--acc) inset, 0 4px 16px rgba(var(--acc-rgb), 0.25);
  color: var(--txt);
}

.sg.anim {
  border-color: var(--acc);
}

.sg img,
.sg .sg-auto {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #0d0f13;
}

.sg .sg-auto {
  display: grid;
  place-content: center;
  font-size: 28px;
  gap: 4px;
  background: radial-gradient(circle at 50% 35%, rgba(var(--acc-rgb), 0.35), transparent 70%), #0d0f13;
}

.sg .sg-auto small {
  font-size: 11px;
  color: var(--mut);
}

/* Live Canvas Hover Animation (.pvs) */
.sg .pvs {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  aspect-ratio: 9/16;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  display: block;
  object-fit: cover;
}

/* Hot Badge */
.sg .hot {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ff3d3d, #ff8a00);
  padding: 2.5px 6.5px;
  border-radius: 99px;
  box-shadow: 0 3px 8px rgba(255, 61, 61, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.sg .hot svg {
  width: 10px;
  height: 10px;
  display: inline-block;
  vertical-align: -1px;
  fill: currentColor;
  flex-shrink: 0;
}

.sg span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px 2px;
}

/* Style Description Box */
.style-desc-box {
  padding-top: 14px;
  border-top: 1px dashed var(--line2);
}

.style-desc-box .hint {
  font-size: 13.5px;
  color: var(--txt);
  line-height: 1.6;
  margin: 0;
}

.style-desc-box .sigc {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  vertical-align: middle;
}

.style-desc-box .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--chip, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--txt);
}

/* Responsive & Mobile Enhancements */
@media (max-width: 768px) {
  .showcase-mode-bar {
    flex-direction: column;
    gap: 10px;
  }
  .mode-tab {
    min-width: 100%;
    padding: 12px 16px;
  }
  .showcase-grid-card {
    padding: 16px;
    border-radius: 14px;
  }
  #styleGrid.style-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
  }
  .sg {
    padding: 4px;
    font-size: 10.5px;
  }
  .sg .hot {
    font-size: 8.5px;
    padding: 1.5px 4.5px;
  }
}

