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

:root {
  /* Colors */
  --color-bg: #050713; /* deep night */
  --color-bg-elevated: #0b0f23;
  --color-bg-soft: #12162b;

  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;

  --color-primary: #f97316; /* energetic orange */
  --color-primary-soft: rgba(249, 115, 22, 0.1);
  --color-primary-strong: #ea580c;

  --color-success: #22c55e;
  --color-warning: #facc15;
  --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;

  /* Accent / Brand details */
  --color-accent-blue: #3b82f6; /* sporty highlight */
  --color-accent-green: #22c55e; /* poker table hint */

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, 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.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 25px rgba(0, 0, 0, 0.25);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.7);

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

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

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 1ms linear;
    --transition-normal: 1ms linear;
    --transition-slow: 1ms linear;
  }
}


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

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

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

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

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

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

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

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

textarea {
  resize: vertical;
}

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

:focus {
  outline: none;
}


/* ========================================================================== 
   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, #111827 0, #020617 45%, #020314 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

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

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  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-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

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

a {
  color: var(--color-primary);
  cursor: pointer;
  transition: color var(--transition-normal), opacity var(--transition-fast);
}
ul#primary-navigation {
    list-style: none !important;
}
a:hover {
  color: #fff;
}

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

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


/* ========================================================================== 
   Accessibility
   ========================================================================== */

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

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

.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-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

/* Flex utilities */
.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-sm {
  gap: var(--space-3);
}

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

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

/* Grid utilities */
.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 utilities */
.text-center {
  text-align: center;
}

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

.w-full {
  width: 100%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-section {
  margin-top: var(--space-16);
}

.mb-section {
  margin-bottom: var(--space-16);
}

/* Nightlife glow accents */
.glow-primary {
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.glow-green {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}


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

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #0b0f23;
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(249, 115, 22, 0.7);
}

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

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

.btn-ghost {
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: rgba(30, 64, 175, 0.6);
}

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

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

/* Inputs & forms */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8), 0 15px 30px rgba(15, 23, 42, 0.9);
}

.input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

/* Card - for offers, tournaments, event highlights */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16), transparent 60%),
              var(--color-bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

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

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

.card-footer {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Tag / pill for statuses like "Turniej", "Transmisja na żywo" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text-muted);
}

.badge-live {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.16) 0, transparent 60%);
}

.badge-poker {
  border-color: rgba(52, 211, 153, 0.9);
  color: #a7f3d0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0, transparent 60%);
}

/* Navigation underlines (energetic, sporty) */
.nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding-bottom: 0.35rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-blue));
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-text);
}

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

/* Hero overlay for nightlife / sports ambience */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.65), transparent 60%),
    radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.65), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.6), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
}

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

/* Chip-style list for poker features / sports events */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--color-text-muted);
}

.chip-highlight {
  border-color: rgba(249, 115, 22, 0.85);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0, transparent 60%);
  color: var(--color-text);
}

/* Status indicators (open, closed, busy) */
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: var(--color-success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.status-dot--warning {
  background-color: var(--color-warning);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.9);
}

.status-dot--danger {
  background-color: var(--color-danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

/* Simple section header for Polish pages like "Rezerwacje", "Turnieje" */
.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
  margin-bottom: var(--space-3);
}

.section-subtitle {
  max-width: 36rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Table-like layout for tournament schedules */
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table-simple thead {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.table-simple th,
.table-simple td {
  padding: 0.75rem 0.75rem;
  text-align: left;
}

.table-simple tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.7);
}

.table-simple tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.4);
}

.table-simple tbody tr:hover {
  background-color: rgba(30, 64, 175, 0.45);
}

.table-simple tbody tr + tr td {
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}

/* Toast / notification for reservations, confirmations */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: var(--space-4);
  margin-inline: auto;
  width: min(420px, calc(100% - 2 * var(--space-4)));
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 50;
}

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

.toast-danger {
  border-color: rgba(239, 68, 68, 0.9);
}

.toast-message {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--color-text-muted);
}

.toast-close:hover {
  color: var(--color-text);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.4);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer a:hover {
  color: var(--color-primary);
}

/* Media queries for global typography tweaks */
@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }

  .card {
    padding: var(--space-4);
  }
}
