@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "@fontsource-variable/geist";

@custom-variant dark (&:is(.dark *));

/* Dark-only theme — deep abyss navy */
:root {
    --background: #050810;
    --foreground: #e2e8f0;
    --card: rgba(12, 16, 32, 0.6);
    --card-foreground: #e2e8f0;
    --popover: #0a0e1a;
    --popover-foreground: #e2e8f0;
    --primary: #38bdf8;
    --primary-foreground: #050810;
    --secondary: #0a0f1c;
    --secondary-foreground: #e2e8f0;
    --muted: #0a0f1c;
    --muted-foreground: #7a8599;
    --accent: #22d3ee;
    --accent-foreground: #050810;
    --destructive: #f87171;
    --border: #131b30;
    --input: #131b30;
    --ring: #38bdf8;
    --radius: 0;

    --sidebar: #070b14;
    --sidebar-foreground: #e2e8f0;
    --sidebar-primary: #38bdf8;
    --sidebar-primary-foreground: #050810;
    --sidebar-accent: rgba(12, 16, 32, 0.6);
    --sidebar-accent-foreground: #e2e8f0;
    --sidebar-border: #131b30;
    --sidebar-ring: #38bdf8;
}

.dark {
    --background: #050810;
    --foreground: #e2e8f0;
    --card: rgba(12, 16, 32, 0.6);
    --card-foreground: #e2e8f0;
    --popover: #0a0e1a;
    --popover-foreground: #e2e8f0;
    --primary: #38bdf8;
    --primary-foreground: #050810;
    --secondary: #0a0f1c;
    --secondary-foreground: #e2e8f0;
    --muted: #0a0f1c;
    --muted-foreground: #7a8599;
    --accent: #22d3ee;
    --accent-foreground: #050810;
    --destructive: #f87171;
    --border: #131b30;
    --input: #131b30;
    --ring: #38bdf8;

    --sidebar: #070b14;
    --sidebar-foreground: #e2e8f0;
    --sidebar-primary: #38bdf8;
    --sidebar-primary-foreground: #050810;
    --sidebar-accent: rgba(12, 16, 32, 0.6);
    --sidebar-accent-foreground: #e2e8f0;
    --sidebar-border: #131b30;
    --sidebar-ring: #38bdf8;
}

@theme inline {
    --font-sans: 'Geist Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;

    /* Custom game colors */
    --color-tank: #38bdf8;
    --color-healer: #34d399;
    --color-dps: #f87171;
    --color-everyone: #fbbf24;
    --color-accent-blue: #38bdf8;
    --color-accent-purple: #a78bfa;
    --color-accent-amber: #fbbf24;
    --color-accent-red: #f87171;
    --color-accent-green: #34d399;
    --color-accent-cyan: #22d3ee;
    --color-accent-pink: #f472b6;
    --color-bg-primary: #050810;
    --color-bg-secondary: #070b14;
    --color-bg-card: rgba(12, 16, 32, 0.6);
    --color-bg-card-hover: rgba(18, 24, 48, 0.7);
    --color-border-default: #131b30;
    --color-border-accent: #1a2540;
    --color-text-default: #e2e8f0;
    --color-text-muted: #7a8599;
    --color-text-dim: #4a5568;

    /* Frosted glass */
    --color-frost: rgba(12, 16, 32, 0.55);
    --color-frost-border: rgba(56, 189, 248, 0.08);

    /* shadcn mappings */
    --color-sidebar-ring: var(--sidebar-ring);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar: var(--sidebar);
    --color-ring: var(--ring);
    --color-input: var(--input);
    --color-border: var(--border);
    --color-destructive: var(--destructive);
    --color-accent-foreground: var(--accent-foreground);
    --color-accent: var(--accent);
    --color-muted-foreground: var(--muted-foreground);
    --color-muted: var(--muted);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-secondary: var(--secondary);
    --color-primary-foreground: var(--primary-foreground);
    --color-primary: var(--primary);
    --color-popover-foreground: var(--popover-foreground);
    --color-popover: var(--popover);
    --color-card-foreground: var(--card-foreground);
    --color-card: var(--card);
    --color-foreground: var(--foreground);
    --color-background: var(--background);
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --radius-3xl: 0;
    --radius-4xl: 0;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    margin: 0;
    line-height: 1.5;
    min-height: 100vh;
  }
  html {
    @apply font-sans;
  }
}

/* ── Frosted glass utility ── */
.frost {
  background: var(--color-frost);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--color-frost-border);
}

.frost-heavy {
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(56, 189, 248, 0.06);
}

/* ── Wowhead tooltip overrides ── */
.iconsmall { vertical-align: middle; margin-right: 4px; }

/* ── Content HTML class overrides (used inside dangerouslySetInnerHTML) ── */
.warn { color: #f87171; }
.tip { color: #34d399; }

.wing-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}
.wing-arcane { background: rgba(167, 139, 250, 0.15); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }
.wing-void { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.wing-light { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
