/**
 * ================================================================
 *  RoxyPiano v2.0 — Instrument Panel & Effects Row
 *  © 2026 Roxy Emanuel. All Rights Reserved.
 * ================================================================
 */

.inst-section { border-bottom: 1px solid var(--border-2); }

/* ── Header Panel (Collapsible) ────────────────────────────────── */
.inst-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer; user-select: none;
  transition: var(--transition);
}
.inst-header:hover { background: var(--surface-2); }
.inst-header .panel-title {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.inst-header .arrow { transition: transform .3s; font-size: .7rem; color: var(--text-muted); }
.inst-header .arrow.open { transform: rotate(180deg); }

/* ── Body Panel ────────────────────────────────────────────────── */
.inst-body { max-height: 0; overflow: hidden; transition: max-height .4s ease-out; background: var(--surface); }
.inst-body.open { max-height: 800px; overflow-y: auto; }
.inst-inner { padding: 14px 20px; }

/* ── Pencarian Instrumen ───────────────────────────────────────── */
.inst-search {
  width: 100%; padding: 7px 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: .78rem;
  margin-bottom: 10px; outline: none;
  transition: var(--transition);
}
.inst-search:focus { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.inst-search::placeholder { color: var(--text-dim); }

/* ── Instrumen Terakhir Digunakan ──────────────────────────────── */
.inst-recent { margin-bottom: 12px; }
.inst-recent-label { font-size: .68rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.inst-recent-list { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Grid Kategori Instrumen ───────────────────────────────────── */
.inst-cat-title { font-size: .72rem; font-weight: 600; color: var(--accent-2); margin: 10px 0 6px; display: flex; align-items: center; gap: 6px; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 5px; margin-bottom: 6px; }
.inst-item {
  padding: 6px 10px; background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 6px;
  cursor: pointer; font-size: .72rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition); position: relative;
}
.inst-item:hover { border-color: var(--accent); background: var(--surface-3); }
.inst-item.active { border-color: var(--accent); background: rgba(0,212,255,.08); color: var(--accent); font-weight: 600; }
.inst-item .inst-fav {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: .65rem; opacity: .3; cursor: pointer; transition: var(--transition);
}
.inst-item .inst-fav:hover, .inst-item .inst-fav.faved { opacity: 1; color: var(--warning); }
.inst-item .inst-emoji { font-size: .85rem; }

/* ── Audio Effects Row ─────────────────────────────────────────── */
.fx-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  align-items: center;
}
.fx-group { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-muted); }
.fx-group label { white-space: nowrap; }
