/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color palette - light theme, energetic & vibrant */
  --color-bg: #ffffff;
  --color-bg-elevated: #0f172a;
  --color-bg-soft: #0b1120;
  --color-surface: #0b1120;
  --color-surface-alt: #020617;

  --color-text: #0b1120;
  --color-text-soft: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-on-dark: #e5e7eb;
  --color-text-on-accent: #f9fafb;

  --color-primary: #2563eb; /* Vibrant blue */
  --color-primary-soft: rgba(37, 99, 235, 0.12);
  --color-primary-strong: #1d4ed8;

  --color-accent-purple: #a855f7;
  --color-accent-purple-soft: rgba(168, 85, 247, 0.18);
  --color-accent-green: #22c55e;
  --color-accent-green-soft: rgba(34, 197, 94, 0.16);
  --color-accent-orange: #f97316;
  --color-accent-orange-soft: rgba(249, 115, 22, 0.18);

  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.1);
  --color-warning: #eab308;
  --color-warning-soft: rgba(234, 179, 8, 0.12);
  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.12);

  --color-border-subtle: rgba(148, 163, 184, 0.25);
  --color-border-strong: rgba(148, 163, 184, 0.5);

  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5f5;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 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-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.15;
  --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: 0.25rem;   /* 4px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1.25rem;   /* 20px */
  --radius-xl: 2rem;      /* 32px */
  --radius-full: 9999px;

  /* Shadows - soft, neon-inspired for gaming cards */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.24);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.35);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.55);
  --shadow-lg: 0 25px 80px rgba(15, 23, 42, 0.7);
  --shadow-glow-blue: 0 0 32px rgba(37, 99, 235, 0.48);
  --shadow-glow-purple: 0 0 32px rgba(168, 85, 247, 0.52);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1160px;
  --header-height: 72px;
}

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

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

body {
  margin: 0;
}

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

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

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

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

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

a {
  color: inherit;
}

/* Improve text rendering */
body, input, textarea, button, select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Base Styles
   ========================================================= */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text-on-dark);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 55%),
              radial-gradient(circle at top right, rgba(168, 85, 247, 0.24), transparent 60%),
              radial-gradient(circle at bottom, rgba(34, 197, 94, 0.22), transparent 65%),
              var(--color-bg-soft);
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

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

a {
  text-decoration: none;
  transition: color var(--transition-normal), opacity var(--transition-fast);
}

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

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: #f9fafb;
}

/* =========================================================
   Accessibility & Motion
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

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

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-6);
  }
}

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

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-12);
  }
}

.flex {
  display: flex;
}

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

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

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

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

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

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

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

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

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

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

.grid {
  display: grid;
}

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

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

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

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

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

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.pt-header {
  padding-top: var(--header-height);
}

/* 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;
}

/* =========================================================
   Components - Header & Navigation
   (logo centered, nav split both sides)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.site-header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: var(--space-4);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
}

.nav-right {
  justify-content: flex-end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.45), rgba(168, 85, 247, 0.45));
  box-shadow: var(--shadow-sm), var(--shadow-glow-purple);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-on-accent);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.3rem;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-purple));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-normal);
}

.nav-link:hover {
  color: #e5e7eb;
}

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-link--active {
  color: #f9fafb;
}

/* Mobile nav hint (hide desktop nav on very small screens if needed) */
@media (max-width: 720px) {
  .nav-left .nav-list,
  .nav-right .nav-list {
    gap: var(--space-2);
  }

  .site-header-inner {
    column-gap: var(--space-2);
  }
}

/* =========================================================
   Components - Hero Base
   (large full-width hero, gaming-inspired)
   ========================================================= */
.hero {
  position: relative;
  padding-block: var(--space-12);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-16);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr);
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #bbf7d0, var(--color-accent-green));
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.32);
}

.hero-title {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
  max-width: 17ch;
}

.hero-subtitle {
  max-width: 42ch;
}

.hero-cta-row {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-meta-row {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.5);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Right side: smartphone mockups / visual layer */
.hero-phones {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.hero-phone {
  position: absolute;
  inset: auto;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-phone--primary {
  position: relative;
  transform: rotate(-8deg) translateX(6%);
}

.hero-phone--secondary {
  transform: rotate(12deg) translate(40%, 14%);
  scale: 0.9;
  box-shadow: var(--shadow-sm), var(--shadow-glow-purple);
}

.hero-phone-screen {
  aspect-ratio: 9 / 19.5;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.5), transparent 60%),
              radial-gradient(circle at bottom, rgba(34, 197, 94, 0.4), transparent 55%),
              #020617;
}

.hero-orbit-ring {
  position: absolute;
  inset: -30% -24%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  transform: rotate(-18deg);
}

.hero-gradient-blur {
  position: absolute;
  inset: 8%;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.8), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.8), transparent 65%),
    radial-gradient(circle at 30% 90%, rgba(34, 197, 94, 0.7), transparent 65%);
  filter: blur(32px);
  opacity: 0.75;
  pointer-events: none;
}

/* =========================================================
   Components - Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast),
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
  border-color: rgba(15, 23, 42, 0.7);
  color: var(--color-text-on-accent);
  box-shadow: var(--shadow-sm), var(--shadow-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
}

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

.btn:focus-visible {
  outline: 2px solid #e5e7eb;
  outline-offset: 2px;
}

/* =========================================================
   Components - Inputs & Forms
   ========================================================= */
.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-on-dark);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

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

.form-control:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5), 0 0 0 10px rgba(37, 99, 235, 0.18);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
}

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

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

/* =========================================================
   Components - Card
   (used for games, reviews, offerwall, news, etc.)
   ========================================================= */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(37, 99, 235, 0.32), transparent 60%),
              radial-gradient(circle at 90% 100%, rgba(168, 85, 247, 0.25), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.card-inner {
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(129, 140, 248, 0.65);
}

.card:hover::before {
  opacity: 1;
}

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

.card-title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.15rem;
}

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

.card-meta {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Variant for clickable cards */
.card-link {
  display: block;
  color: inherit;
}

.card-link:focus-visible .card {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* =========================================================
   Utilities - Badges & Tags
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(37, 99, 235, 0.75);
}

.badge-success {
  background: var(--color-success-soft);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.7);
}

.badge-warning {
  background: var(--color-warning-soft);
  color: #fef3c7;
  border: 1px solid rgba(234, 179, 8, 0.7);
}

/* =========================================================
   Footer Base
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.98);
  padding-block: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.site-footer a {
  color: inherit;
}

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

/* =========================================================
   Page Sections (lightweight structural helpers)
   ========================================================= */
.section-header {
  margin-bottom: var(--space-4);
}

.section-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: var(--font-size-2xl);
}

.section-description {
  max-width: 38rem;
}

/* List layout for gaming lists, reviews, offerwall, blog, etc. */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */
@media (max-width: 599px) {
  .card {
    padding: var(--space-3);
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
}
