/* ==========================================================================  
   Variables
   ========================================================================== */
:root {
  /* Colors - contemporary luxury poker restaurant palette */
  --color-bg: #f7f3ec;              /* ivory white */
  --color-bg-elevated: #ffffff;     /* surfaces */
  --color-bg-soft: #f0e6d9;         /* soft panels */

  --color-text: #2a2520;            /* primary text - deep walnut */
  --color-text-soft: #5f5346;       /* secondary text */
  --color-muted: #9a8c7b;           /* muted labels */

  --color-primary: #b08a3c;         /* champagne gold */
  --color-primary-soft: rgba(176, 138, 60, 0.12);
  --color-primary-strong: #a07824;

  --color-success: #6a8f4e;         /* soft olive green */
  --color-success-soft: rgba(106, 143, 78, 0.14);

  --color-warning: #c4893b;         /* warm amber */
  --color-warning-soft: rgba(196, 137, 59, 0.14);

  --color-danger: #b5524a;          /* refined red */
  --color-danger-soft: rgba(181, 82, 74, 0.14);

  /* Neutral grays tuned for warm atmosphere */
  --color-gray-50: #fbf8f3;
  --color-gray-100: #f2ebe2;
  --color-gray-200: #e3d7c6;
  --color-gray-300: #d3c3ae;
  --color-gray-400: #b9a58b;
  --color-gray-500: #9c896e;
  --color-gray-600: #7f6d55;
  --color-gray-700: #635341;
  --color-gray-800: #45382b;
  --color-gray-900: #2b2219;

  /* Overlays / glassmorphism */
  --color-glass-light: rgba(255, 255, 255, 0.78);
  --color-glass-border: rgba(255, 255, 255, 0.6);
  --color-shadow-soft: rgba(20, 12, 5, 0.08);
  --color-shadow-strong: rgba(20, 12, 5, 0.18);

  /* Typography - sophisticated pairing */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Base font sizes (mobile-first, can be adjusted via media queries) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px – body upscale */
  --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 heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --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.375rem;  /* 6px */
  --space-4: 0.5rem;    /* 8px */
  --space-5: 0.625rem;  /* 10px */
  --space-6: 0.75rem;   /* 12px */
  --space-8: 1rem;      /* 16px */
  --space-10: 1.25rem;  /* 20px */
  --space-12: 1.5rem;   /* 24px */
  --space-16: 2rem;     /* 32px */
  --space-20: 2.5rem;   /* 40px */
  --space-24: 3rem;     /* 48px */
  --space-32: 4rem;     /* 64px */
  --space-40: 5rem;     /* 80px */
  --space-48: 6rem;     /* 96px */

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

  /* Shadows */
  --shadow-soft: 0 12px 30px var(--color-shadow-soft);
  --shadow-elevated: 0 18px 45px var(--color-shadow-strong);
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);

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

  /* Layout */
  --container-max-width: 1120px;
  --header-height: 4.25rem;
}

/* Larger viewport typography adjustments */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1.0625rem; /* 17px */
    --font-size-md: 1.125rem;    /* 18px */
    --font-size-lg: 1.25rem;     /* 20px */
    --font-size-xl: 1.375rem;    /* 22px */
    --font-size-2xl: 1.75rem;    /* 28px */
    --font-size-3xl: 2.25rem;    /* 36px */
    --font-size-4xl: 2.75rem;    /* 44px */
    --font-size-5xl: 3.5rem;     /* 56px */
  }
}


/* ==========================================================================  
   Reset / Normalize
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

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

ul, ol {
  padding-left: 1.25rem;
}

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

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

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

textarea {
  resize: vertical;
}

/* Remove default link styles but keep accessibility */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Better text rendering */
body,
input,
button,
textarea,
select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================  
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

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

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

h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-8); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-5); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-4); }
h5 { font-size: var(--font-size-lg); margin-bottom: var(--space-3); }
h6 { font-size: var(--font-size-base); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin-bottom: var(--space-6);
  color: var(--color-text-soft);
}

strong {
  font-weight: 600;
}

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

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

hr {
  border: none;
  border-top: 1px solid rgba(141, 125, 104, 0.25);
  margin: var(--space-16) 0;
}

/* Links: subtle luxury hover */
a {
  position: relative;
  color: var(--color-text);
  transition: color var(--transition-base);
}

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

a:hover::after,
a:focus-visible::after {
  width: 100%;
}

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


/* ==========================================================================  
   Accessibility & Motion
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================  
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

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

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

/* 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-col {
  display: flex;
  flex-direction: column;
}

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

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

.justify-center {
  justify-content: center;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Spacing utilities (selective) */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mt-12 { margin-top: var(--space-12) !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }
.mt-16 { margin-top: var(--space-16) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }

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


/* ==========================================================================  
   Screen Reader 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
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 1.6rem;
  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;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
}

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

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

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

.btn-outline {
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-text);
  border-color: rgba(160, 133, 96, 0.4);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary);
}

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

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

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

.btn-icon-only {
  padding: 0.4rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
}


/* ==========================================================================  
   Components – Form Inputs
   ========================================================================== */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(141, 125, 104, 0.35);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

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

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft), 0 10px 25px var(--color-shadow-soft);
  background-color: #fff;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  background-color: rgba(242, 235, 226, 0.8);
  cursor: not-allowed;
  color: var(--color-muted);
}

.label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.field-help {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

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


/* ==========================================================================  
   Components – Card & Surfaces
   ========================================================================== */
.card {
  position: relative;
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(219, 197, 165, 0.6);
}

.card--soft {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(243, 231, 213, 0.98));
}

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

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

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

.card-footer {
  margin-top: var(--space-8);
}

/* Decorative subtle card / chip accent suitable for poker-inspired layout */
.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before,
.card-accent::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(176, 138, 60, 0.35);
}

.card-accent::before {
  width: 160px;
  height: 160px;
  top: -70px;
  right: -70px;
}

.card-accent::after {
  width: 110px;
  height: 110px;
  bottom: -60px;
  left: -60px;
}


/* ==========================================================================  
   Components – Header Glass Surface (for sticky header usage)
   ========================================================================== */
.header-glass {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.93),
    rgba(247, 240, 228, 0.9)
  );
  border-bottom: 1px solid rgba(219, 197, 165, 0.7);
  box-shadow: 0 10px 30px var(--color-shadow-soft);
}


/* ==========================================================================  
   Components – Footer Base
   ========================================================================== */
.footer-base {
  background: linear-gradient(180deg, #fbf7f1, #f3e5d3);
  color: var(--color-text-soft);
  border-top: 1px solid rgba(219, 197, 165, 0.8);
}

.footer-separator {
  width: 56px;
  height: 1px;
  margin: var(--space-6) 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(160, 133, 96, 0.9) 0,
    rgba(160, 133, 96, 0.9) 8px,
    transparent 8px,
    transparent 14px
  );
}


/* ==========================================================================  
   Components – Badges & Pills (events / evenings)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-gold {
  background-color: var(--color-primary-soft);
  border-color: rgba(176, 138, 60, 0.5);
  color: var(--color-primary-strong);
}

.badge-success {
  background-color: var(--color-success-soft);
  border-color: rgba(106, 143, 78, 0.5);
  color: var(--color-success);
}

.badge-muted {
  background-color: rgba(217, 205, 188, 0.5);
  border-color: rgba(181, 169, 150, 0.7);
  color: var(--color-text-soft);
}


/* ==========================================================================  
   Components – Chips / Floating Accents (poker-inspired)
   ========================================================================== */
.chip-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 2px solid rgba(176, 138, 60, 0.75);
  box-shadow: 0 6px 14px rgba(20, 12, 5, 0.18);
  background: radial-gradient(circle at 30% 30%, #fffaf0, #f1e2c8);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-card {
  position: absolute;
  width: 90px;
  height: 126px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 12, 5, 0.24);
  border: 1px solid rgba(219, 197, 165, 0.9);
  overflow: hidden;
}

.floating-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(176, 138, 60, 0.45);
}


/* ==========================================================================  
   Helpers – Text Tone / Color
   ========================================================================== */
.text-soft { color: var(--color-text-soft); }
.text-muted { color: var(--color-muted); }
.text-gold { color: var(--color-primary-strong); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

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


/* ==========================================================================  
   Helpers – Hero & Overlay (generic, for reuse)
   ========================================================================== */
.hero-shell {
  position: relative;
  color: var(--color-text);
}

.hero-overlay-soft {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 8, 2, 0.52),
    rgba(40, 26, 12, 0.2)
  );
}

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


/* ==========================================================================  
   End of base.css
   ========================================================================== */
