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

:root {
  /* Colors */
  --color-bg: #050816; /* deep, immersive navy */
  --color-surface: #0c1220; /* slightly lighter for cards/nav */
  --color-surface-alt: #151b2a;
  --color-text: #f5f7fa;
  --color-text-muted: #a7b1c5;

  --color-primary: #e11d48; /* energetic red */
  --color-primary-soft: rgba(225, 29, 72, 0.14);
  --color-primary-dark: #b11237;

  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  --color-border-subtle: rgba(148, 163, 184, 0.24);

  /* Neon accent for hover / match highlights (stadium vibe) */
  --color-neon: #22d3ee; /* cyan glow */
  --color-neon-soft: rgba(34, 211, 238, 0.15);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;
  --font-display: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Inter", 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.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --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.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 999px;

  /* Shadows (stadium / spotlight style) */
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 18px rgba(34, 211, 238, 0.6);

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

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

/* 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 {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

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

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

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

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

textarea {
  resize: vertical;
}

: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);
  background: radial-gradient(circle at top center, #111827 0, #020617 52%, #020617 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  margin-bottom: var(--space-3);
}

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

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

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

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

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

strong {
  font-weight: 600;
  color: var(--color-text);
}

a {
  color: var(--color-neon);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: #67e8f9;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

a:active {
  color: var(--color-primary);
  text-shadow: none;
}

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

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ========================================================================
   Accessibility & Focus Styles
   ======================================================================== */

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

/* High-contrast focus on dark background */
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-neon);
}

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

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

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

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

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

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

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

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

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

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

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

/* Alignment & text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }

/* Spacing utilities (commonly used steps) */
.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-6 { padding-top: var(--space-6); }
.pb-6 { padding-bottom: var(--space-6); }

/* Visual helpers */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--live {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge--success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--color-success);
}

.badge--warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--color-warning);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.6);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(225, 29, 72, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border-subtle);
  color: var(--color-text);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--color-neon);
  box-shadow: var(--shadow-neon);
}

.btn--outline {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--color-primary);
  color: #ffffff;
}

.btn--outline:hover {
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.6);
}

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

.btn--lg {
  padding: 0.85rem 1.7rem;
  font-size: var(--font-size-base);
}

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

/* Inputs & form controls */
.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: rgba(15, 23, 42, 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);
}

.form-control::placeholder {
  color: var(--color-gray-500);
}

.form-control:focus-visible {
  border-color: var(--color-neon);
  box-shadow: 0 0 0 1px var(--color-neon-soft), var(--shadow-neon);
  background: #020617;
}

.form-control--error {
  border-color: var(--color-danger);
}

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

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

/* Checkbox / radio minimal reset (visual styles can be extended per component) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-primary);
}

/* Card: used for matches, events, packages */
.card {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.08) 0, rgba(15, 23, 42, 0.98) 42%, #020617 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.2), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

.card--flat {
  background: var(--color-surface);
  box-shadow: none;
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.card-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero overlay utilities for stadium-like imagery */
.hero {
  position: relative;
  color: var(--color-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.2));
  pointer-events: none;
}

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

/* Tagline style for Polish marketing copy */
.tagline {
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-neon);
}

/* Match status band (e.g. Na żywo / Rezerwuj stolik) */
.status-band {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-band--live {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.3);
}

@keyframes pulse-live {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}


@media (prefers-reduced-motion: reduce) {
  .status-dot::after {
    animation: none;
  }
}

/* Toast / notice for reservation confirmation */
.notice {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.98);
  font-size: var(--font-size-sm);
}

.notice--success {
  border-color: rgba(34, 197, 94, 0.7);
}

.notice--warning {
  border-color: rgba(250, 204, 21, 0.7);
}

.notice--danger {
  border-color: rgba(239, 68, 68, 0.7);
}

/* ========================================================================
   Media & Imagery
   ======================================================================== */

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0, rgba(15, 23, 42, 0.8) 80%);
}

/* ========================================================================
   Misc / Polish content helpers
   ======================================================================== */

.badge--lang-pl {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* End of base.css */
