/* ============================================================
   Mac Usta · Buttons, chips, panel cards, muted
   Loaded by index.html via <link>.  See styles/_index.css for order.
   ============================================================ */

   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--ink); color: var(--paper-0); }
.btn.primary:hover { background: var(--rust); border-color: var(--rust); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.thin { padding: 6px 14px; font-size: 11px; }

.btn.massive {
  padding: 18px 28px 18px 24px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -.01em;
  text-transform: none;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "WONK" 1;
}
.btn.massive svg { width: 32px; height: 12px; }
.btn.massive small {
  font-family: var(--f-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.btn.massive.ghost { color: var(--ink); }

/* chips */
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px 7px 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-0);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}
.chip:hover { background: var(--ink); color: var(--paper-0); }
.chip::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--rust);
  margin-right: 8px;
  display: inline-block;
}

/* inline link */
.link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--t-fast);
}
.link:hover { color: var(--rust); border-bottom-color: var(--rust); }

/* ============================================================

   8. PANEL (universal card)
   ============================================================ */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--paper-0), var(--paper));
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.4) inset,
    0 1px 0 rgba(14,27,48,.06),
    0 14px 28px -22px rgba(14,27,48,.4);
}
/* schematic corner ticks */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--ink);
  background: var(--paper-0);
  border-radius: 50%;
}
.panel::before { top: -4px; left: -4px; }
.panel::after  { bottom: -4px; right: -4px; }

.panel-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(14,27,48,.18);
  flex-wrap: wrap;
}
.panel-no {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 2px 8px;
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  background: rgba(183,62,46,.06);
}
.panel-head h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.panel-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: auto;
}
.panel-foot {
  margin-top: auto;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed rgba(14,27,48,.2);
}

.muted { color: var(--ink-mute); font-size: 12px; }

/* ============================================================
   Generic sub-tab strip (I²C, SPI, dahili sayfa içi anahtar)
   ============================================================ */
.sub-tabs {
  display: inline-flex;
  margin: 0 0 16px;
  border: 1px solid rgba(14,27,48,.18);
  border-radius: 4px;
  background: var(--paper-1);
  overflow: hidden;
}
.sub-tab {
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(14,27,48,.10);
  background: transparent;
  cursor: pointer;
  padding: 8px 18px;
  font-family: var(--f-sans);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  transition: background var(--t-fast);
}
.sub-tab:last-child { border-right: 0; }
.sub-tab:hover { background: var(--paper); color: var(--ink); }
.sub-tab.active {
  background: var(--ink);
  color: var(--paper-0);
}
.sub-pane { display: none; }
.sub-pane.sub-pane-active { display: block; animation: viewIn var(--t-mid); }

/* HEX dump / kod kutusu — bench sayfalarında oku/yaz çıktısı */
.dump-box {
  display: block;
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: var(--paper-1);
  border: 1px solid rgba(14,27,48,.18);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
  resize: vertical;
}
textarea.dump-box { min-height: 140px; }
input[type="file"].dump-box {
  min-height: 0;
  padding: 9px 12px;
  font-size: 12px;
  resize: none;
}

/* ============================================================
