/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors */
  --color-background: #050714; /* deep navy / nightlife */
  --color-surface: #0d1020; /* slightly lighter for cards/sections */
  --color-surface-alt: #121528;
  --color-text: #f7f3e9; /* warm light beige for main text */
  --color-text-muted: #b0a79a;
  --color-primary: #e0293b; /* energetic red accent */
  --color-primary-soft: rgba(224, 41, 59, 0.12);
  --color-gold: #f4c76b; /* golden highlight */
  --color-gold-soft: rgba(244, 199, 107, 0.18);
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --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;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  /* Font sizes (clamped for responsive scaling) */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: clamp(1.4rem, 2vw, 1.6rem);
  --font-size-3xl: clamp(1.8rem, 3vw, 2.1rem);
  --font-size-4xl: clamp(2.2rem, 4vw, 2.6rem);
  --font-size-5xl: clamp(2.7rem, 5vw, 3.2rem);

  /* Line heights */
  --line-tight: 1.1;
  --line-snug: 1.3;
  --line-normal: 1.5;
  --line-relaxed: 1.7;

  /* Spacing scale (px) */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows – slightly colorful for nightlife vibe */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.85);
  --shadow-glow-red: 0 0 20px rgba(224, 41, 59, 0.45);
  --shadow-glow-gold: 0 0 24px rgba(244, 199, 107, 0.45);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: 20px;

  /* Z-index */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

img {
  height: auto;
}

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

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

textarea {
  resize: vertical;
}

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

/* ========================================================================
   Base Styles
   ======================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-normal);
  background: radial-gradient(circle at top left, #121528 0, #050714 55%, #02030a 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--sp-4);
}

h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--sp-3);
}

h3 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--sp-3);
}

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

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

h6 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--sp-2);
}

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

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

small {
  font-size: 0.875em;
}

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

/* Links – subtle default, highlighted on hover */
a {
  position: relative;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 999px;
  transition: width var(--transition-base);
}

a:hover::after,
a:focus-visible::after {
  width: 100%;
}

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

/* ========================================================================
   Accessibility & Focus Styles
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.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(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.container--wide {
  max-width: 1440px;
}

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

/* Alignment helpers */
.text-center {
  text-align: center;
}

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

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

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--sp-3); }
.mt-md { margin-top: var(--sp-6); }
.mt-lg { margin-top: var(--sp-10); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--sp-3); }
.mb-md { margin-bottom: var(--sp-6); }
.mb-lg { margin-bottom: var(--sp-10); }

.pt-sm { padding-top: var(--sp-3); }
.pt-md { padding-top: var(--sp-6); }
.pt-lg { padding-top: var(--sp-10); }

.pb-sm { padding-bottom: var(--sp-3); }
.pb-md { padding-bottom: var(--sp-6); }
.pb-lg { padding-bottom: var(--sp-10); }

/* Nightlife / poker accent utilities */
.bg-surface {
  background-color: var(--color-surface);
}

.bg-surface-alt {
  background-color: var(--color-surface-alt);
}

.bg-primary-soft {
  background: radial-gradient(circle at top, var(--color-primary-soft), transparent 70%);
}

.bg-gold-soft {
  background: radial-gradient(circle at top, var(--color-gold-soft), transparent 70%);
}

.text-primary {
  color: var(--color-primary);
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-glow-red {
  box-shadow: var(--shadow-glow-red);
}

.shadow-glow-gold {
  box-shadow: var(--shadow-glow-gold);
}

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

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

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

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #ff5c5c);
  color: #ffffff!important;
  box-shadow: var(--shadow-sm), var(--shadow-glow-red);
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: rgba(244, 199, 107, 0.7);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: rgba(244, 199, 107, 0.08);
  box-shadow: var(--shadow-glow-gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border-radius: var(--radius-full);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

/* Icon alignment inside button */
.btn > svg,
.btn > span.icon {
  width: 1rem;
  height: 1rem;
}

.btn > svg:first-child,
.btn > span.icon:first-child {
  margin-right: 0.4rem;
}

.btn > svg:last-child,
.btn > span.icon:last-child {
  margin-left: 0.4rem;
}

/* Inputs */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(5, 7, 20, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px rgba(244, 199, 107, 0.8), var(--shadow-md);
  background-color: rgba(10, 12, 30, 0.98);
}

.input--error,
.select--error,
.textarea--error {
  border-color: var(--color-danger);
}

.input--error:focus-visible,
.select--error:focus-visible,
.textarea--error:focus-visible {
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.9), var(--shadow-md);
}

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

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

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

/* Cards – for menu items, events, poker nights */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(18, 21, 40, 0.96), rgba(10, 13, 30, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 41, 59, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 199, 107, 0.12), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

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

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

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

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

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

/* Tag / Pill – for event day labels, poker type, etc. */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.4);
}

.tag--primary {
  border-color: rgba(224, 41, 59, 0.7);
  color: var(--color-primary);
  background: rgba(224, 41, 59, 0.16);
}

.tag--gold {
  border-color: rgba(244, 199, 107, 0.7);
  color: var(--color-gold);
  background: rgba(244, 199, 107, 0.16);
}

/* Status badges (Rezerwacja / Wolne miejsca etc.) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.badge--warning {
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-warning);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.18);
  color: var(--color-danger);
}

/* Hero overlay – for lively visuals (photos of evenings, poker tables) */
.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 7, 20, 0.15) 0, rgba(5, 7, 20, 0.9) 70%, rgba(5, 7, 20, 1) 100%),
    radial-gradient(circle at 10% 0, rgba(224, 41, 59, 0.3), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(244, 199, 107, 0.25), transparent 65%);
  mix-blend-mode: multiply;
  z-index: -1;
}

/* Simple chip-list component for filters (Menu / Eventy / Poker) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
}

.chip--active,
.chip:hover {
  border-color: var(--color-primary);
  background: rgba(224, 41, 59, 0.22);
  color: var(--color-text);
}

/* Toast / flash message – reservation feedback */
.toast {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-overlay);
  max-width: 320px;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 40, 0.96);
  border: 1px solid rgba(244, 199, 107, 0.5);
  color: var(--color-text);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}

@media (max-width: 640px) {
  .toast {
    left: var(--sp-3);
    right: var(--sp-3);
  }
}

/* Simple table styling – for menu listings, tournament structures */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table thead {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.table th,
.table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* End of base.css */
