/* ========================================================================== *\
   Variables
   - Global design tokens for the sports bar-restaurant website
   - Palette inspired by stadium energy: green, navy, yellow, charcoal, amber
\* ========================================================================== */

:root {
  /* Colors */
  --color-background: #050609;      /* deep, almost-black charcoal */
  --color-surface: #0c1117;         /* dark navy-charcoal blend */
  --color-surface-elevated: #141b23;

  --color-text: #f7f7f7;
  --color-text-muted: #b1bccb;

  --color-primary: #00b050;         /* stadium green */
  --color-primary-soft: rgba(0, 176, 80, 0.16);

  --color-accent: #ffd84a;          /* bright match-day yellow */
  --color-accent-soft: rgba(255, 216, 74, 0.16);

  --color-amber: #ff9b3b;           /* warm amber for highlights */
  --color-amber-soft: rgba(255, 155, 59, 0.18);

  --color-success: #00c46a;
  --color-warning: #ffb100;
  --color-danger: #ff4242;

  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.16);

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

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

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.375rem; /* 6px */
  --space-4: 0.5rem;   /* 8px */
  --space-5: 0.625rem; /* 10px */
  --space-6: 0.75rem;  /* 12px */
  --space-8: 1rem;     /* 16px */
  --space-10: 1.25rem; /* 20px */
  --space-12: 1.5rem;  /* 24px */
  --space-16: 2rem;    /* 32px */
  --space-20: 2.5rem;  /* 40px */
  --space-24: 3rem;    /* 48px */
  --space-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows - slightly neon for stadion vibe */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow-primary: 0 0 0 1px rgba(0, 176, 80, 0.8),
    0 0 22px rgba(0, 176, 80, 0.55);
  --shadow-glow-accent: 0 0 0 1px rgba(255, 216, 74, 0.7),
    0 0 22px rgba(255, 216, 74, 0.5);

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

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

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
li,
pre,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

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

ul,
ol {
  list-style: none;
}

/* Remove default link underlines; handled in Base */
a {
  text-decoration: none;
  color: inherit;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #07151b 0, #050609 45%, #000000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: 60vh;
}

/* Headings - bold, contemporary, tuned for Polish copy */

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

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

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

h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-8);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-6);
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  /* comfortable reading length */
  color: var(--color-text-muted);
}

p + p {
  margin-top: var(--space-6);
}

strong {
  font-weight: 600;
}

/* Links */

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

a:hover {
  color: #fff6bf;
  text-shadow: 0 0 12px rgba(255, 216, 74, 0.55);
}

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

/* Horizontal rule */

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

/* ========================================================================== *\
   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.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================== *\
   Layout Utilities
\* ========================================================================== */

/* Centered page container with breathable side padding */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1120px;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }
}

/* 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-xs {
  gap: var(--space-4);
}

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

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

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

/* Grid helpers */

.grid {
  display: grid;
}

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

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

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

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

/* Section spacing */

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

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

/* Visually hidden for screen readers */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

/* Width utilities for imagery / content */


.max-w-wide {
  max-width: 72rem;
}

/* ========================================================================== *\
   Components
   - Buttons, inputs, cards for offers, events, testimonials
\* ========================================================================== */

/* Buttons */

.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: #00c45a;
  --btn-bg-active: #00a04b;
  --btn-color: #050609;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);

  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--btn-border);

  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: var(--btn-bg);
  color: var(--btn-color);
  cursor: pointer;

  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn--primary {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: #00c45a;
  --btn-bg-active: #00a04b;
  --btn-color: #050609;
}

.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-bg-hover: #ffe168;
  --btn-bg-active: #f5cb3f;
  --btn-color: #050609;
  color: var(--btn-color)!important;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-bg-active: rgba(255, 255, 255, 0.12);
  --btn-color: #ffffff;
  --btn-border: var(--color-border-strong);
  box-shadow: none;
}

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

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

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

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

/* Buttons sized for main CTAs like 'Rezerwuj stolik' */

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

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

/* Inputs & form controls */

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 12, 19, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  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-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
  background-color: rgba(8, 12, 19, 1);
}

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

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

.form-row {
  margin-bottom: var(--space-10);
}

/* Card - for offers, event packages, testimonials */

.card {
  position: relative;
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f1724 0, #050609 55%, #141b23 100%);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left,
      rgba(0, 176, 80, 0.18) 0,
      transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(255, 216, 74, 0.15) 0,
      transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

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

.card--highlight {
  border-color: rgba(255, 216, 74, 0.7);
  box-shadow: var(--shadow-glow-accent);
}



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

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

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

/* Tag / pill for match status, league, etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--color-text);
  background: rgba(5, 6, 9, 0.7);
}

.badge--live {
  border-color: rgba(255, 66, 66, 0.8);
  color: #ffbaba;
  background: rgba(255, 66, 66, 0.12);
}

/* Media wrapper for responsive match imagery */

.media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  background: #000;
}

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

/* Utility for subtle glassmorphism overlays (e.g., nav, CTA bar) */

.glass {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.75));
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================================================== *\
   Helper text & alerts (for quick form feedback)
\* ========================================================================== */

.helper-text {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.helper-text--error {
  color: var(--color-danger);
}

.helper-text--success {
  color: var(--color-success);
}
