/* ========================================================================
   VARIABLES
   ======================================================================== */

:root {
  /* Color Palette - premium, elegant, casino-inspired */
  --color-background: #05070d;
  --color-surface: #0d111a;
  --color-surface-alt: #151a24;
  --color-text: #f5f5f7;
  --color-text-muted: #a0a4b3;

  --color-primary: #e6b55a; /* warm gold */
  --color-primary-soft: rgba(230, 181, 90, 0.14);
  --color-primary-strong: #ffcf6e;

  --color-success: #37c977;
  --color-warning: #ffb347;
  --color-danger: #ff4f64;

  /* Neutral grays */
  --gray-50: #f8fafc;
  --gray-100: #edf1f7;
  --gray-200: #dde2ee;
  --gray-300: #c3cadb;
  --gray-400: #9aa2b8;
  --gray-500: #707893;
  --gray-600: #4e556d;
  --gray-700: #34394b;
  --gray-800: #212534;
  --gray-900: #12141d;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", 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.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --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 - soft, premium */
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft-up: 0 -10px 30px rgba(0, 0, 0, 0.4);
  --shadow-subtle: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-focus: 0 0 0 1px rgba(230, 181, 90, 0.3), 0 0 0 4px rgba(230, 181, 90, 0.18);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-normal: 180ms ease;
  --transition-slow: 260ms ease-in-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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

article,
aside,
footer,
header,
nav,
section,
main {
  display: block;
}

ol,
ul {
  list-style: none !important;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

button[disabled],
[aria-disabled="true"],
:disabled {
  cursor: not-allowed;
}

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

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================================
   BASE STYLES
   ======================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #101528 0, #05070d 55%, #02030a 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-4xl));
}

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-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

strong,
b {
  font-weight: 600;
}

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

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

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

/* Links - refined hover underline */

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

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-normal);
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #fff !important;
}

/* ========================================================================
   ACCESSIBILITY & PREFERENCES
   ======================================================================== */

:focus {
  outline: none;
}

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

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

/* ========================================================================
   UTILITIES
   ======================================================================== */

/* Layout container for wide and immersive sections */

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

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

.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-column {
  flex-direction: column;
}

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

.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-around {
  justify-content: space-around;
}

.justify-end {
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-2);
}

.gap-sm {
  gap: var(--space-3);
}

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

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

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

/* Screen reader only */

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

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Simple spacing utilities (for quick layout tuning) */

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

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

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

/* ========================================================================
   COMPONENTS - BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  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:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #0b0b10;
  border-color: rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: rgba(10, 13, 20, 0.8);
  border-color: rgba(230, 181, 90, 0.6);
  color: var(--color-primary-strong);
}

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

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

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

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: var(--font-size-md);
}

.btn[disabled],
.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  box-shadow: none;
}

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

/* ========================================================================
   COMPONENTS - FORM ELEMENTS
   ======================================================================== */

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(8, 10, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

.form-control::placeholder {
  color: rgba(160, 164, 179, 0.8);
}

.form-control:focus-visible {
  border-color: rgba(230, 181, 90, 0.9);
  box-shadow: var(--shadow-focus);
  background-color: rgba(8, 10, 18, 0.98);
}

.form-control[disabled],
.form-control:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.input-error {
  border-color: rgba(255, 79, 100, 0.9);
}

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

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

/* ========================================================================
   COMPONENTS - CARD
   ======================================================================== */

.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(230, 181, 90, 0.06), transparent 55%),
              linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.8));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.card--subtle {
  box-shadow: var(--shadow-subtle);
  background: linear-gradient(160deg, rgba(12, 16, 28, 0.98), rgba(6, 8, 18, 0.98));
}

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

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

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

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

.card-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* Hover lift utility for cards / tiles */

.hover-lift {
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
  border-color: rgba(230, 181, 90, 0.35);
}

/* ========================================================================
   COMPONENTS - TAGS / BADGES (for event types like "Poker Night")
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 12, 0.9);
  color: var(--color-text-muted);
}

.badge-primary {
  border-color: rgba(230, 181, 90, 0.7);
  background: rgba(230, 181, 90, 0.12);
  color: var(--color-primary-strong);
}

.badge-soft {
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================================================
   OPTIONAL: HEADER / NAV BASICS (for consistent multi-page layout)
   ======================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xs);
}

.brand span {
  font-size: var(--font-size-sm);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* ========================================================================
   END
   ======================================================================== */
