/* ============================================================
   BTC MINING SIMULATOR — mining-glass.css
   Glass / Light Theme — importiert mining.css als Basis und
   überschreibt Design-Tokens + hardcodierte Dunkelwerte.
   ============================================================ */

@import url('./mining.css');

/* ── DESIGN-TOKENS: Light/Glass Override ─────────────────── */
:root {
  /* Hintergrundflächen */
  --bg:           #c8dff0;
  --surface:      rgba(255,255,255,.58);
  --panel:        rgba(255,255,255,.48);
  --control:      rgba(255,255,255,.40);
  --control-hi:   rgba(255,255,255,.62);
  --border:       rgba(0,0,0,.10);
  --border-dim:   rgba(0,0,0,.06);

  /* Text */
  --text:         #0d1b2a;
  --text-muted:   rgba(13,27,42,.62);
  --text-dim:     rgba(13,27,42,.38);

  /* BTC-Orange — etwas dunkler/satter für hellen Hintergrund */
  --btc:          #d4780e;
  --btc-light:    #e89030;
  --btc-dim:      rgba(212,120,14,.40);
  --btc-glow:     rgba(212,120,14,.22);
  --btc-faint:    rgba(212,120,14,.08);

  /* Grün / Rot */
  --green:        #1a9e44;
  --green-dim:    rgba(26,158,68,.18);
  --green-glow:   rgba(26,158,68,.35);
  --red:          #c0392b;
  --red-dim:      rgba(192,57,43,.12);
}

/* ── BODY: Glassmorphism-Hintergrund ─────────────────────── */
body {
  background-color: #c8dff0;
  background-image: url('../../img/GlassCVHintergrund.png');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text);
}

/* Licht-Overlay wie cv-glass.html */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(230,245,255,.40) 0%,
    rgba(210,232,252,.18) 42%,
    rgba(218,238,255,.30) 100%
  );
  pointer-events: none; z-index: 0;
}

/* ── HEADER ──────────────────────────────────────────────── */
.mining-header {
  background: rgba(255,255,255,.52);
  backdrop-filter: saturate(2) blur(22px);
  -webkit-backdrop-filter: saturate(2) blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.52);
}

/* ── MINING PANEL ────────────────────────────────────────── */
.mining-panel {
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.52);
  border-top: 2px solid var(--btc-dim);
  box-shadow:
    0 2px 14px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.72);
}
.mining-panel:hover {
  border-color: rgba(212,120,14,.28);
  box-shadow:
    0 5px 22px rgba(0,0,0,.09),
    inset 0 1px 0 rgba(255,255,255,.78);
}

/* ── RESULTS PANEL ───────────────────────────────────────── */
.results-panel {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.55);
  border-top: 2px solid var(--btc-dim);
  box-shadow:
    0 4px 24px rgba(0,0,0,.08),
    0 0 0 1px rgba(212,120,14,.08);
}
.results-head {
  background: rgba(255,255,255,.38);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ── CHART CARDS ─────────────────────────────────────────── */
.chart-card {
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.52);
  border-top: 2px solid var(--btc-dim);
}
.chart-card-head {
  background: rgba(255,255,255,.30);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* ── LIVE PANEL ──────────────────────────────────────────── */
.live-panel {
  background: rgba(255,255,255,.48);
  border-color: rgba(0,0,0,.08);
}
.live-toggle-input:checked + .live-toggle-track {
  background: var(--btc-dim);
  border-color: var(--btc);
}

/* ── MODE-TOGGLE ─────────────────────────────────────────── */
.mode-toggle-wrap {
  background: rgba(255,255,255,.44);
  border-color: rgba(0,0,0,.08);
}
.mode-btn {
  background: transparent;
  color: var(--text-muted);
}
.mode-btn.active {
  background: rgba(212,120,14,.12);
  color: var(--btc);
}

/* ── EXPERT BODY ─────────────────────────────────────────── */
.expert-body {
  background: rgba(255,255,255,.42);
  border-color: rgba(0,0,0,.07);
}

/* ── DISCLAIMER ──────────────────────────────────────────── */
.disclaimer-block {
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0,0,0,.08);
  border-left-color: var(--btc-dim);
}

/* ── PRESET BUTTONS ──────────────────────────────────────── */
.preset-btn {
  background: rgba(255,255,255,.44);
  border-color: rgba(0,0,0,.10);
  color: var(--text-muted);
}
.preset-btn:hover {
  background: rgba(255,255,255,.66);
}

/* ── DIREKTEINGABE ───────────────────────────────────────── */
.slider-direct-input {
  background: rgba(255,255,255,.60);
  border-color: rgba(0,0,0,.12);
  color: var(--text);
}
.slider-direct-input:focus {
  border-color: var(--btc-dim);
}

/* ── SLIDER: Spur-Schatten für hellen Hintergrund ────────── */
input[type="range"] {
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}

/* ── POOL-FEE-STRIP ──────────────────────────────────────── */
.pool-fee-strip {
  background: rgba(255,255,255,.44);
  border-color: rgba(0,0,0,.08);
}

/* ── EFFIZIENZ-STRIP ─────────────────────────────────────── */
.efficiency-strip {
  background: rgba(255,255,255,.44);
  border-color: rgba(0,0,0,.08);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.mining-footer {
  background: rgba(255,255,255,.28);
  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--text-muted);
}
.mining-footer a { color: var(--btc); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.16);
}

/* ── FLOATING SWITCHER: Glass-Stil (wie cv-glass.html) ───── */
.style-switcher {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.sw-label {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: rgba(13,27,42,.60);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.72);
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(0,0,0,.06), 0 1px 0 rgba(255,255,255,.54) inset;
}
.sw-btns { display: flex; gap: 9px; }
.style-switcher .mode-btn {
  width: 46px; height: 46px; border-radius: 50%;
  line-height: 0; font-size: 0; padding: 0;
  background: rgba(255,255,255,.92);
  border: 1.5px solid rgba(255,255,255,.70);
  box-shadow: 0 2px 14px rgba(0,0,0,.10);
  transition: transform .26s cubic-bezier(.34,1.56,.64,1), box-shadow .20s, border-color .20s;
  overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0; color: rgba(13,27,42,.55);
  text-decoration: none;
}
.style-switcher .mode-btn:hover {
  transform: scale(1.10);
  box-shadow: 0 0 0 2px rgba(0,180,216,.70), 0 6px 24px rgba(0,0,0,.10);
  border-color: rgba(0,180,216,.70);
}
.style-switcher .mode-btn.active {
  border-color: rgba(0,180,216,.90);
  box-shadow: 0 0 0 2px rgba(0,180,216,.60), 0 0 22px rgba(0,180,216,.25);
  cursor: default;
}
.style-switcher .mode-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.style-switcher .mode-btn:focus-visible { outline: 2px solid rgba(0,180,216,.80); outline-offset: 3px; }
@media (max-width:600px) { .style-switcher { bottom:16px; right:16px; } }
@media (max-width:380px) {
  .style-switcher { bottom:12px; right:12px; gap:6px; }
  .style-switcher .mode-btn { width:40px; height:40px; }
}
