/* === Mint Ticker Badge – style.css (v1.3.1 hard override) === */

/* ---------- Temel değişkenler (AUTO varsayılan: light) ---------- */
.mint-ticker-badge {
  --mint: #33FF99;
  --bg: #ffffff;
  --txt: #0b0f12;
  --muted: #5d6b63;
  --up: #1cab56;
  --down: #d62828;

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(51,255,153,.50);
  border-radius: 999px;
  padding: .35rem .75rem;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(51,255,153,.07), rgba(51,255,153,.03));
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  color: var(--txt) !important;                 /* ← temel renk */
  opacity: 1 !important; mix-blend-mode: normal !important;
}

/* ---------- Tema/Elementor link baskılarını bastır ---------- */
.mint-ticker-badge a,
.mint-ticker-badge a:visited,
.mint-ticker-badge a:hover,
.mint-ticker-badge .mtb-link {
  color: inherit !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: 1 !important; mix-blend-mode: normal !important;
}

/* ---------- İç metinler: ZORUNLU okuma rengi ---------- */
.mint-ticker-badge .mtb-symbol,
.mint-ticker-badge .mtb-price {
  color: var(--txt) !important;
  -webkit-text-fill-color: currentColor !important; /* Safari */
  opacity: 1 !important; mix-blend-mode: normal !important;
}
.mint-ticker-badge .mtb-name { color: var(--muted) !important; }
.mint-ticker-badge .mtb-change.up { color: var(--up) !important; }
.mint-ticker-badge .mtb-change.down { color: var(--down) !important; }

/* Boyutlar */
.mint-ticker-badge.size-sm { font-size: .80rem; padding: .25rem .6rem; }
.mint-ticker-badge.size-md { font-size: .92rem; }
.mint-ticker-badge.size-lg { font-size: 1.05rem; padding: .45rem .9rem; }

/* ---------- Sparkline ---------- */
.mint-ticker-badge .mtb-chartwrap { display: inline-flex; align-items: center; margin-left: .35rem; }
.mint-ticker-badge .mtb-chart {
  width: 120px; height: var(--chart-h, 28px);
  color: #33FF99 !important; opacity: 1 !important; mix-blend-mode: normal !important;
}
.mint-ticker-badge.size-sm .mtb-chart { width: 100px; }
.mint-ticker-badge.size-lg .mtb-chart { width: 140px; }

/* ---------- AUTO THEME (theme="auto") ---------- */
.mint-ticker-badge.theme-auto { /* base: light */
  --bg: #ffffff; --txt: #0b0f12; --muted: #5d6b63;
  background: linear-gradient(180deg, rgba(51,255,153,.07), rgba(51,255,153,.03));
  border-color: rgba(51,255,153,.50);
  color: var(--txt) !important;
}
@media (prefers-color-scheme: dark) {
  .mint-ticker-badge.theme-auto {
    --bg: #0b0f12; --txt: #e6f7ef; --muted: #9fb8a9;
    background: linear-gradient(180deg, rgba(51,255,153,.1), rgba(51,255,153,.06));
    border-color: rgba(51,255,153,.35);
    color: var(--txt) !important;
  }
}
/* Tema sinyalleri */
html.dark .mint-ticker-badge.theme-auto,
body.dark .mint-ticker-badge.theme-auto,
[data-theme="dark"] .mint-ticker-badge.theme-auto {
  --bg: #0b0f12; --txt: #e6f7ef; --muted: #9fb8a9;
  background: linear-gradient(180deg, rgba(51,255,153,.1), rgba(51,255,153,.06));
  border-color: rgba(51,255,153,.35);
  color: var(--txt) !important;
}
html.light .mint-ticker-badge.theme-auto,
body.light .mint-ticker-badge.theme-auto,
[data-theme="light"] .mint-ticker-badge.theme-auto {
  --bg: #ffffff; --txt: #0b0f12; --muted: #5d6b63;
  background: linear-gradient(180deg, rgba(51,255,153,.07), rgba(51,255,153,.03));
  border-color: rgba(51,255,153,.50);
  color: var(--txt) !important;
}

/* ---------- Gutenberg editör uyumu ---------- */
.editor-styles-wrapper .mint-ticker-badge a,
.editor-styles-wrapper .mint-ticker-badge .mtb-link { color: inherit !important; }

/* ---------- (Opsiyonel) Son çare: kapsayıcıdan miras gelen beyaz rengi kes ---------- */
/* Aşağıdaki satırı, hâlâ beyaz kalırsa açın (yorumdan çıkarın). */
/*
.mint-ticker-badge, .mint-ticker-badge * { color: var(--txt) !important; }
*/
