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

:root {
  /* Colors */
  --color-background: #050910; /* deep casino-like background */
  --color-surface: #101624;
  --color-surface-alt: #171f33;
  --color-text: #f5f7ff;
  --color-text-muted: #a3acc7;
  --color-primary: #e91e63; /* vibrant accent */
  --color-primary-soft: rgba(233, 30, 99, 0.12);
  --color-success: #00c853;
  --color-warning: #ffab00;
  --color-danger: #ff5252;

  /* 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: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", "Times New Roman", 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.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* 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-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows (casino-neon themed) */
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 24px rgba(233, 30, 99, 0.55);

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

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

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

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

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

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

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

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

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

/* Remove animations & transitions for users who prefer reduced motion */
@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;
  }
}

/* ========================================================================== 
   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, #151b32 0, #050910 48%, #010309 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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: var(--font-size-5xl);
  letter-spacing: 0.04em;
}

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

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

strong, b {
  font-weight: 600;
}

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

/* Focus-visible outlines for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* Layout: Container */

.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: 1320px;
  }
}

/* Spacing utilities (margin / padding) */

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.pt-8 { padding-top: var(--space-8) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }

/* Flex helpers */
ul#primary-navigation {
    width: 100%;
}
.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 {
  flex-direction: column;
}

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

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

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

/* Text alignment */

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

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

/* Utility: subtle divider for sections */

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

.section--dark {
  background: radial-gradient(circle at top, #171f33 0, #050910 60%, #02030a 100%);
}

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

.section__subtitle {
  max-width: 640px;
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  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: linear-gradient(135deg, #ff4081 0%, #e91e63 40%, #ff6d00 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 32px rgba(255, 64, 129, 0.8);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

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

/* Form elements */

.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(5, 9, 16, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: rgba(163, 172, 199, 0.7);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.6), var(--shadow-sm);
  background-color: rgba(10, 16, 28, 0.98);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
}

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

/* Card component: for events, poker nights, formats, etc. */

.card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(233, 30, 99, 0.12) 0, rgba(16, 22, 36, 0.98) 46%, rgba(5, 9, 16, 1) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 193, 7, 0.18), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}

.card__title {
  margin-bottom: var(--space-2);
}

.card__meta {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

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

/* Navigation (generic, can be reused on all pages) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 9, 16, 0.96), rgba(5, 9, 16, 0.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

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

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4081, #ffea00);
  transition: width var(--transition-base);
}

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

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

.nav a[aria-current="page"] {
  color: #fff;
}

/* Hero section helper for Home page */

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

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0, rgba(233, 30, 99, 0.18), transparent 55%),
    radial-gradient(circle at 90% 0, rgba(255, 214, 0, 0.16), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-10);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

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

.hero__subtitle {
  max-width: 30rem;
  margin-bottom: var(--space-6);
}

/* Gallery helper */

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

.gallery-grid img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 260px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-grid img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  background: radial-gradient(circle at top, #151b32 0, #050910 60%, #02030a 100%);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer__brand {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.site-footer a:hover {
  color: #fff !important;
}

/* Badges for event types (Poker, Casino, etc.) */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(5, 9, 16, 0.9);
}

.badge--primary {
  border-color: rgba(233, 30, 99, 0.75);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(255, 193, 7, 0.18));
}

.badge--success {
  border-color: rgba(0, 200, 83, 0.75);
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.18), rgba(0, 0, 0, 0.3));
}

/* Status text helpers */

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

/* Z-index helpers for overlapping visual effects */

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
