/* =============================================================================
   MarsGames · accents.css
   Vurgu katmanı. Taban gece zemininde MarsGames kızılıdır; bu dosya altın
   (ödül, VIP) ve mavi (bilgi, "yakında") dokunuşlarını ekler. Eski ametist ve
   ember adları korunur, değerleri marka paletine eşlenmiştir.
   Loaded AFTER components.css so these targeted lifts win the cascade.
   Two parts: (1) a few safe site-wide lifts of existing components,
   (2) opt-in utility classes the pages/workflow apply at precise spots.
   Keep it POINTED, not a repaint: dark ground + MarsGames red stay dominant.
   ============================================================================= */

/* ------------------------------------------------------------------ 1. LIFTS */

/* "Hot" tab/badge (e.g. Eşli Okey 101) reads as live/heat -> ember-crimson. */
.dash-tab__tag--hot,
.badge--hot,
.tag--hot {
  background: var(--hy-gradient-ember, linear-gradient(135deg,#E8001A,#B30012)) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(232,0,26,0.35);
}
/* "Soon / V2" badge -> cool amethyst so it reads future, not dead grey. */
.dash-tab__tag--soon,
.badge--soon,
.tag--soon {
  background: var(--hy-gradient-amethyst, linear-gradient(135deg,#93C5FD,#60A5FA)) !important;
  color: #111825 !important;
  border: none !important;
}

/* Podium / rank medals: real metal, not flat ice. Shared by masa score modal,
   liderlik podium and any .rank-medal user. */
.rank-medal--1 {
  background: var(--hy-gradient-gold, linear-gradient(135deg,#FFD766,#F5A623)) !important;
  color: #3A2400 !important;
  box-shadow: 0 0 0 1px rgba(255,197,61,0.5), 0 6px 18px rgba(245,166,35,0.4);
}
.rank-medal--2 {
  background: linear-gradient(135deg, #EDEFF4, #AFB9CE) !important;
  color: #222B3C !important;
  box-shadow: 0 0 0 1px rgba(212,218,229,0.5), 0 6px 16px rgba(150,163,188,0.35);
}
.rank-medal--3 {
  background: linear-gradient(135deg, #E8A66B, #B4692E) !important;
  color: #331803 !important;
  box-shadow: 0 0 0 1px rgba(205,127,69,0.5), 0 6px 16px rgba(180,105,46,0.35);
}

/* Para işareti: MarsGames Çip görseli. Lobi ve masa kendi jeton kurallarını
   (lobi.css .lby-wallet__coin, masa.css .balance-pill__coin) aynı görselle
   taşır; bu dosya artık onları !important ile ezmez. */
.coin-mark {
  background: url("../img/economy/cip-64.webp") center / cover no-repeat;
  color: transparent;
  border: none;
}

/* Credit amounts stay emerald; debit stays crimson (semantic, just richer). */
.rank-prize.is-credit,
.amount-credit { color: var(--hy-color-emerald-400, #3DD6A0) !important; }
.rank-prize.is-debit,
.amount-debit  { color: var(--hy-color-crimson-400, #FF3B54) !important; }

/* Winner row in score/leaderboard gets a warm gold wash instead of flat ice. */
.rank-row.is-first,
tr.is-winner {
  background: linear-gradient(90deg, rgba(255,197,61,0.12), rgba(255,197,61,0) 70%) !important;
  box-shadow: inset 3px 0 0 var(--hy-color-gold-400, #FFC53D);
}

/* --------------------------------------------------------------- 2. UTILITIES */
/* Text tints */
.jw-gold     { color: var(--hy-color-gold-400, #FFC53D) !important; }
.jw-crimson  { color: var(--hy-color-crimson-400, #FF3B54) !important; }
.jw-amethyst { color: var(--hy-color-amethyst-400, #60A5FA) !important; }
.jw-emerald  { color: var(--hy-color-emerald-400, #3DD6A0) !important; }

/* Gradient text (headings / big numbers / prizes) */
.jw-text-gold, .jw-text-ember, .jw-text-crimson, .jw-text-royal {
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jw-text-gold    { background-image: var(--hy-gradient-gold-sheen, linear-gradient(135deg,#FFF3CB,#FFC53D,#E0870A)); }
.jw-text-ember   { background-image: var(--hy-gradient-ember, linear-gradient(118deg,#E11D48,#F5A623)); }
.jw-text-crimson { background-image: var(--hy-gradient-crimson, linear-gradient(135deg,#FF6B7A,#E11D48)); }
.jw-text-royal   { background-image: var(--hy-gradient-royal, linear-gradient(135deg,#1C263B,#99000F)); }

/* Chip / badge fills */
.chip-gold     { background: var(--hy-gradient-gold, linear-gradient(135deg,#FFD766,#F5A623)); color:#3A2400; border:none; }
.chip-crimson  { background: var(--hy-gradient-crimson, linear-gradient(135deg,#FF6B7A,#E11D48)); color:#fff; border:none; }
.chip-amethyst { background: var(--hy-gradient-amethyst, linear-gradient(135deg,#93C5FD,#60A5FA)); color:#111825; border:none; }
.chip-jackpot  { background: var(--hy-gradient-jackpot, linear-gradient(120deg,#7C0A24,#E11D48 34%,#F5A623)); color:#fff; border:none; }

/* Soft accent surfaces (cards/tiles) */
.surf-gold     { background: linear-gradient(180deg, rgba(255,197,61,0.10), rgba(255,197,61,0.02)); border:1px solid rgba(255,197,61,0.28); }
.surf-crimson  { background: linear-gradient(180deg, rgba(255,59,84,0.10), rgba(255,59,84,0.02)); border:1px solid rgba(255,59,84,0.28); }
.surf-amethyst { background: linear-gradient(180deg, rgba(96,165,250,0.10), rgba(96,165,250,0.02)); border:1px solid rgba(96,165,250,0.28); }

/* Glow emphasis on hover/active */
.glow-gold     { box-shadow: var(--hy-shadow-glow-gold, 0 0 24px rgba(245,166,35,0.38)); }
.glow-crimson  { box-shadow: var(--hy-shadow-glow-crimson, 0 0 24px rgba(225,29,72,0.38)); }
.glow-amethyst { box-shadow: var(--hy-shadow-glow-amethyst, 0 0 24px rgba(96,165,250,0.36)); }

/* Live dot (online / canlı) -> emerald pulse; hot dot -> crimson */
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%;
  background: var(--hy-color-emerald-500, #12B981); box-shadow: 0 0 0 3px rgba(18,185,129,0.22); }
.hot-dot  { display:inline-block; width:8px; height:8px; border-radius:50%;
  background: var(--hy-color-crimson-400, #FF3B54); box-shadow: 0 0 0 3px rgba(255,59,84,0.22); }

/* Tier badge tints (progression) */
.tier-gold, .is-tier-gold       { color: var(--hy-color-gold-400, #FFC53D); }
.tier-diamond, .is-tier-diamond { color: var(--hy-color-tier-diamond, #60A5FA); }
.tier-legend, .is-tier-legend   { color: var(--hy-color-crimson-400, #FF2A3D); }

/* Left rail: active icon MarsGames kızılı ("you are here"); açık alt menü hafif kızıl. */
.lby-railbtn[aria-current="page"],
.lby-railbtn.is-active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #E8001A, #B30012) !important;
  box-shadow: inset 0 0 0 1px rgba(255,92,107,0.40), 0 0 16px rgba(232,0,26,0.22) !important;
}
.lby-railbtn[aria-current="page"]::before,
.lby-railbtn.is-active::before {
  background: linear-gradient(180deg, #FF5C6B, #E8001A) !important;
  box-shadow: 0 0 10px rgba(232,0,26,0.7) !important;
}
.lby-railbtn.is-flyopen {
  color: #FFD5D9 !important;
  background: rgba(232,0,26,0.12) !important;
}

/* ===================== ANIMATED AVATAR FRAMES (.hframe) =====================
   Add `hframe hframe--<variant>` to a round avatar wrapper: a continuously
   rotating gradient ring + a breathing glow. Pure CSS, crisp at any size,
   consistent everywhere. Replaces the flat static PNG frames. */
.hframe { position: relative; }
.hframe::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 0deg, var(--hf-a) 0%, var(--hf-b) 25%, var(--hf-c) 50%, var(--hf-b) 75%, var(--hf-a) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  z-index: 4; pointer-events: none;
  animation: hframe-spin 7s linear infinite;
}
.hframe::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 3; pointer-events: none;
  box-shadow: 0 0 20px var(--hf-glow), inset 0 0 9px var(--hf-glow);
  animation: hframe-pulse 2.6s ease-in-out infinite;
}
@keyframes hframe-spin { to { transform: rotate(360deg); } }
@keyframes hframe-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hframe::before, .hframe::after { animation: none; } }

/* variants: 3 gradient stops + glow color
   Kozmetik çerçeve renkleri satılan ve kazanılan öğenin kendi görünümüdür; marka
   dönüşümünde değişmez (ENVANTER-PLAN: kozmetik dışlanır). safir ve neon eski
   tonlarındadır, bilerek bırakıldı: araclar/marka/izin.json (kural E). */
.hframe--safir  { --hf-a: #0D4E6E; --hf-b: #3FC7F4; --hf-c: #CDF1FC; --hf-glow: rgba(63,199,244,0.55); }
.hframe--altin  { --hf-a: #9E6206; --hf-b: #FFC53D; --hf-c: #FFF3CB; --hf-glow: rgba(245,166,35,0.55); }
.hframe--zumrut { --hf-a: #0B7A55; --hf-b: #12B981; --hf-c: #7EEFC0; --hf-glow: rgba(18,185,129,0.50); }
.hframe--ates   { --hf-a: #7C0A24; --hf-b: #FF3B54; --hf-c: #F5A623; --hf-glow: rgba(255,59,84,0.50); }
.hframe--neon   { --hf-a: #FF3B54; --hf-b: #7C5CFF; --hf-c: #3FC7F4; --hf-glow: rgba(124,92,255,0.50); }
.hframe--efsane { --hf-a: #5E3FE0; --hf-b: #C4B4FF; --hf-c: #FFD766; --hf-glow: rgba(124,92,255,0.55); }
