/* chart-panes.css - Indikator-Chips (oben rechts im Chart-Frame) und
   Indikator-Panes (RSI, MACD) unter dem Chart. Nur Praefix .gt-pn- / #gt-panes /
   .gt-panes. Deck-Sprache: Glas, Lavendel, Brand #a855f7, ruhig und edel.
   Server-Modus (html.lwr-lite bzw. .gt-pn-lite): keine Uebergaenge, kein Schein. */

/* ---- Chips ---- */
.gt-pn-chips {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5; /* unter den Preis-Pills (.gt-right-tags, z-index 6) */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 140px);
  pointer-events: none;
}
.gt-pn-chip {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 3px 9px;
  min-height: 0;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: rgba(196, 181, 253, 0.72);
  font: 700 11px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.gt-pn-chip:hover {
  color: #e9d5ff;
  border-color: rgba(196, 181, 253, 0.36);
}
.gt-pn-chip.on {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.16);
  color: #f3e8ff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.22);
}
.gt-pn-chip:focus-visible {
  outline: 1px solid rgba(196, 181, 253, 0.6);
  outline-offset: 1px;
}

/* ---- Panes ---- */
.gt-panes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  --gt-pn-axis: 56px; /* Breite der linken Preisskala, setzt chart-panes.js */
}
.gt-panes.gt-pn-none { display: none; }
.gt-pn-pane {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08), transparent 60%),
    linear-gradient(180deg, #120c22, #08061a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.gt-pn-chart {
  width: 100%;
  height: 120px;
}
.gt-pn-title {
  position: absolute;
  top: 5px;
  left: calc(var(--gt-pn-axis) + 8px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  pointer-events: none;
  font: 700 10px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.gt-pn-vals {
  display: inline-flex;
  gap: 7px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #e9d5ff;
}
.gt-pn-vals .gt-pn-m { color: #38bdf8; }
.gt-pn-vals .gt-pn-s { color: #f6c85f; }
.gt-pn-vals .gt-pn-h { color: rgba(233, 213, 255, 0.7); }
.gt-pn-vals .gt-pn-h.up { color: #22c55e; }
.gt-pn-vals .gt-pn-h.down { color: #ff2a2a; }

/* ---- Server-Modus ---- */
.gt-pn-lite .gt-pn-chip,
html.lwr-lite .gt-pn-chip {
  transition: none;
  box-shadow: none;
}
.gt-pn-lite .gt-pn-pane,
html.lwr-lite .gt-pn-pane { box-shadow: none; }
.gt-pn-lite .gt-pn-title,
html.lwr-lite .gt-pn-title { text-shadow: none; }

/* ---- Handy ---- */
@media (max-width: 700px) {
  .gt-pn-chips {
    /* Unter der (auf dem Handy mehrzeiligen) Legende von chart-tools.js, damit
       sich beide nicht ueberlagern; die Legende haelt oben die volle Breite. */
    top: 84px;
    right: 6px;
    gap: 3px;
    max-width: calc(100% - 90px);
  }
  .gt-pn-chip {
    padding: 2px 6px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }
  .gt-pn-title { font-size: 9px; }
}
