/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors */
  --color-bg: #050816; /* deep, immersive backdrop */
  --color-surface: #0e1524;
  --color-surface-elevated: #151c2e;
  --color-text: #f7f7ff;
  --color-text-muted: #a6aec9;
  --color-primary: #ff3366; /* energetic highlight */
  --color-primary-soft: rgba(255, 51, 102, 0.16);
  --color-success: #3dd68c;
  --color-warning: #ffc857;
  --color-danger: #ff4b5c;

  --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, "SF Pro Text", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "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.15;
  --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.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;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-focus: 0 0 0 3px rgba(255, 51, 102, 0.45);

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

  /* Layout */
  --container-max-width: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

/* Remove default focus outlines to re-define with :focus-visible */
:focus {
  outline: none;
}

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

main {
  display: block;
}

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

strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.4rem, 3vw + 1.6rem, var(--font-size-5xl));
}

h2 {
  font-size: clamp(1.9rem, 2.2vw + 1.2rem, var(--font-size-4xl));
}

h3 {
  font-size: clamp(1.5rem, 1.4vw + 1.1rem, var(--font-size-3xl));
}

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

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

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

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

@media (max-width: 768px) {
  section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* Links - modern underlines on hover */
a {
  color: var(--color-primary);
  transition: color var(--transition-base);
}

a:hover {
  color: #ff5c84;
}

a.inline-link {
  position: relative;
  padding-bottom: 2px;
}

.a-inline,
a.inline-link {
  color: var(--color-primary);
}

.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), #ffbf3c);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.inline-link:hover::after,
.inline-link:focus-visible::after {
  transform: scaleX(1);
}

/* Lists */
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-4);
}

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

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

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

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

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

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

@media (min-width: 1280px) {
  .container {
    padding-inline: 0;
  }
}

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

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

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

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

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

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

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip--accent {
  border-color: rgba(255, 51, 102, 0.7);
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.18), rgba(15, 23, 42, 0.96));
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: #111827;
  color: #fef2f2;
  border: 1px solid rgba(248, 113, 113, 0.8);
}

.badge-live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle, #fecaca 0, #ef4444 45%, #7f1d1d 100%);
}

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

/* Buttons */
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  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);
}

.button--primary,
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ffbf3c);
  color: #0b1020 !important;
  box-shadow: 0 18px 40px rgba(255, 51, 102, 0.45);
}

.button--primary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(255, 51, 102, 0.6);
}

.button--primary:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(255, 51, 102, 0.4);
}

.button--ghost,
.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.6);
}

.button--ghost:hover,
.btn-ghost:hover {
  border-color: var(--color-primary);
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.18), rgba(15, 23, 42, 0.98));
}

.button--subtle,
.btn-subtle {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text);
}

.button--subtle:hover,
.btn-subtle:hover {
  background: rgba(148, 163, 184, 0.22);
}

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

.button:focus-visible,
.btn:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* Form elements */
label {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: var(--font-size-sm);
}

.input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(10, 16, 30, 0.96);
  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);
}

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

.input::placeholder,
textarea::placeholder,
input::placeholder {
  color: var(--gray-500);
}

.input:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), var(--shadow-soft);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards - used for poker formats, schedule, offers, etc. */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.1), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 55%);
  opacity: 0.7;
}

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

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

.card--outline {
  background: rgba(15, 23, 42, 0.9);
  border-style: dashed;
}

/* Simple tag for highlights (e.g. "Poker", "Rezerwacja online") */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text-muted);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.tag--primary {
  color: var(--color-primary);
  border-color: rgba(255, 51, 102, 0.7);
  background-color: rgba(255, 51, 102, 0.08);
}

/* Hero-style gradient overlay helper for immersive sections */
.section-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top center, rgba(255, 51, 102, 0.12), transparent 65%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.1), transparent 60%),
              linear-gradient(to bottom, #020617, #020617 40%, #020617 100%);
}

.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.9) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.24;
  mix-blend-mode: soft-light;
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

/* Testimonials / Quotes */
.quote {
  font-style: italic;
  color: var(--color-text-muted);
}

.quote::before,
.quote::after {
  content: "\201C";
  font-size: 1.8rem;
  margin-right: 0.25rem;
  vertical-align: -0.4rem;
  color: var(--color-primary);
}

.quote::after {
  content: "\201D";
  margin-left: 0.25rem;
}

/* Gallery image wrapper */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 40%);
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* Schedule chip for matches & tournaments */
.schedule-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: var(--font-size-sm);
}

.schedule-slot--highlight {
  border-color: rgba(255, 51, 102, 0.75);
  background: radial-gradient(circle at left, rgba(255, 51, 102, 0.18), rgba(15, 23, 42, 0.96));
}

/* Small pill used for labels like "PL", "EN" or "Poker Live" */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

.pill--primary {
  border-color: rgba(255, 51, 102, 0.8);
  color: var(--color-primary);
}

/* Toast / notification (for reservation feedback, etc.) */
.toast {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 320px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-strong);
  font-size: var(--font-size-sm);
  z-index: 50;
}

.toast--success {
  border-color: rgba(61, 214, 140, 0.8);
}

.toast--error {
  border-color: rgba(255, 75, 92, 0.8);
}

/* End of base.css */
