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

:root {
  /* Colors - Nightlife palette */
  --color-bg: #05060a; /* deep near-black */
  --color-bg-elevated: #0d0f18;
  --color-bg-soft: #151728;

  --color-text: #f7f7fb;
  --color-text-muted: #a3a6b8;
  --color-border-subtle: #2b2e40;

  --color-primary: #f5c75a; /* warm gold for CTAs */
  --color-primary-soft: rgba(245, 199, 90, 0.1);
  --color-primary-strong: #ffd66b;

  --color-accent-blue: #1f4bff; /* neon-ish deep blue */
  --color-accent-burgundy: #7b1430;

  --color-success: #37d087;
  --color-warning: #f3b63a;
  --color-danger: #ff4b5c;

  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5f5;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-heading: "Poppins", 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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* 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-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows - subtle glow for nightlife vibe */
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-glow-gold: 0 0 18px rgba(245, 199, 90, 0.55);

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

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

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

html,
body,
div,
span,
applet,
object,
iframe,
 h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p,
 blockquote,
 pre,
 a,
 abbr,
 acronym,
 address,
 big,
 cite,
 code,
 del,
 dfn,
 em,
 img,
 ins,
 kbd,
 q,
 s,
 samp,
 small,
 strike,
 strong,
 sub,
 sup,
 tt,
 var,
 b,
 u,
 i,
 center,
 dl,
 dt,
 dd,
 ol,
 ul,
 li,
 fieldset,
 form,
 label,
 legend,
 table,
 caption,
 tbody,
 tfoot,
 thead,
 tr,
 th,
 td,
 article,
 aside,
 canvas,
 details,
 embed,
 figure,
 figcaption,
 footer,
 header,
 hgroup,
 menu,
 nav,
 output,
 ruby,
 section,
 summary,
 time,
 mark,
 audio,
 video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

table {
  border-collapse: collapse;
  border-spacing: 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;
  cursor: pointer;
}

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

/* Reduce motion if user prefers */
@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-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #151728 0, #05060a 55%, #000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

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

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

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

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

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

small {
  font-size: 0.875em;
}

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

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

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

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

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

/* Visually hidden but accessible */
.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%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1200px;
}

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

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

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

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

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

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

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

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

/* Alignment & text utilities */

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

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

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

.text-gold {
  color: var(--color-primary);
}

.bg-elevated {
  background-color: var(--color-bg-elevated);
}

/* Spacing utilities (common) */

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

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

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Max-width helpers for readable text blocks */

.max-w-text {
  max-width: 720px;
}

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

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

/* Buttons - primary CTAs for booking / kontakt */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #f5c75a, #f8e38a);
  color: #1b1304;
  box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

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

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

.btn-outline {
  background: transparent;
  border-color: rgba(245, 199, 90, 0.6);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: rgba(12, 15, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(21, 23, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
}

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

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

/* Form elements - for kontakt & zapytania forms */

.input,
.textarea,
.select {
  width: 100%;
  background-color: rgba(10, 12, 24, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 0.7rem 0.9rem;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(245, 199, 90, 0.6);
}

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

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

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

/* Card - for event formats, testimonials, FAQ items, etc. */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(245, 199, 90, 0.05), transparent 55%),
    radial-gradient(circle at bottom right, rgba(31, 75, 255, 0.06), transparent 55%),
    var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--soft {
  background: var(--color-bg-soft);
  box-shadow: none;
}

.card:hover {
  border-color: rgba(245, 199, 90, 0.2);
}

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

/* Hero overlay / image helpers (for poker / ruletka visuals) */

.hero {
  position: relative;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(245, 199, 90, 0.15), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(31, 75, 255, 0.18), transparent 60%),
    radial-gradient(circle at 0 100%, rgba(123, 20, 48, 0.24), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(5, 6, 10, 0.7);
  border: 1px solid rgba(245, 199, 90, 0.5);
  color: var(--color-primary);
}

/* Tag / pill - e.g. "Eventy mobilne", "Bez hazardu" */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Badge states */

.badge-success {
  color: var(--color-success);
  border-color: rgba(55, 208, 135, 0.5);
}

.badge-warning {
  color: var(--color-warning);
  border-color: rgba(243, 182, 58, 0.5);
}

.badge-danger {
  color: var(--color-danger);
  border-color: rgba(255, 75, 92, 0.5);
}

/* Subtle divider - good for sections like FAQ / testimonials */

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Animations (lightweight, night-club style accents)
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.6s var(--transition-normal) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-pulse {
  animation: glowPulse 2.8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(245, 199, 90, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(245, 199, 90, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .glow-pulse {
    animation: none;
  }
}

/* ==========================================================================
   Helper classes tailored to urbaneventsclub.com
   ========================================================================== */

/* Dark gradient section used for key blocks like "Eventy rozrywkowe" */

.section-gradient {
  background: radial-gradient(circle at top, rgba(245, 199, 90, 0.14), transparent 55%),
    linear-gradient(145deg, #05060a, #080812 40%, #05060a 80%);
}

/* Testimonial quote style */

.quote {
  position: relative;
  padding-left: var(--space-6);
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 2.5rem;
  color: rgba(245, 199, 90, 0.35);
}

/* FAQ accordion base structure (behavior to be handled via JS) */

.faq-item {
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-4) var(--space-5);
}

.faq-question {
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

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

/* Gallery image wrapper */

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0, 0, 0, 0.65), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

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