/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Color Palette - Velvet Lounge */
  --color-bg: #050307; /* deep near-black */
  --color-bg-elevated: rgba(12, 6, 18, 0.92);
  --color-bg-velvet: radial-gradient(circle at top, #3a0b23 0, #09030f 55%, #020005 100%);
  --color-surface-glass: rgba(20, 10, 30, 0.7);
  --color-surface-glass-soft: rgba(30, 15, 45, 0.4);

  --color-text: #f7f3ff;
  --color-text-muted: #b8adc8;
  --color-text-soft: #8a7d9a;

  --color-primary: #f0c674; /* warm soft gold */
  --color-primary-soft: rgba(240, 198, 116, 0.16);
  --color-primary-strong: #ffd98a;

  --color-accent-emerald: #2be0a2;
  --color-accent-emerald-soft: rgba(43, 224, 162, 0.16);
  --color-accent-burgundy: #7d1438;

  --color-success: #27c66b;
  --color-warning: #ffb347;
  --color-danger: #ff4b6e;

  --color-gray-50: #f8fafc;
  --color-gray-100: #e2e8f0;
  --color-gray-200: #cbd5f5;
  --color-gray-300: #94a3b8;
  --color-gray-400: #64748b;
  --color-gray-500: #475569;
  --color-gray-600: #334155;
  --color-gray-700: #1e293b;
  --color-gray-800: #0f172a;
  --color-gray-900: #020617;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-display: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

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

  /* Shadows - soft neon & depth */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.85);
  --shadow-gold-glow: 0 0 24px rgba(240, 198, 116, 0.35);
  --shadow-emerald-glow: 0 0 20px rgba(43, 224, 162, 0.4);

  /* Borders */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.04);
  --border-glass: 1px solid rgba(255, 255, 255, 0.12);

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

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 20px;

  /* Z-index */
  --z-nav: 50;
  --z-overlay: 60;
  --z-modal: 70;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================
   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 {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

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

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

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

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

/* ========================================================================
   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: var(--color-bg-velvet);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

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

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

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

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

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

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

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

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

a:hover {
  color: var(--color-accent-emerald);
  text-shadow: 0 0 12px rgba(43, 224, 162, 0.45);
}

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

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

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

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

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

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

/* Screen reader only */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Grid utilities */
.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: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

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

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.bg-velvet {
  background: radial-gradient(circle at top left, #4b0f2a 0, #09030f 55%, #020005 100%);
}

/* Tournament visual helpers */
.bracket-line {
  border-left: 1px dashed rgba(240, 198, 116, 0.28);
}

.table-grid-pattern {
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08) 0, transparent 60%),
    linear-gradient(120deg, rgba(240, 198, 116, 0.16) 0, transparent 40%, transparent 60%, rgba(43, 224, 162, 0.16) 100%);
  background-size: 220px 220px, cover;
}

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

/* Buttons - primary CTA for registrations (Regisztráció, Poker events) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #050307 !important;
  background: radial-gradient(circle at 10% 0, #fff3ce 0, #f0c674 40%, #ffb347 100%);
  box-shadow: var(--shadow-gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-gold-glow), 0 0 30px rgba(255, 255, 255, 0.15);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.6);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-primary-strong) !important;
  border-color: rgba(240, 198, 116, 0.6);
  box-shadow: none;
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text) !important;
  border-color: rgba(255, 255, 255, 0.12);
}

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

.btn--emerald {
  background: linear-gradient(135deg, #2be0a2, #35ffc3);
  color: #020308 !important;
  box-shadow: var(--shadow-emerald-glow);
}

.btn--emerald:hover {
  box-shadow: var(--shadow-emerald-glow), 0 0 26px rgba(255, 255, 255, 0.18);
}

/* Form elements - registration, contact, rules search */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: var(--border-glass);
  background: linear-gradient(135deg, rgba(5, 3, 12, 0.9), rgba(32, 18, 44, 0.8));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), transform var(--transition-fast);
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(240, 198, 116, 0.85);
  box-shadow: 0 0 0 1px rgba(240, 198, 116, 0.8), 0 0 20px rgba(240, 198, 116, 0.35);
  transform: translateY(-1px);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: rgba(255, 75, 110, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 75, 110, 0.7);
}

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.form-helper {
  margin-top: 4px;
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

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

/* Glassmorphism Card - used for tournament tiles, poker formats, FAQ, rules */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at top left, rgba(240, 198, 116, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(43, 224, 162, 0.12), transparent 55%);
  background-color: var(--color-surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(240, 198, 116, 0.4);
}

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

.card--interactive {
  cursor: pointer;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

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

/* Tag / pill - blinds, buy-in, game type, statuses */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 3, 10, 0.84);
  color: var(--color-text-soft);
}

.tag--gold {
  border-color: rgba(240, 198, 116, 0.9);
  background: rgba(240, 198, 116, 0.1);
  color: var(--color-primary-strong);
}

.tag--emerald {
  border-color: rgba(43, 224, 162, 0.9);
  background: rgba(43, 224, 162, 0.12);
  color: var(--color-accent-emerald);
}

.tag--danger {
  border-color: rgba(255, 75, 110, 0.9);
  background: rgba(255, 75, 110, 0.12);
  color: var(--color-danger);
}

/* Subtle badges for status (Nyitott, Betelt, Privát) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-soft);
}

.badge--success {
  background: rgba(39, 198, 107, 0.16);
  color: var(--color-success);
}

.badge--warning {
  background: rgba(255, 179, 71, 0.16);
  color: var(--color-warning);
}

.badge--danger {
  background: rgba(255, 75, 110, 0.16);
  color: var(--color-danger);
}

/* Navigation shell (basic, to be extended per-page) */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(to bottom, rgba(5, 3, 10, 0.92), rgba(5, 3, 10, 0.7), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.nav-link {
  position: relative;
  color: var(--color-text-soft);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0c674, #2be0a2);
  box-shadow: 0 0 12px rgba(240, 198, 116, 0.6);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
  text-shadow: 0 0 12px rgba(240, 198, 116, 0.45);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-primary-strong);
}

/* Hero / page header helpers */
.page-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

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

.page-hero-heading {
  max-width: 22ch;
}

.page-hero-subtitle {
  max-width: 38ch;
  font-size: var(--font-size-lg);
}

/* Tables - for schedules, blinds, leaderboards */
.table-shell {
  width: 100%;
  overflow-x: auto;
}

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

.table thead tr {
  background: linear-gradient(90deg, rgba(240, 198, 116, 0.12), rgba(43, 224, 162, 0.06));
}

.table th,
.table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
}

.table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(5, 3, 10, 0.7);
}

.table tbody tr:nth-child(even) {
  background: rgba(12, 8, 20, 0.88);
}

.table tbody tr:hover {
  background: rgba(32, 20, 54, 0.98);
}

/* FAQ accordion basics (GYIK) - structural only */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 3, 10, 0.9);
}

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

.faq-question {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.faq-body {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
}

/* Toast / status message (e.g., registration success) */
.toast {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(5, 3, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  font-size: var(--font-size-sm);
}

.toast--success {
  border-color: rgba(39, 198, 107, 0.8);
}

.toast--warning {
  border-color: rgba(255, 179, 71, 0.8);
}

.toast--danger {
  border-color: rgba(255, 75, 110, 0.8);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: radial-gradient(circle at top, rgba(125, 20, 56, 0.3), rgba(0, 0, 0, 0.95));
}

.site-footer small {
  color: var(--color-text-soft);
}

/* ========================================================================
   End base.css for Velvet Chip Kitchen
   ======================================================================== */
