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

:root {
  /* Color Palette - Luxury Casino Theme */
  --color-background: #05060a;            /* Near-black cinematic base */
  --color-surface: #101218;               /* Elevated panels */
  --color-surface-soft: #161925;          /* Soft section backgrounds */
  --color-text: #f5f1e6;                  /* Ivory text */
  --color-text-muted: #a6a296;            /* Muted ivory/grey */

  --color-primary: #d2a75a;               /* Gold accent */
  --color-primary-soft: rgba(210, 167, 90, 0.15);
  --color-primary-strong: #f1c66b;

  --color-accent-green: #0f3d33;          /* Deep casino green */
  --color-accent-burgundy: #4b1320;       /* Deep burgundy */

  --color-success: #38c172;               /* System greens */
  --color-warning: #ffb347;
  --color-danger: #e3342f;

  /* Neutral scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "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.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px values expressed in rem for 16px base) */
  --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 */

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

  /* Shadows - cinematic, soft */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 22px 45px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);

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

  /* Layout */
  --container-max-width: 1200px;
  --container-wide-max-width: 1440px;
}

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

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

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

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

body {
  min-height: 100vh;
}

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

img {
  height: auto;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
 h2,
 h3,
 h4,
 h5,
 h6,
 p {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Remove link underlines by default; handled in base */
a {
  text-decoration: none;
  color: inherit;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

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

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

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

/* Links - premium subtle underline on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base),
              text-shadow var(--transition-base);
}

a:hover,
 a:focus-visible {
  color: var(--color-primary-strong);
  text-shadow: 0 0 12px rgba(210, 167, 90, 0.6);
}

/* Horizontal rules used for elegant separators */
hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-8) 0;
}

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

:focus {
  outline: none;
}

: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.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* Containers */

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

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

/* Flex helpers */

.flex {
  display: flex;
}

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

/* Grid helpers */

.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: 1fr;
  }
}

/* Spacing utilities (margin/padding blocks for quick layout tweaks) */

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

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

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

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

.pt-0 { padding-top: 0; }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }

.pb-0 { padding-bottom: 0; }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }

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

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

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

/* Buttons - primary, ghost, subtle */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  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);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #c49543, #f1c66b);
  color: #111 !important;
  box-shadow: var(--shadow-soft);
}

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

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

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

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

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

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-icon {
  padding: 0.6rem;
  border-radius: 999px;
}

/* Form controls */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(10, 12, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

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

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

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

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

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

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

.form-help {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card - used for game highlights, VIP blocks, rules, etc. */

.card {
  background: radial-gradient(circle at top left, rgba(210,167,90,0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(15,61,51,0.3), transparent 60%),
              var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

/* Hero utilities for full-screen cinematic sections */

.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
  background-color: #000;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.15), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0,0,0,0.97));
}

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

.hero-kicker {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  max-width: 40rem;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Badges for age restriction, VIP labels, etc. */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(5, 6, 10, 0.8);
}

.badge-gold {
  border-color: rgba(210, 167, 90, 0.75);
  color: var(--color-primary-strong);
}

.badge-danger {
  border-color: rgba(227, 52, 47, 0.65);
  color: var(--color-danger);
}

/* Tagline / overline text styling for editorial layout */

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

/* Section heading styles */

.section-heading {
  margin-bottom: var(--space-6);
}

.section-heading-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  margin-bottom: var(--space-2);
}

.section-heading-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: var(--space-2);
}

.section-heading-subtitle {
  max-width: 34rem;
  color: var(--color-text-muted);
}

/* Tables for rules & dress code or tournaments */

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

th,
 td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(16, 18, 24, 0.95);
}

tr:nth-child(even) td {
  background: rgba(16, 18, 24, 0.6);
}

/* FAQ accordion base styles (structure only) */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-4);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
}

.faq-question-text {
  font-weight: 500;
}

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

/* Map / location embed wrapper */

.map-embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery grid base */

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

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

/* Tag for age restriction (18+) */

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0px 5px;
  border-radius: 50%;
  border: 1px solid rgba(227, 52, 47, 0.8);
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Toast / alert base (for notices about offline-only rules) */

.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-info {
  background: rgba(15, 61, 51, 0.25);
  border: 1px solid rgba(15, 61, 51, 0.6);
}

.alert-warning {
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.6);
}

.alert-danger {
  background: rgba(227, 52, 47, 0.1);
  border: 1px solid rgba(227, 52, 47, 0.6);
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

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

/* Footer base styling */

.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(210,167,90,0.08), transparent 55%),
              #05060a;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.site-footer a {
  color: inherit;
}

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

/* Utility background overlays */

.bg-deep-green {
  background: radial-gradient(circle at top left, rgba(15,61,51,0.75), transparent 70%),
              var(--color-background);
}

.bg-burgundy {
  background: radial-gradient(circle at top left, rgba(75,19,32,0.8), transparent 70%),
              var(--color-background);
}

.bg-soft-panel {
  background-color: var(--color-surface-soft);
}

/* End of base.css */
