/* ═══════════════════════════════════════════════════════════════════════════
   THEME: Clean Minimal ✨
   Premium minimalist aesthetic with elegant simplicity
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="minimal"] {
  /* ─── Core Palette ─────────────────────────── */
  --bg-base:        #faf9f7;
  --bg-panel:       #ffffff;
  --bg-card:        #f5f4f2;
  --bg-card-hover:  #ffffff;
  --bg-border:      #e8e6e3;
  --bg-border-dim:  #f0eee9;

  /* Team Colors - Muted Elegant */
  --t-color:        #d97706;
  --t-dim:          rgba(217,119,6,0.08);
  --t-border:       rgba(217,119,6,0.2);
  --ct-color:       #2563eb;
  --ct-dim:         rgba(37,99,235,0.08);
  --ct-border:      rgba(37,99,235,0.2);

  /* Text - Darker on Light */
  --text-primary:   #1a1917;
  --text-secondary: #6b6965;
  --text-muted:     #c4c1bc;

  /* Status - Clean Colors */
  --hp-high:        #16a34a;
  --hp-mid:         #ca8a04;
  --hp-low:         #dc2626;
  --money:          #16a34a;

  /* ─── Body & Background ────────────────────── */
  --body-gradient: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
}

[data-theme="minimal"] body {
  background: var(--body-gradient);
  color: var(--text-primary);
}

[data-theme="minimal"] body::after {
  background: linear-gradient(180deg, #faf9f7 0%, #f5f4f2 100%);
  opacity: 1;
  z-index: -1;
}

/* ─── Card Effects - Clean Shadows ────────────── */
[data-theme="minimal"] .player-card {
  border: 1px solid var(--bg-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

[data-theme="minimal"] .player-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--bg-border);
}

/* ─── Scoreboard Minimal ──────────────────────── */
[data-theme="minimal"] .scoreboard {
  border: 1px solid var(--bg-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 6px;
}

/* ─── Light Text Override ────────────────────── */
[data-theme="minimal"],
[data-theme="minimal"] body {
  color: var(--text-primary);
}

[data-theme="minimal"] span,
[data-theme="minimal"] p,
[data-theme="minimal"] div {
  color: inherit;
}

/* Fix for inline styles using var(--text-primary) */
[data-theme="minimal"] [style*="var(--text-primary)"] {
  color: var(--text-primary) !important;
}

[data-theme="minimal"] [style*="rgba(255,255,255"] {
  color: var(--text-primary) !important;
  opacity: calc(1 - 0.78);
}

/* Fix for secondary text */
[data-theme="minimal"] [style*="var(--text-secondary)"] {
  color: var(--text-secondary) !important;
}

/* Fix for muted text */
[data-theme="minimal"] [style*="var(--text-muted)"] {
  color: var(--text-muted) !important;
}

/* ─── Team Headers Minimal ────────────────────── */
[data-theme="minimal"] .team-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

[data-theme="minimal"] .team-label-t,
[data-theme="minimal"] .team-label-ct {
  text-shadow: none;
}

/* ─── Bomb Timer Minimal ──────────────────────── */
[data-theme="minimal"] [style*="rgba(40,8,8,0.9)"] {
  background: #ffffff !important;
  border-left: 2px solid var(--hp-low) !important;
  border-right: 2px solid var(--hp-low) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ─── Connecting Ring Minimal ─────────────────── */
[data-theme="minimal"] .connecting-ring {
  border: 2px solid var(--bg-border);
  border-top-color: var(--ct-color);
  border-radius: 50%;
}

/* ─── C4 Badge Minimal ───────────────────────── */
[data-theme="minimal"] [style*="rgba(239,68,68,0.18)"] {
  background: rgba(220,38,38,0.06) !important;
  border: 1px solid rgba(220,38,38,0.2) !important;
  border-radius: 4px;
}

/* ─── Phase Pulse Minimal ─────────────────────── */
@keyframes phasePulseMinimal {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

[data-theme="minimal"] [style*="phasePulse"] {
  animation: phasePulseMinimal 1s ease-in-out infinite alternate;
  text-shadow: none !important;
}

/* ─── Radar Container Minimal ─────────────────── */
[data-theme="minimal"] #radar {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--bg-border);
}

/* ─── Fullscreen Bar Minimal ──────────────────── */
[data-theme="minimal"] [style*="rgba(13,17,23,0.92)"] {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid var(--bg-border) !important;
  color: var(--text-primary);
}

/* ─── Scrollbar Minimal ───────────────────────── */
[data-theme="minimal"] ::-webkit-scrollbar {
  width: 6px;
}

[data-theme="minimal"] ::-webkit-scrollbar-track {
  background: transparent;
}

[data-theme="minimal"] ::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 3px;
}

[data-theme="minimal"] ::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── Weapon Icon Minimal ─────────────────────── */
[data-theme="minimal"] [style*="rgba(245,166,35,0.15)"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--bg-border) !important;
  border-radius: 4px;
}

/* ─── Settings Panel Minimal ───────────────────── */
[data-theme="minimal"] .settings-panel {
  border: 1px solid var(--bg-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #ffffff;
}

/* ─── Fullscreen Player Panels Gradient Fix ───── */
[data-theme="minimal"] [style*="from-black/60"] {
  background: linear-gradient(90deg, rgba(250,249,247,0.95) 0%, transparent 100%) !important;
}

[data-theme="minimal"] [style*="from-black/60"][style*="from-transparent"] {
  background: linear-gradient(270deg, rgba(250,249,247,0.95) 0%, transparent 100%) !important;
}

/* ─── Bomb Text Shadow Fix ────────────────────── */
[data-theme="minimal"] [style*="textShadow"] {
  text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* ─── Money Color Fix ─────────────────────────── */
[data-theme="minimal"] [style*="var(--money)"] {
  color: var(--money) !important;
}

/* ─── HP Bar Minimal ───────────────────────────── */
[data-theme="minimal"] [style*="position: absolute, bottom: 0"] {
  background: var(--bg-border-dim);
}

/* ─── Portrait Gradient Fix ───────────────────── */
[data-theme="minimal"] [style*="linear-gradient"] {
  opacity: 0.5;
}

/* ─── Defuser/Kit Icon Minimal ────────────────── */
[data-theme="minimal"] [style*="rgba(74,158,255,0.1)"] {
  background: rgba(37,99,235,0.06) !important;
  border: 1px solid rgba(37,99,235,0.15) !important;
}

/* ─── Sep Line ────────────────────────────────── */
[data-theme="minimal"] .sep {
  background: var(--bg-border);
}

/* ─── Ammo Bar Minimal ─────────────────────────── */
[data-theme="minimal"] [style*="rgba(255,255,255,0.07)"] {
  background: var(--bg-border) !important;
}