/* ========================================================================== */
/*  Variables                                                                 */
/* ========================================================================== */

:root {
  /* Color Palette - Midnight blue, crimson, white, neutrals */
  --color-background: #050814; /* deep midnight background */
  --color-surface: #0b1020; /* content surface panels */
  --color-surface-alt: #101629; /* subtle contrast surface */

  --color-text: #f5f7fb; /* primary text on dark */
  --color-text-muted: #aab2c8;
  --color-border-subtle: #20263a;
  --color-border-strong: #3b4564;

  --color-primary: #d2122e; /* crimson accent */
  --color-primary-soft: rgba(210, 18, 46, 0.14);
  --color-primary-strong: #ff2444;

  --color-success: #2fbf71;
  --color-success-soft: rgba(47, 191, 113, 0.12);
  --color-warning: #f7b633;
  --color-warning-soft: rgba(247, 182, 51, 0.12);
  --color-danger: #ff4b55;
  --color-danger-soft: rgba(255, 75, 85, 0.16);

  --color-neutral-50: #f7f8fc;
  --color-neutral-100: #e5e8f2;
  --color-neutral-200: #c9cedf;
  --color-neutral-300: #aab1c7;
  --color-neutral-400: #8c95b0;
  --color-neutral-500: #6e7893;
  --color-neutral-600: #505a76;
  --color-neutral-700: #39415c;
  --color-neutral-800: #252b3f;
  --color-neutral-900: #161927;

  /* Feedback / semantic */
  --color-focus-outline: #ffcc33; /* high contrast focus, accessible on dark */

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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-7: 1.75rem; /* 28px */
  --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: 12px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Shadows - subtle, professional for cards and headers */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 2px rgba(5, 8, 20, 0.9),
    0 0 0 4px rgba(255, 204, 51, 0.85);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================== */
/*  Reset / Normalize                                                         */
/* ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

button,
[role="button"] {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

a {
  color: inherit;
}

/* Remove default body padding/margins */
body {
  margin: 0;
}

/* ========================================================================== */
/*  Base                                                                      */
/* ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #111938 0, #050814 55%, #02030a 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 100vh;
}

/* Headings: professional, clear hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.25rem, 3vw + 1.25rem, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.25rem);
}

h3 {
  font-size: clamp(1.5rem, 1.5vw + 0.9rem, 1.875rem);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

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

/* Links - subtle, professional underline on hover */
a {
  text-decoration: none;
  color: var(--color-primary-strong);
  transition: color var(--transition-fast),
    text-decoration-color var(--transition-fast),
    background-color var(--transition-fast);
}

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

a:not(.btn)::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 2px;
  background: linear-gradient(90deg, var(--color-primary), #ffcc33);
  transition: width var(--transition-normal);
}

a:not(.btn):hover::after {
  width: 100%;
}

/* Lists */
ul,
ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: 0.25rem;
}

/* Blockquotes for expert, trustworthy notes */
blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: rgba(11, 16, 32, 0.9);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

/* Tables for comparisons */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 0.95rem;
}

th,
td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(16, 22, 41, 0.85);
}

tr:nth-child(even) td {
  background: rgba(11, 16, 32, 0.75);
}

caption {
  caption-side: bottom;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ========================================================================== */
/*  Accessibility                                                             */
/* ========================================================================== */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 2px;
}

/* Ensure focus styles on interactive components */
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Screen-reader only utility */
.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;
}

.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ========================================================================== */
/*  Utilities                                                                 */
/* ========================================================================== */

/* Layout container for main content */
.container {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-4);
  padding-left: var(--space-4);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Section spacing helpers */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

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

/* Flexbox utilities */
.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.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;
}

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

.gap-sm {
  gap: var(--space-3);
}

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

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

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

.grid-3 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Text alignment */
.text-left {
  text-align: left;
}

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

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

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

.max-w-prose {
  max-width: 70ch;
}

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

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

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

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

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

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

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

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

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

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

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

/* Badges / labels for regulatory & rating tags */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(47, 191, 113, 0.5);
}

.badge--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(247, 182, 51, 0.6);
}

.badge--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(255, 75, 85, 0.7);
}

.badge--neutral {
  background: rgba(16, 22, 41, 0.9);
  color: var(--color-text-muted);
  border-color: var(--color-border-subtle);
}

/* ========================================================================== */
/*  Components                                                                */
/* ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  background: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
}

.btn--outline:hover {
  background: var(--color-primary-soft);
}

.btn--ghost {
  background: rgba(5, 8, 20, 0.7);
  border-color: var(--color-border-subtle);
  color: var(--color-text);
}

.btn--ghost:hover {
  background: rgba(16, 22, 41, 0.95);
}

.btn--sm {
  padding: 0.4rem 1rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.8rem 1.8rem;
  font-size: var(--font-size-md);
}

/* Inputs & form controls */
.input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: rgba(5, 8, 20, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-neutral-400);
}

.input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
  outline: none;
}

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

label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

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

.form-help {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card component: used for betting site blocks & review panels */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(11, 16, 32, 0.98), #090d1b);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-slow);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(210, 18, 46, 0.5);
}

.card--highlight {
  border-color: var(--color-primary);
  background: radial-gradient(circle at top left, rgba(210, 18, 46, 0.25),
        transparent 55%),
    linear-gradient(150deg, #0b1020, #050814);
}

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

.card-title {
  margin-bottom: var(--space-2);
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-footer {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Tag line / subtle label above headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), #ffcc33);
}

/* Hero overlay to support dynamic sports imagery */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top left,
        rgba(210, 18, 46, 0.6), transparent 55%),
    radial-gradient(circle at bottom right,
        rgba(15, 118, 255, 0.4), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Rating bar (for dynamic comparisons) */
.rating-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(16, 22, 41, 0.95);
  overflow: hidden;
}

.rating-bar__fill {
  position: absolute;
  inset: 0;
  width: var(--rating, 0%);
  background: linear-gradient(90deg, #2fbf71, #ffcc33, #ff4b55);
}

/* Tag chips for sports, leagues, etc. */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background: rgba(16, 22, 41, 0.95);
  color: var(--color-neutral-100);
  border: 1px solid rgba(57, 65, 92, 0.9);
}

.chip--primary {
  background: var(--color-primary-soft);
  border-color: rgba(210, 18, 46, 0.7);
  color: var(--color-primary-strong);
}

/* Toast / alert for responsible gaming notices */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  background: rgba(16, 22, 41, 0.98);
}

.alert--info {
  border-color: rgba(138, 180, 250, 0.7);
}

.alert--success {
  border-color: rgba(47, 191, 113, 0.7);
  background: var(--color-success-soft);
}

.alert--warning {
  border-color: rgba(247, 182, 51, 0.8);
  background: var(--color-warning-soft);
}

.alert--danger {
  border-color: rgba(255, 75, 85, 0.85);
  background: var(--color-danger-soft);
}

.alert__title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.1rem;
}

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

/* Footer minimal styling */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-neutral-100);
}

.site-footer a:hover {
  color: var(--color-primary-strong);
}

/* Navigation baseline */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(5, 8, 20, 0.96), rgba(5, 8, 20, 0.98));
  border-bottom: 1px solid rgba(24, 32, 58, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.navbar__link {
  position: relative;
  padding: 0.25rem 0;
  color: var(--color-text-muted);
}

.navbar__link--active,
.navbar__link:hover {
  color: var(--color-neutral-50);
}

.navbar__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), #ffcc33);
}

/* Ensure media in cards/hero remain responsive */
.responsive-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.responsive-media iframe,
.responsive-media img,
.responsive-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
