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

:root {
  /* Color palette */
  --color-bg: #050816;
  --color-bg-alt: #0b1020;
  --color-surface: #101629;
  --color-surface-soft: #171f35;
  --color-text: #f5f7ff;
  --color-text-muted: #a4acc4;
  --color-primary: #4f46e5; /* indigo */
  --color-primary-soft: rgba(79, 70, 229, 0.12);
  --color-primary-strong: #3730a3;
  --color-success: #16a34a;
  --color-warning: #facc15;
  --color-danger: #ef4444;

  /* Neutral grays */
  --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, Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Font sizes (rem) */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows (subtle neon-inspired for modern indoor venue) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.4);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.45);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-glow-primary: 0 0 0 1px rgba(79, 70, 229, 0.4), 0 0 30px rgba(79, 70, 229, 0.45);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --nav-height: 72px;
}

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

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

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

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled,
[disabled] {
  cursor: not-allowed;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Remove default link underline; will be styled in base */
a {
  text-decoration: none;
  color: inherit;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: radial-gradient(circle at top, #111827 0, #050816 45%, #020617 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: calc(100vh - var(--nav-height));
}

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

h1 {
  font-size: clamp(2.25rem, 2.6vw + 1.8rem, 3.25rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.875rem, 1.9vw + 1.5rem, 2.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.5rem, 1.1vw + 1.2rem, 2rem);
  letter-spacing: -0.03em;
}

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

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

strong {
  font-weight: 600;
}

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

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

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

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

hr {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

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

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

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

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

/* Spacing utilities (y-axis) */

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

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

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

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.py-4 { padding-block: var(--space-4) !important; }
.py-6 { padding-block: var(--space-6) !important; }
.py-8 { padding-block: var(--space-8) !important; }

/* Flex utilities */

.flex {
  display: flex;
}

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

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

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

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

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

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

/* Grid utilities */

.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: minmax(0, 1fr);
  }
}

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(79, 70, 229, 0.12);
  color: #c7d2fe;
}

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

/* Buttons: primary CTAs for reserveren/aanvraag */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  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, var(--color-primary) 0%, #7c3aed 100%);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-strong) 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
}

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

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

/* Form controls: used for booking forms, filters, FAQ search, etc. */

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

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  color: var(--gray-200);
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  padding: 10px 12px;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

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

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.7), 0 0 0 8px rgba(79, 70, 229, 0.18);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

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

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
    linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Card component: for concept, event types, poker experience, rules, etc. */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 52%),
              radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.card--soft {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-sm);
}

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

.card-title {
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

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

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

/* Tag for non-alcohol / social focus messaging */

.tag-neutral {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.tag-neutral strong {
  color: var(--color-text);
}

/* Helper for subtle glowing borders (used around poker/social game elements) */

.glow-ring-primary {
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.5), 0 0 24px rgba(79, 70, 229, 0.4);
}

/* Tables (for opening hours, rules overview, etc.) */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

th {
  font-weight: 500;
  color: var(--gray-200);
}

tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.65);
}

/* Alerts / info banners (e.g. participation rules, age limits) */

.alert {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #dbeafe;
}

.alert-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.alert-warning {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fef9c3;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fee2e2;
}

/* Navigation shell helpers */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.94), rgba(5, 8, 22, 0.86) 60%, transparent 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-block: var(--space-8);
  background: rgba(5, 8, 22, 0.98);
}

/* Hero section helper (Home) */

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

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hero-title {
  margin-top: var(--space-3);
}

.hero-lead {
  margin-top: var(--space-4);
  max-width: 38rem;
}

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

/* FAQ summary/details */

details {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 12px;
}

details + details {
  margin-top: var(--space-3);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--color-text-muted);
}

details[open] summary::after {
  content: "−";
}

.details-body {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Badge for event types (private, zakelijk, social meetups) */

.event-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.event-type--highlight {
  border-color: rgba(79, 70, 229, 0.8);
  color: #c7d2fe;
}

/* Pagination (for Aankomende events) */

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
}

.pagination button,
.pagination a {
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.pagination .is-active {
  background: rgba(79, 70, 229, 0.25);
  color: #e5e7eb;
}

.pagination button:hover,
.pagination a:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
}

/* Chips for game types (poker + other games) */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(15, 23, 42, 0.95);
}

.chip--poker {
  border-color: rgba(244, 63, 94, 0.8);
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.45);
}

.chip--strategy {
  border-color: rgba(56, 189, 248, 0.8);
}

/* Gallery helpers */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

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

/* Badge overlay in gallery for sfeer labels */

.gallery-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

/* End of base.css */
