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

:root {
  /* Colors */
  --color-bg: #050509;
  --color-bg-elevated: #11111a;
  --color-bg-soft: #181824;
  --color-surface: #14141f;
  --color-surface-soft: #1c1c2a;

  --color-text: #f5f5f7;
  --color-text-muted: #b3b3c2;
  --color-text-soft: #8d8da0;

  --color-primary: #d4af37; /* gold */
  --color-primary-soft: rgba(212, 175, 55, 0.15);
  --color-primary-alt: #b8860b;

  --color-accent-burgundy: #7b1238;
  --color-accent-navy: #0b1633;

  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  --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, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", 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 */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* 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: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows - cinematic, soft glows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-glow-gold: 0 0 18px rgba(212, 175, 55, 0.35);

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

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

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

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

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

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

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

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

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

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

textarea {
  resize: vertical;
}

/* Remove tap highlight on mobile */
button,
[role="button"],
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ==================================================================
   Base styles
   ================================================================== */

body {
  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, #151528 0, #050509 55%, #000000 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: var(--line-height-snug);
  color: #ffffff;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

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

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

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

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

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

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

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

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

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

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

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
  
}
@media (max-width: 768px) {
  .flex-between{
    flex-direction: column;
  }
  .flex{
    flex-direction: column;
  }
}
.section {
  padding-block: var(--space-12);
}

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

.section--dark {
  background: linear-gradient(135deg, var(--color-bg-soft), var(--color-bg));
}

.section--elevated {
  background: radial-gradient(circle at top, #1e1630 0, #090712 55%, #050509 100%);
}

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

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

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Spacing utilities (commonly used) */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

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

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

/* Buttons - primary CTA for booking eventy rozrywkowe */

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

.btn--primary {
  background: radial-gradient(circle at 10% 0, #fff1b8 0, var(--color-primary) 40%, #7c5b0a 100%);
  color: #14110b;
  box-shadow: var(--shadow-glow-gold);
}

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

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  border-color: rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(18px);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(212, 175, 55, 0.75);
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn--danger {
  background: linear-gradient(135deg, #e74c3c, #7b1238);
  color: #fff;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Form controls - for kontakt, wycena eventów, FAQ forms */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 8, 18, 0.92);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

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

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6);
  background-color: #050509;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.field-group {
  margin-bottom: var(--space-4);
}

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

/* Card - for event formats, poker / ruletka / blackjack info, testimonials */

.card {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12) 0, rgba(16, 12, 30, 0.98) 40%, #050509 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

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

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

.card--soft {
  background: linear-gradient(145deg, rgba(12, 10, 21, 0.96), rgba(18, 15, 32, 0.94));
}

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

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

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

.card-meta {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

/* Tag / pill - for labels like "wieczór pokerowy", "ruletka eventowa" */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(8, 8, 18, 0.92);
}

.tag--soft {
  border-color: transparent;
  background: rgba(212, 175, 55, 0.12);
  color: #f8f5e6;
}

/* Badges for status / SEO phrases in lists */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.6rem;
  font-size: var(--font-size-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-soft);
}

.badge--success { color: var(--color-success); }
.badge--danger { color: var(--color-danger); }
.badge--warning { color: var(--color-warning); }

/* Navigation shell base (can be extended per page) */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 9, 0.96), rgba(5, 5, 9, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.navbar-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.navbar-link:hover,
.navbar-link[aria-current="page"] {
  color: #ffffff;
}

/* Hero background helpers for cinematic header sections */

.hero {
  position: relative;
  padding-block: var(--space-16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(123, 18, 56, 0.55), transparent 60%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  margin-top: var(--space-3);
  max-width: 34rem;
}

/* Gallery overview base styling */

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

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.95;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Testimonial / opinie slider basics */

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

.testimonial-quote {
  font-style: italic;
}

.testimonial-author {
  margin-top: var(--space-3);
  font-weight: 500;
  color: #ffffff;
}

.testimonial-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

/* FAQ accordion base */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-4);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-size-base);
}

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

/* Callout / info stripe for disclaimers (no gambling, only entertainment) */

.callout {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(22, 18, 34, 0.96), rgba(12, 10, 24, 0.96));
  font-size: var(--font-size-sm);
}

.callout--neutral {
  border-color: rgba(255, 255, 255, 0.08);
}

.callout--warning {
  border-color: rgba(241, 196, 15, 0.6);
}

.callout--accent {
  border-color: rgba(212, 175, 55, 0.7);
}

/* Chips / counters - for stats like liczba eventów, lata doświadczenia */

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
}

.stat-label {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}

/* Footer base */

.footer {
  padding-block: var(--space-8);
  background: #020207;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
}

.footer-link {
  color: var(--color-text-soft);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* ==================================================================
   Animation helpers (subtle, cinematic)
   ================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-in-up 600ms var(--transition-base) forwards;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==================================================================
   End of base.css
   ================================================================== */
