/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - playful arcade vibe */
  --color-background: #050814;
  --color-surface: #101325;
  --color-surface-soft: #181b32;
  --color-text: #f5f5ff;
  --color-text-muted: #b5b7d3;
  --color-primary: #ff4fd8;
  --color-primary-soft: rgba(255, 79, 216, 0.12);
  --color-success: #3dd68c;
  --color-warning: #ffb648;
  --color-danger: #ff4b6b;

  /* Neutral grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #111827;
  --gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Poppins", "Baloo", "Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --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-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  /* Shadows - neon / arcade style */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.55);
  --shadow-glow-primary: 0 0 0 1px rgba(255, 79, 216, 0.35), 0 0 35px rgba(255, 79, 216, 0.6);

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

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

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

body {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none !important; /* Requirement: lists without bullets */
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 100vh;
}

/* Headings - playful display font for game brand feel */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: #ffffff;
}

h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
}

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

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

/* Links - modern arcade hover, French content */
a {
  color: var(--color-primary);
  transition: color var(--transition-base), transform var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: #fff !important; /* Requirement: hover text color */
  text-shadow: 0 0 16px rgba(255, 79, 216, 0.8);
}

a:active {
  transform: scale(0.97);
}

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

/* Hide purely decorative elements from assistive tech */
[aria-hidden="true"] {
  pointer-events: none;
}

/* Screen reader only helper */
.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
   ========================================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

/* Layout helpers */
.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 {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

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

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

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

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

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

@media (max-width: 768px) {
  .py-section {
    padding-block: var(--space-10);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Buttons - primary for key CTA like Google Play download */
.button,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: radial-gradient(circle at 0% 0%, #ffebfb 0, rgba(255, 235, 251, 0) 40%),
              linear-gradient(135deg, #ff4fd8, #ff9a4f);
  color: #050814;
  box-shadow: var(--shadow-strong);
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base), background-position var(--transition-base);
}

.button::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  mix-blend-mode: screen;
  pointer-events: none;
}

.button:hover,
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-primary);
  filter: brightness(1.05);
  color: #050814 !important; /* Keep text readable even with global a:hover */
}

.button:active,
.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-soft);
}

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

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

/* Special class for the main Google Play download CTA */
.button--download {
  padding-inline: 2.4rem;
  font-size: var(--font-size-base);
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(8, 11, 30, 0.98);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: rgba(181, 183, 211, 0.7);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.5);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Cards - for sections like "Mécaniques de jeu", "Niveaux", etc. */
.card {
  background: radial-gradient(circle at top, rgba(255, 79, 216, 0.18), transparent 55%),
              radial-gradient(circle at bottom, rgba(74, 222, 128, 0.12), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card--soft {
  background: var(--color-surface-soft);
}

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

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

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* Tag-like chips for game modes, difficultés, etc. */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Hero-specific helpers (homepage / CTA section) */
.hero {
  padding-block: var(--space-20);
}

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

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Simple pill tabs for sections like "Gameplay", "Mises à jour" */
.tabs {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
}

.tab {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.tab--active {
  background: var(--color-primary);
  color: #050814;
}

/* Navigation basics for header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.98), rgba(5, 8, 20, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-link {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fd8, #ff9a4f);
  transition: width var(--transition-base);
}

.navbar-link:hover::after,
.navbar-link[aria-current="page"]::after {
  width: 100%;
}

.navbar-link[aria-current="page"] {
  color: #fff;
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
}

/* Footer basic styling */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-block: var(--space-6);
  background: radial-gradient(circle at top, rgba(255, 79, 216, 0.08), transparent 50%),
              #050814;
}

.site-footer small {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* =========================================================
   End of base.css for PARIS OFF NIGHTS (parisoffnights.com)
   ========================================================= */
