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

:root {
  /* Color Palette - Urban Meet Night */
  --color-background: #050609; /* near-black for cinematic feel */
  --color-surface: #10131a;
  --color-surface-alt: #181c26;
  --color-text: #f5f5f7;
  --color-text-muted: #a0a4b3;

  /* Brand & States */
  --color-primary: #ff3b6a; /* vibrant neon-like accent */
  --color-primary-soft: rgba(255, 59, 106, 0.12);
  --color-primary-strong: #ff174f;

  --color-success: #18c964;
  --color-warning: #ffb020;
  --color-danger: #ff4b4b;

  /* Neutral Grays (for borders, subtle text, dividers) */
  --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;

  /* Borders & Dividers */
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  /* Focus */
  --color-focus-ring: rgba(255, 59, 106, 0.7);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --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;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows - soft glow for nightlife feel */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 18px rgba(255, 59, 106, 0.55);

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

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

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

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

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

body {
  margin: 0;
}

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

ol, ul {
  padding-left: 1.25rem;
}

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

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

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

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

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

/* Remove underlines on abbreviation and address default styles */
abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

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

body {
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.25rem, 3vw, 3rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.875rem, 2.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

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

p.is-muted,
.small-text,
.text-muted {
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

pre {
  margin: 0;
}

/* Links - subtle by default, accent on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

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

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

/* Tables - kept minimal for practical info sections */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th, td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

th {
  text-align: left;
  font-weight: 600;
}

/* ==========================================================================   
   Accessibility & Focus
   ========================================================================== */

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

/* Improve focus styles for elements that normally don't show it */
[tabindex]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-focus-ring);
}

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

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

/* Layout */

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

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

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

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

.section--alt {
  background: radial-gradient(circle at top left, rgba(255, 59, 106, 0.08), transparent 55%),
              radial-gradient(circle at bottom right, rgba(24, 201, 100, 0.06), transparent 55%),
              var(--color-surface);
}

/* Flex helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

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

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

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

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

/* Grid helpers */

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

/* Text alignment */

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

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

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

/* Spacing utilities (margin/padding bottom only for common stacking) */

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

.mt-0 {
  margin-top: 0;
}

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

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

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

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

/* Utility for max-width text blocks (e.g., FAQ, descriptions) */

.text-block {
  max-width: 640px;
}

.text-block--center {
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  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),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast);
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}

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

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

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

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

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

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

/* Form Elements */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(9, 11, 17, 0.95);
  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);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 0 0 4px rgba(255, 59, 106, 0.35);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

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

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

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

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

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

/* Card - for events, poker info, testimonials, offers */

.card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(16, 19, 26, 0.96));
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

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

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

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

.card--highlight {
  border-color: rgba(255, 59, 106, 0.45);
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

/* Tag / Pill (e.g., poker nights, sports, promo) */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(10, 12, 18, 0.85);
  color: var(--color-text-muted);
}

.pill--accent {
  border-color: rgba(255, 59, 106, 0.55);
  background-color: var(--color-primary-soft);
  color: #ffffff;
}

/* Hero overlay gradient helper for ambiance images */

.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 9, 0.15), rgba(5, 6, 9, 0.95));
  pointer-events: none;
}

/* Badges for status (e.g. Nowe wydarzenie, Promo) */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  line-height: 1.2;
  font-weight: 600;
}

.badge--success {
  background-color: rgba(24, 201, 100, 0.15);
  color: var(--color-success);
}

.badge--warning {
  background-color: rgba(255, 176, 32, 0.18);
  color: var(--color-warning);
}

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

/* Simple chip list for filters (e.g., Poker, Sport, Eventy specjalne) */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-xs);
  cursor: pointer;
  background-color: rgba(9, 11, 17, 0.9);
  color: var(--color-text-muted);
  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-color: var(--color-primary-soft);
  color: #ffffff;
}

/* Simple responsive media wrapper for gallery & sports screens */

.media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}

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

/* FAQ accordion baseline */

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-4) 0;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* Toast / notification (e.g., reservation confirmed, promo info) */

.toast {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  max-width: 320px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(10, 12, 18, 0.96);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-sm);
  z-index: 50;
}

.toast--success {
  border-color: rgba(24, 201, 100, 0.6);
}

.toast--danger {
  border-color: rgba(255, 75, 75, 0.6);
}

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

/* ==========================================================================   
   End of Base
   ========================================================================== */
