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

:root {
  /* Colors */
  --color-bg: #05070a; /* deep, matte background */
  --color-surface: #101319;
  --color-surface-alt: #181c24;
  --color-text: #f5f6f8;
  --color-text-muted: #9ca3af;
  --color-primary: #3b82f6; /* cyber blue */
  --color-primary-soft: rgba(59, 130, 246, 0.12);
  --color-accent: #f97316; /* warm orange */
  --color-accent-soft: rgba(249, 115, 22, 0.14);
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  /* 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: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", 
    "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-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.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: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (soft neon-ish for gaming vibe) */
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 0 1px rgba(59, 130, 246, 0.3), 
    0 0 24px rgba(59, 130, 246, 0.3);
  --shadow-glow-accent: 0 0 0 1px rgba(249, 115, 22, 0.28), 
    0 0 22px rgba(249, 115, 22, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 180ms ease-out;
  --transition-slow: 260ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.25rem;
}

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


/* ========================================================================== 
   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,
 dl,
 dd,
 ul,
 ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

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

textarea {
  resize: vertical;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background-color: rgba(59, 130, 246, 0.4);
  color: #f9fafb;
}


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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

/* Headings: modern, bold, slightly condensed spacing */

h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 4vw, var(--font-size-5xl));
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, var(--font-size-3xl));
  margin-bottom: var(--space-2);
}

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

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

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

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  /* Comfortable line length */
}

strong,
 b {
  font-weight: 600;
}

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

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

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

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

hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin: var(--space-6) 0;
}


/* ========================================================================== 
   Accessibility & Motion
   ========================================================================== */

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

*:focus:not(:focus-visible) {
  outline: none;
}

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


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

/* Layout */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

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

@media (min-width: 768px) {
  .section-padding {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

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

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

/* 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: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (limited, core only) */

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

.pt-6 { padding-top: var(--space-6) !important; }
.pb-6 { padding-bottom: var(--space-6) !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !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;
}


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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-fast),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
  will-change: transform, box-shadow;
}

.btn-primary {
  color: #f9fafb!important;
  background: radial-gradient(circle at top left, #60a5fa 0%, #2563eb 40%, #1d4ed8 100%);
  box-shadow: var(--shadow-soft);
}

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

.btn-accent {
  color: #0b0f18!important;
  background: linear-gradient(135deg, #fed7aa 0%, #f97316 40%, #ea580c 100%);
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-accent);
}

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

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

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

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

/* Inputs */

.input,
 select,
 textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: var(--color-text);
  background-color: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

.input::placeholder,
 textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus-visible,
 textarea:focus-visible,
 select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
  background-color: rgba(15, 23, 42, 0.98);
}

.input[aria-invalid="true"],
 .input.is-invalid {
  border-color: var(--color-danger);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  color: var(--gray-200);
}

.field-helper {
  margin-top: 0.35rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

/* Card */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
    var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

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

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

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

/* Tag / pill (for game genres, events, etc.) */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-muted);
  background-color: rgba(15, 23, 42, 0.9);
}

.pill-accent {
  border-color: rgba(249, 115, 22, 0.7);
  background-color: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
}

/* Hero image / media wrapper */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-alt);
  box-shadow: var(--shadow-elevated);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.25), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nav bar shell */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.96), rgba(5, 7, 10, 0.88));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--container-padding-x);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.6rem;
  background: conic-gradient(from 210deg, #0f172a, #3b82f6, #f97316, #0f172a);
  box-shadow: var(--shadow-glow-primary);
}

/* Simple badge for statuses (open/closed, event type) */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background-color: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
}

.badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.badge-warning {
  background-color: rgba(234, 179, 8, 0.16);
  color: #fef9c3;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fee2e2;
}

/* Toast-like notification (for booking confirmation, etc.) */

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.5rem;
  margin-inline: auto;
  max-width: 420px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background-color: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  z-index: 50;
}

.toast-accent {
  border-color: rgba(249, 115, 22, 0.7);
}

.toast-icon {
  font-size: 1.1rem;
}

/* End of base.css */
