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

:root {
  /* Color palette - inspired by premium poker & dining */
  --color-background: #050608; /* deep, near-black */
  --color-surface: #101218; /* dark card background */
  --color-surface-alt: #181b24;
  --color-text: #f5f5f7;
  --color-text-muted: #a0a3b1;

  --color-primary: #d4af37; /* royal gold */
  --color-primary-soft: rgba(212, 175, 55, 0.1);
  --color-primary-strong: #e0bb47;

  --color-success: #39b36b;
  --color-warning: #f0b429;
  --color-danger: #e05656;

  --color-border-subtle: #262938;
  --color-border-strong: #3a3f54;

  --color-neutral-50: #0b0c10;
  --color-neutral-100: #141620;
  --color-neutral-200: #1f2230;
  --color-neutral-300: #2b2f3f;
  --color-neutral-400: #3a3f54;
  --color-neutral-500: #4b5168;
  --color-neutral-600: #6b7187;
  --color-neutral-700: #8f94a6;
  --color-neutral-800: #c4c7d2;
  --color-neutral-900: #f5f5f7;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, 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: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.5rem;   /* 8px */
  --space-4: 0.75rem;  /* 12px */
  --space-5: 1rem;     /* 16px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 2rem;     /* 32px */
  --space-8: 2.5rem;   /* 40px */
  --space-9: 3rem;     /* 48px */
  --space-10: 3.5rem;  /* 56px */
  --space-11: 4rem;    /* 64px */
  --space-12: 4.5rem;  /* 72px */
  --space-13: 5rem;    /* 80px */
  --space-14: 5.5rem;  /* 88px */
  --space-15: 6rem;    /* 96px */

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

  /* Shadows - subtle and premium */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-outline: 0 0 0 2px rgba(212, 175, 55, 0.55);

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

  /* Layout */
  --layout-max-width: 1120px;
  --layout-gutter: var(--space-6);
}

@media (max-width: 768px) {
  :root {
    --layout-gutter: var(--space-5);
  }
}


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

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-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;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none !important;
}

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

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

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

textarea {
  resize: vertical;
}

:where(a) {
  text-decoration: none;
  color: inherit;
}

:where(button),
:where([type='button']),
:where([type='reset']),
:where([type='submit']) {
  cursor: pointer;
}

:where(button:disabled,
       [type='button']:disabled,
       [type='reset']:disabled,
       [type='submit']:disabled) {
  cursor: not-allowed;
}

/* Remove animations if user prefers 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
   ========================================================================== */

body {
  min-height: 100vh;
  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, #111321 0, #050608 60%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.25rem, 2.6vw + 1.8rem, 3rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.75rem, 1.6vw + 1.4rem, 2.25rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

strong {
  font-weight: 600;
}

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

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

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

a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
  border-radius: 4px;
}

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

code,
pre {
  font-family: var(--font-mono);
}


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

/* Layout container */
.container {
  width: 100%;
  max-width: calc(var(--layout-max-width) + var(--layout-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

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

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

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

.gap-md {
  gap: var(--space-5);
}

.gap-lg {
  gap: var(--space-7);
}

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

.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: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (limited, extend per need) */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: var(--space-3) !important; }
.mt-md { margin-top: var(--space-5) !important; }
.mt-lg { margin-top: var(--space-7) !important; }
.mb-sm { margin-bottom: var(--space-3) !important; }
.mb-md { margin-bottom: var(--space-5) !important; }
.mb-lg { margin-bottom: var(--space-7) !important; }

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

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


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

/* Buttons - primary: poker chip vibe, secondary: outline */

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

.btn-primary {
  background: radial-gradient(circle at 30% 0, #ffffff33 0, transparent 40%),
              linear-gradient(135deg, #b18f28, #d4af37, #f4e39a);
  color: #101218;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  filter: saturate(1.05);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, #050608 80%, #d4af37 20%);
  background: rgba(5, 6, 8, 0.9);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

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

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

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

/* Inputs & form controls */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

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

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 17, 25, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-fast),
              background-color var(--transition-normal);
}

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

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-outline);
}

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

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

/* Card - for menus, poker nights, etc. */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 55%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

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

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

/* Focus-visible defaults (for any interactive element) */

:where(a, button, input, select, textarea, summary, [role='button'])::before,
:where(a, button, input, select, textarea, summary, [role='button'])::after {
  box-sizing: border-box;
}

:where(a, button, input, select, textarea, summary, [role='button']):focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

/* Poker-style badge (optional utility for labels) */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  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-primary);
  background: rgba(5, 6, 8, 0.9);
}

/* Tag for status (reserveren, vol, etc.) */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

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

/* Navigation helpers (basic, can be extended in page CSS) */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.93), rgba(5, 6, 8, 0.8));
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--font-size-sm);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  color: var(--color-text-muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #b18f28, #f4e39a);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Footer basics */

.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

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