/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors - Nightlife Palette */
  --color-bg-primary: #0A0E14; /* deep midnight black */
  --color-bg-secondary: #151A1F; /* dark graphite */
  --color-bg-card: #1C232C; /* charcoal card */
  --color-text: #F5EFE6; /* warm ivory */
  --color-heading: #D4AF37; /* electric gold */
  --color-primary: #FFB020; /* vibrant amber (CTAs) */
  --color-primary-hover: #C77700; /* dark orange hover */
  --color-accent-cyan: #2EC4B6; /* neon cyan */
  --color-accent-violet: #7A5CFF; /* nightlife violet */
  --color-success: #21C674;
  --color-warning: #FFC857;
  --color-danger: #FF4D6A;

  /* Neutral grays for UI / text subtleties */
  --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 Neue", Arial, sans-serif;
  --font-display: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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.6;
  --line-height-relaxed: 1.8;

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

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - subtle, cinematic */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-glow-gold: 0 0 25px rgba(212, 175, 55, 0.45);
  --shadow-glow-cyan: 0 0 30px rgba(46, 196, 182, 0.45);

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

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

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

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

body {
  margin: 0;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

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

/* Remove default list bullets */
ul[role="list"],
ol[role="list"],
ul,
ol {
  list-style: none;
}

/* Better line-height for form controls */
input, button, textarea, select {
  line-height: inherit;
}

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

main {
  min-height: 60vh;
}

/* Headings – cinematic, premium */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, var(--font-size-4xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

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

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

p {
  margin-bottom: var(--space-4);
  color: rgba(245, 239, 230, 0.9);
}

strong {
  font-weight: 600;
}

/* Links – subtle, with nightlife glow on hover */
a {
  position: relative;
  transition: color var(--transition-base),
              text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 10px rgba(46, 196, 182, 0.6);
}

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

/* ==================================================================
   Accessibility & Focus States
   ================================================================== */
: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);
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}

/* Respect reduced motion */
@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;
  }
}

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

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

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

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

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

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

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

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

.mt-0 { margin-top: 0; }
.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-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

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

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

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

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

/* Buttons: primary CTAs for booking / kontakt */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

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

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

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

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(245, 239, 230, 0.35);
}

.btn-outline:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

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

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

/* Forms: inputs / selects / textareas */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: rgba(10, 14, 20, 0.9);
  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: rgba(148, 163, 184, 0.75);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.5), var(--shadow-soft);
  background-color: rgba(21, 26, 31, 0.98);
}

.field-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.85);
}

.field-helper {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--gray-400);
}

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

/* Card component – for services like poker nights, roulette events */
.card {
  position: relative;
  background: radial-gradient(circle at top, rgba(122, 92, 255, 0.16), transparent 55%),
              radial-gradient(circle at bottom, rgba(46, 196, 182, 0.12), transparent 60%),
              var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(212, 175, 55, 0.5);
}

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

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

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

.card-subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 230, 0.6);
}

.card-body {
  font-size: var(--font-size-sm);
  color: rgba(245, 239, 230, 0.9);
}

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

/* Media: immersive hero / gallery images */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

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

/* Badges / tags – for categories like "Poker", "Event firmowy" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(10, 14, 20, 0.8);
  color: rgba(245, 239, 230, 0.85);
}

.badge--accent {
  border-color: rgba(46, 196, 182, 0.85);
  color: var(--color-accent-cyan);
}

/* ==================================================================
   Navigation & Footer (basic structural styles)
   ================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(10, 14, 20, 0.96), rgba(10, 14, 20, 0.72));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  color: var(--color-heading);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.8);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link--active {
  color: var(--color-accent-cyan);
  border-bottom-color: var(--color-accent-cyan);
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .navbar-menu {
    display: none; /* Controlled via JS for mobile menu */
  }
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background-color: #05070b;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  color: rgba(148, 163, 184, 0.9);
}

.site-footer a:hover {
  color: var(--color-accent-cyan);
}

/* ==================================================================
   Hero & Page Intro Helpers (for immersive storytelling)
   ================================================================== */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.hero--overlay {
  position: relative;
  isolation: isolate;
}

.hero--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(122, 92, 255, 0.3), transparent 60%);
  opacity: 0.8;
  z-index: -1;
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 230, 0.7);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  max-width: 36rem;
  font-size: var(--font-size-lg);
  color: rgba(245, 239, 230, 0.88);
}

.hero-cta-group {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ==================================================================
   Misc Utilities (for cards / testimonials / FAQ)
   ================================================================== */
.bg-secondary {
  background-color: var(--color-bg-secondary);
}

.text-muted {
  color: rgba(148, 163, 184, 0.9);
}

.text-accent {
  color: var(--color-accent-cyan);
}

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-strong { box-shadow: var(--shadow-strong); }

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

/* End of base.css */
