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

:root {
  /* Colors - Luxury black & violet with warm gold accents */
  --color-bg: #050509; /* main background */
  --color-bg-elevated: rgba(18, 18, 30, 0.92); /* glass-style cards */
  --color-bg-soft: #111119;

  --color-surface: #171727;
  --color-surface-soft: rgba(23, 23, 39, 0.85);

  --color-text: #f9f9ff;
  --color-text-muted: #b2b3c5;
  --color-text-soft: #8b8da3;

  --color-primary: #8a5bff; /* main violet */
  --color-primary-soft: rgba(138, 91, 255, 0.18);
  --color-primary-strong: #a57aff;

  --color-accent-gold: #f6c453; /* warm gold for premium cues */
  --color-accent-gold-soft: rgba(246, 196, 83, 0.2);

  --color-success: #32d990;
  --color-warning: #ffb347;
  --color-danger: #ff4f6e;

  --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;

  /* Gradients & glow accents for casino / poker atmosphere */
  --gradient-primary: linear-gradient(135deg, #8a5bff 0%, #ff4f6e 50%, #f6c453 100%);
  --gradient-violet: radial-gradient(circle at 0% 0%, #8a5bff 0%, transparent 55%),
                     radial-gradient(circle at 100% 100%, #ff4f6e 0%, transparent 60%);
  --shadow-neon-primary: 0 0 18px rgba(138, 91, 255, 0.6);
  --shadow-neon-gold: 0 0 18px rgba(246, 196, 83, 0.55);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px, 4px steps) */
  --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-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-9: 2.25rem;   /* 36px */
  --space-10: 2.5rem;   /* 40px */
  --space-11: 2.75rem;  /* 44px */
  --space-12: 3rem;     /* 48px */
  --space-14: 3.5rem;   /* 56px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows (glass + depth) */
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.45);
  --shadow-soft-up: 0 -10px 30px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 70px rgba(0, 0, 0, 0.75);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;

  /* Layout */
  --container-max-width: 1200px;
  --container-gutter: 1.25rem;
}

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


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

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

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

body {
  margin: 0;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

/* Remove animations for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::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-md);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
  -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);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 1.5vw, 2.25rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

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

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

a {
  color: var(--color-primary-strong);
  text-decoration: none;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-accent-gold);
  text-shadow: 0 0 8px rgba(246, 196, 83, 0.6);
}

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

/* Lists */

ul, ol {
  padding-left: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-3);
}


/* Horizontal rule for section dividers (e.g. between FAQ, Oferta blocks) */

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}


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

/* Layout container (used across all pages, esp. hero, oferta, poker, eventy) */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Flex helpers */

.flex {
  display: flex;
}

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

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

.flex-col {
  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-end {
  justify-content: flex-end;
}

.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 (for Oferta, Galeria, Eventy sections) */

.grid {
  display: grid;
}

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

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

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

/* Width / alignment helpers */

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

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

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

.w-full {
  width: 100%;
}

/* Spacing utilities (common for sections like FAQ, Kontakt, O nas) */

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

@media (min-width: 768px) {
  .section-padding-y {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Visually hidden but accessible (for Polish headings, aria labels) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* Glass / neon background utility (for hero overlays, CTA strips) */

.glass-surface {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.neon-border {
  position: relative;
}

.neon-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(138, 91, 255, 0.7), rgba(255, 79, 110, 0.7), rgba(246, 196, 83, 0.8), rgba(138, 91, 255, 0.7));
  opacity: 0.35;
  filter: blur(6px);
  z-index: -1;
}


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

/* Buttons - primary CTAs for rezerwacja / wycena / kontakt */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    filter var(--transition-base);
}

.btn--primary {
  background-image: linear-gradient(120deg, #8a5bff, #ff4f6e);
  color: #ffffff;
  box-shadow: var(--shadow-neon-primary);
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 79, 110, 0.7), var(--shadow-neon-primary);
}

.btn--outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 12px rgba(138, 91, 255, 0.6);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-soft);
}

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

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

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

/* Inputs - forms for Kontakt / Wycena, booking poker nights, FAQ search */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(5, 5, 12, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(178, 179, 197, 0.7);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow:
    0 0 0 1px rgba(138, 91, 255, 0.8),
    0 0 18px rgba(138, 91, 255, 0.5);
  background-color: rgba(9, 9, 18, 0.96);
}

.textarea {
  min-height: 140px;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(178, 179, 197, 0.9) 50%),
                    linear-gradient(135deg, rgba(178, 179, 197, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Card component - glass effect for Oferta tiles, Poker formats, FAQ boxes */

.card {
  position: relative;
  background: radial-gradient(circle at 0% 0%, rgba(138, 91, 255, 0.16), transparent 60%),
              linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 196, 83, 0.5);
  box-shadow: var(--shadow-elevated), var(--shadow-neon-gold);
}

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

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

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

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

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

/* Focus-visible global style for interactive components */

a[href],
button,
[role="button"],
input,
textarea,
select {
  outline-offset: 2px;
}

a[href]:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-gold);
}

/* Tag / pill for categories like "Poker", "Event firmowy", etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-text-soft);
  background: radial-gradient(circle at 0 0, rgba(138, 91, 255, 0.26), transparent 55%);
}

/* Simple chip-like element for filters (e.g. Galeria, FAQ category) */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
  background-color: rgba(12, 12, 20, 0.9);
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
}

.chip--active,
.chip:hover {
  border-color: var(--color-primary-strong);
  color: var(--color-text);
  background-color: rgba(138, 91, 255, 0.28);
  box-shadow: 0 0 12px rgba(138, 91, 255, 0.6);
}

/* Helper for dark overlay (used under hero photos / cinematic backdrops) */

.backdrop-overlay {
  position: relative;
}

/*.backdrop-overlay::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: 0;*/
/*  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.4), transparent 60%),*/
/*              linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(5, 5, 9, 1));*/
/*  pointer-events: none;*/
/*}*/

/* Utility for subtle top border glow, suitable for navigation or footer */

.glow-top-border {
  position: relative;
}

.glow-top-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 91, 255, 0), rgba(138, 91, 255, 0.6), rgba(246, 196, 83, 0));
  box-shadow: 0 0 12px rgba(138, 91, 255, 0.8);
}

/* End of base.css */
