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

:root {
  /* Colors */
  --color-bg: #05060a; /* Deep dark background */
  --color-bg-elevated: #0b0e15;
  --color-bg-soft: #121623;
  --color-surface: #181d2a;

  --color-text: #f3f4f7;
  --color-text-muted: #a4a8b7;
  --color-border-subtle: #272c3a;

  --color-primary: #e5b15b; /* Warm gold accent */
  --color-primary-soft: rgba(229, 177, 91, 0.12);
  --color-primary-strong: #ffd27a;

  --color-success: #3ac989;
  --color-warning: #ffb347;
  --color-danger: #ff4b5c;

  --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: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, 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-md: 1.0625rem;/* 17px */
  --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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 20px;
  --space-10: 24px;
  --space-11: 28px;
  --space-12: 32px;
  --space-14: 40px;
  --space-16: 48px;
  --space-20: 64px;
  --space-24: 80px;
  --space-28: 96px;

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (suited for dark, premium look) */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow-primary: 0 0 0 1px rgba(229, 177, 91, 0.4), 0 0 25px rgba(229, 177, 91, 0.45);

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

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

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

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

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

body {
  min-height: 100vh;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

/* Respect 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 {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #161b2a 0, #05060a 55%, #020308 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  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-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

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

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: var(--space-6);
}

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

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

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

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

strong,
b {
  font-weight: 600;
}

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

/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

/* Elevation */
.surface-elevated {
  background: linear-gradient(135deg, rgba(16, 22, 37, 0.98), rgba(8, 11, 19, 0.98));
  box-shadow: var(--shadow-soft);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.7rem 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;
  line-height: 1;
  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: radial-gradient(circle at 10% 0, #ffe4a3 0, #e5b15b 40%, #b37b2b 100%);
  color: #130f08;
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline {
  background: rgba(10, 13, 22, 0.9);
  color: var(--color-primary);
  border-color: rgba(229, 177, 91, 0.5);
}

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

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

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

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

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

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

/* Form elements */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: rgba(8, 11, 19, 0.95);
  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: rgba(164, 168, 183, 0.7);
}

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

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

/* Cards (for menu items, poker nights, etc.) */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  background: radial-gradient(circle at top left, rgba(229, 177, 91, 0.06) 0, rgba(24, 29, 42, 0.98) 40%, rgba(10, 12, 19, 0.98) 100%);
  border: 1px solid rgba(229, 177, 91, 0.09);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

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

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

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

/* Tag / Pill (e.g., for "Texas Hold'em", "Fine Dining") */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(229, 177, 91, 0.4);
  background: rgba(9, 12, 20, 0.9);
  color: var(--color-primary-strong);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Simple badge for statuses */

.badge-success {
  color: #0f5132;
  background: rgba(58, 201, 137, 0.2);
}

.badge-danger {
  color: #fff1f2;
  background: rgba(255, 75, 92, 0.18);
}

/* ==========================================================================
   Thematic Helpers for WIN REVIEW SPACE
   ========================================================================== */

/* Subtle gradient border for highlighted sections (e.g. hero, special nights) */

.frame-gradient {
  position: relative;
}

.frame-gradient::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 160deg, rgba(229, 177, 91, 0.6), rgba(229, 177, 91, 0), rgba(229, 177, 91, 0.6));
  opacity: 0.45;
  z-index: -1;
}

/* Overlay for atmospheric imagery */

.overlay-dark {
  position: relative;
}

.overlay-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.3), rgba(5, 6, 10, 0.9));
}

/* Subtle divider */

.divider {
  height: 1px;
  width: 100%;
  background: radial-gradient(circle, rgba(229, 177, 91, 0.45) 0, rgba(229, 177, 91, 0.08) 40%, transparent 100%);
  opacity: 0.6;
}
