/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Dark, atmospheric, nightlife */
  --color-background: #05050a;
  --color-surface: #0c0c15;
  --color-surface-elevated: #151523;
  --color-text: #f8f7ff;
  --color-text-muted: #a1a1bb;
  --color-primary: #ff3366; /* neon accent */
  --color-primary-soft: rgba(255, 51, 102, 0.12);
  --color-success: #36d399;
  --color-warning: #fbbf24;
  --color-danger: #f87171;

  --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", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, 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 */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;

  /* Spacing scale (px converted to rem assuming 16px base) */
  --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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Shadows - soft neon/nightlife vibes */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 25px rgba(255, 51, 102, 0.45);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

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

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

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

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

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

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

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
}

h3 {
  font-size: clamp(1.35rem, 1.75vw + 0.5rem, 1.9rem);
}

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

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

strong {
  font-weight: 600;
}

a {
  position: relative;
  transition: color var(--transition-base);
}

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

/* Subtle underline on hover for text links */
a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), #ff9f1c);
  transition: width var(--transition-base);
  opacity: 0.8;
}

a:not(.btn):hover::after {
  width: 100%;
}

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

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

/* ========================================================================
   Layout Utilities
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

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

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

/* Flex helpers */
.flex {
  display: 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-4 {
  gap: var(--space-4);
}

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

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

.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: 1fr;
  }
}

/* Utility spacing classes (y-axis) */
.my-0 { margin-block: 0; }
.my-4 { margin-block: var(--space-4); }
.my-8 { margin-block: var(--space-8); }

.py-4 { padding-block: var(--space-4); }
.py-8 { padding-block: var(--space-8); }

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

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

/* ========================================================================
   Components - Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #ffffff;
  background: radial-gradient(circle at 20% 0, #ff6b9b 0, var(--color-primary) 45%, #f72585 100%);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong), var(--shadow-glow-primary);
  color: #ffffff;
}

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

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

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

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
}

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

/* ========================================================================
   Components - Form Inputs
   ======================================================================== */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background-color: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 51, 102, 0.4);
  background-color: rgba(15, 23, 42, 0.95);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

/* For the contact / reservation form wrapper */
.form-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(20px);
}

@media (max-width: 640px) {
  .form-card {
    padding: var(--space-4);
  }
}

/* ========================================================================
   Components - Cards
   ======================================================================== */
.card {
  background: radial-gradient(circle at top left, rgba(255, 51, 102, 0.16), transparent 45%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 50%),
              var(--color-surface-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.card__title {
  position: relative;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.card__body {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Hover lift for interactive cards (e.g., wydarzenia, poker na zywo) */
.card--interactive {
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-primary);
}

/* ========================================================================
   Atmosphere Helpers (Nightlife / Visual-first)
   ======================================================================== */
/* Dark gradient section wrapper for hero / poker sections */
.section--night {
  position: relative;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.04), transparent 55%),
              radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
}

.section--night::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 51, 102, 0.14), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(56, 189, 248, 0.16), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.section--night > * {
  position: relative;
}

/* Overlay gradient for image-forward hero sections */
.hero-media-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-media-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 10, 0.9) 0%, rgba(5, 5, 10, 0.3) 40%, transparent 100%),
    radial-gradient(circle at 20% 0, rgba(255, 51, 102, 0.25), transparent 55%);
}

/* Simple tag / pill (e.g., "Poker na żywo", "Wydarzenia") */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: radial-gradient(circle at 0 0, rgba(255, 51, 102, 0.25), transparent 55%),
              rgba(15, 23, 42, 0.95);
}

/* Subtle separators for sections like "O nas" / "Oferta baru" */
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5), transparent);
  margin-block: var(--space-8);
}

/* ========================================================================
   Misc Helpers
   ======================================================================== */
.muted {
  color: var(--color-text-muted);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* End of base.css */
