/* =============================
   Variables
   ============================= */
:root {
  /* Color palette */
  --color-bg: #070812;
  --color-surface: #101320;
  --color-surface-alt: #171b2a;
  --color-text: #f7f4ef;
  --color-text-muted: #a6acbc;

  --color-primary: #d4af37; /* Royal gold */
  --color-primary-soft: rgba(212, 175, 55, 0.14);
  --color-primary-strong: #f0c94c;

  --color-success: #47b881;
  --color-warning: #f6a623;
  --color-danger: #f45b69;

  --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: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

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

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

  /* Radii */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-subtle: 0 1px 4px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-medium: 200ms ease-out;
  --transition-slow: 320ms ease-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,

caption,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section {
  display: block;
}

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

body {
  min-height: 100vh;
}

ol,
ul {
  list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

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

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

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

/* =============================
   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, #171b2a 0, #070812 55%, #020308 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-text);
}

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

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.015em;
  margin-bottom: var(--space-4);
}

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

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

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

h6 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

em,
i {
  font-style: italic;
}

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

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

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

/* Underline on hover for textual links */
a.link-underline {
  text-decoration: none;
}

a.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--color-primary) 20%, var(--color-primary) 80%, transparent 100%);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

a.link-underline:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

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

pre {
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  overflow: auto;
}

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

/* =============================
   Accessibility & Focus
   ============================= */
:focus {
  outline: none;
}

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

/* Reduced motion */
@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: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

.section--alt {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.06), transparent 55%),
              linear-gradient(to bottom, rgba(10, 12, 24, 0.85), #050612 70%);
}

/* Flex helpers */
.flex {
  display: flex;
}

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

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

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

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

.justify-around {
  justify-content: space-around;
}

.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 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

/* Width helpers */
.w-full {
  width: 100%;
}

/* Spacing utilities (commonly used) */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

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

.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }

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

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

/* =============================
   Components
   ============================= */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, #f0c94c, #d4af37);
  color: #221b08;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition:
    background var(--transition-medium),
    color var(--transition-medium),
    box-shadow var(--transition-medium),
    transform var(--transition-fast),
    border-color var(--transition-medium);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #ffe58c, #f0c94c);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.btn--ghost {
  background: rgba(7, 8, 18, 0.8);
  color: var(--color-text);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-subtle);
}

.btn--ghost:hover {
  background: rgba(23, 27, 42, 0.96);
  border-color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-strong);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.06);
}

.btn--danger {
  background: linear-gradient(135deg, #ff7b8b, #f45b69);
  color: #1b0508;
}

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

/* Form controls */
.form-group {
  margin-bottom: var(--space-4);
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 22, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition:
    border-color var(--transition-medium),
    box-shadow var(--transition-medium),
    background-color var(--transition-medium);
}

input::placeholder,
textarea::placeholder {
  color: rgba(166, 172, 188, 0.8);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary-strong);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
}

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

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

/* Card */
.card {
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.04), transparent 55%),
              linear-gradient(145deg, rgba(11, 13, 25, 0.98), rgba(9, 12, 28, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.card--subtle {
  background: rgba(11, 13, 25, 0.9);
  box-shadow: var(--shadow-subtle);
}

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

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

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

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

/* Tag / badge for things like tournaments, promotions */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--color-primary-strong);
  background: rgba(7, 8, 18, 0.8);
}

.badge--accent {
  border-color: rgba(244, 91, 105, 0.7);
  color: #ff9fa9;
  background: rgba(42, 8, 16, 0.85);
}

/* Pill label for things like "Cash Game", "Turnee", etc. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: rgba(15, 19, 32, 0.96);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================
   Utility Text & Accent Styles
   ============================= */
.text-muted {
  color: var(--color-text-muted);
}

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

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

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

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

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

.accent-gold-rule::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: var(--space-2);
  background: linear-gradient(90deg, transparent 0, var(--color-primary) 35%, var(--color-primary-strong) 100%);
}

/* Utility background classes for sections (restaurant vs poker) */
.bg-restaurant {
  background: radial-gradient(circle at top, rgba(204, 150, 94, 0.16), transparent 55%),
              linear-gradient(to bottom, #080911, #050610 70%);
}

.bg-poker {
  background: radial-gradient(circle at top right, rgba(122, 222, 180, 0.14), transparent 60%),
              linear-gradient(to bottom, #04050d, #050610 70%);
}

/* =============================
   Media & Gallery Helpers
   ============================= */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow);
}

.media-frame:hover img {
  transform: scale(1.06);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), transparent 60%);
  pointer-events: none;
}

/* =============================
   Tables (for tournament calendar etc.)
   ============================= */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

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

.table thead th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.04);
}

/* =============================
   Chips & Status (for poker / reservations)
   ============================= */
.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.status-dot--success {
  background-color: var(--color-success);
}

.status-dot--warning {
  background-color: var(--color-warning);
}

.status-dot--danger {
  background-color: var(--color-danger);
}

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