/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Skullgirls themed */
  --color-bg: #050308; /* midnight black */
  --color-surface: #0f0b16;
  --color-surface-elevated: #171425;

  --color-text: #f7f7ff; /* bright white */
  --color-text-muted: #c0bdcf;
  --color-border-subtle: #2b263d;

  --color-primary: #e1123a; /* deep crimson */
  --color-primary-soft: rgba(225, 18, 58, 0.15);
  --color-primary-dark: #a50c2a;

  --color-accent: #8f3dff; /* electric purple */
  --color-accent-soft: rgba(143, 61, 255, 0.18);

  --color-teal: #11c9b5; /* vibrant teal */
  --color-teal-soft: rgba(17, 201, 181, 0.16);

  --color-success: #35d07f;
  --color-warning: #ffb53d;
  --color-danger: #ff3255;

  --gray-50: #f8fafc;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0b1120;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Bangers", "Comic Sans MS", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - punchy comic-style */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.65);
  --shadow-outline-primary: 0 0 0 2px rgba(225, 18, 58, 0.85),
    0 0 24px rgba(225, 18, 58, 0.6);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 240ms ease-out;

  /* Layout */
  --container-max-width: 1200px;
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================
   Reset / Normalize
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

img,
svg,
video,
canvas,
audio,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Remove default focus outlines; we'll restore with :focus-visible */
:focus {
  outline: none;
}

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #1b0f29 0, #050308 55%)
    fixed;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 3.4vw + 1.6rem, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.8rem, 2.5vw + 1.1rem, 2.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

strong {
  font-weight: 700;
}

code,
pre {
  font-family: var(--font-mono);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
  transition: width var(--transition-base);
}

a:hover {
  color: var(--color-teal);
}

a:hover::after {
  width: 100%;
}

small {
  font-size: var(--font-size-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/* ========================================================================
   Accessibility
   ======================================================================== */
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-outline-primary);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================
   Utilities
   ======================================================================== */
/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

@media (max-width: 640px) {
  .section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Alignment & text */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Spacing utilities (example subset) */
.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.pt-6 {
  padding-top: var(--space-6);
}

.pb-6 {
  padding-bottom: var(--space-6);
}

/ * Width helpers */
.w-full {
  width: 100%;
}

/* ========================================================================
   Components
   ======================================================================== */
/* Buttons - primary call-to-action, variant-ready */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-dark);
  --btn-text: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.4rem;
  border-radius: calc(var(--radius-md) + 2px);
  border: 2px solid #000;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 3px 0 #000, 0 10px 22px rgba(0, 0, 0, 0.7);
  transform: translateY(0);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    filter var(--transition-fast);
}

.btn:hover {
  background: var(--btn-bg-hover);
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #000, 0 18px 30px rgba(0, 0, 0, 0.8);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #000, 0 6px 14px rgba(0, 0, 0, 0.7);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: 0 0 0 #000, 0 0 0 rgba(0, 0, 0, 0.4);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(225, 18, 58, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(0, 0, 0, 0.5);
  border-color: transparent;
  color: var(--color-text);
  box-shadow: none;
}

.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-bg-hover: #6f1fff;
}

.btn--teal {
  --btn-bg: var(--color-teal);
  --btn-bg-hover: #0ea896;
  color: #020617 !important;
}

/* Inputs */
.input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: rgba(6, 5, 12, 0.95);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(192, 189, 207, 0.7);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent-soft),
    0 0 0 3px rgba(143, 61, 255, 0.45);
}

.input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}

/* Card - for fighter profiles, mechanic explanations, etc. */
.card {
  position: relative;
  background: linear-gradient(145deg, #0c0915, #1a152a);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(225, 18, 58, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(17, 201, 181, 0.2), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--bordered {
  border: 2px solid var(--color-border-subtle);
}

.card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-strong);
}

/* Tag / pill for tiers, roles, etc. */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text-muted);
}

.tag--primary {
  background: var(--color-primary-soft);
  border-color: rgba(225, 18, 58, 0.7);
  color: #ffe5ec;
}

.tag--accent {
  background: var(--color-accent-soft);
  border-color: rgba(143, 61, 255, 0.7);
  color: #f9f5ff;
}

.tag--teal {
  background: var(--color-teal-soft);
  border-color: rgba(17, 201, 181, 0.7);
  color: #e6fffb;
}

/* Hero-esque background utility for dynamic scenes */
.hero-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(225, 18, 58, 0.7), transparent 65%),
    radial-gradient(circle at top right, rgba(143, 61, 255, 0.6), transparent 60%),
    radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08) 0,
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.06) 100%
    );
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

/* Simple badge for Hungarian labels like "Új", "Meta", etc. */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.badge--danger {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.7);
  color: #fee2e2;
}

.badge--success {
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.6);
  color: #dcfce7;
}

.badge--warning {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.7);
  color: #fef9c3;
}

/* Table base (for tier lists, frame data) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.7);
}

/* Infographic-like highlight blocks */
.info-block {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  padding: var(--space-4);
  background: rgba(15, 23, 42, 0.75);
}

.info-block--combo {
  border-style: solid;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(143, 61, 255, 0.5);
}

.info-block--warning {
  border-color: var(--color-warning);
}

/* Chip list for mechanics tags, character roles, etc. */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
}

/* Simple icon wrapper for ability icons */
.icon-circle {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ffffff, #e5e7eb 35%, #020617);
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px rgba(143, 61, 255, 0.7),
    0 10px 18px rgba(0, 0, 0, 0.9);
}

/* ========================================================================
   End
   ======================================================================== */
