/* ========================================================================
   VECERNI SCENA - Base Styles
   Modern, elegant, upscale & social theme for a Czech restaurant & poker venue
   ======================================================================== */

/* ========================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================================================== */

:root {
  /* Premium Editorial palette (light / cream background) */
  --color-background: #fbf7f0;              /* Light cream */
  --color-surface: #ffffff;                 /* Cards, panels */
  --color-surface-alt: #f3efe8;

  --color-text: #0f1724;                    /* Dark slate typography */
  --color-text-muted: #556170;

  --color-primary: #b58d4b;                 /* Soft gold accent */
  --color-primary-soft: rgba(181, 141, 75, 0.12);

  --color-success: #2fbf71;
  --color-warning: #f0b23a;
  --color-danger: #e13b3b;

  /* Neutral grays */
  --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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mono: "SF Mono", 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.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

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

  /* Radius */
  --radius-sm: 0.5rem; /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem; /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.75);

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

/* ========================================================================
   2. RESET / NORMALIZE
   ======================================================================== */

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

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none !important; /* project requirement */
}

body {
  min-height: 100vh;
}

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

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

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

/* Respect user motion settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================
   3. BASE TYPOGRAPHY & ELEMENTS
   ======================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -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);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 1.8vw + 0.9rem, 2.1rem);
}

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

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

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

a {
  color: var(--color-primary);
  text-decoration: none; /* project requirement: remove default underline */
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: #fff !important; /* project requirement */
}

a:active {
  opacity: 0.85;
}

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

/* ========================================================================
   4. ACCESSIBILITY & FOCUS STYLES
   ======================================================================== */

:focus {
  outline: none;
}

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

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

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

/* Reserve space for the floating header capsule on desktop to avoid overlap */
@media (min-width: 769px) {
  main#main-content {
    margin-top: 96px; /* approximate capsule height + top offset */
  }
}

/* Prevent background scroll when nav overlay is open (toggled by JS) */
.vs-nav-open {
  overflow: hidden;
}

.vs-nav-open body {
  overflow: hidden;
  touch-action: none;
}

/* Flex utilities */

.flex {
  display: flex;
}

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

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

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

.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-end {
  justify-content: flex-end;
}

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

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

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

/* Grid utilities */

.grid {
  display: grid;
}

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

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

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

/* Width utilities */

.w-full {
  width: 100%;
}

/* Spacing utilities (common) */

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

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

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

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

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

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

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

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

/* ========================================================================
   6. NAVIGATION TOGGLE (MOBILE)
   ======================================================================== */

.nav-toggle {
  display: inline-flex;
  flex-direction: column; /* project requirement */
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base),
    background-color var(--transition-base);
}

/* ========================================================================
   7. BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  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);
}

.btn-primary {
  background: linear-gradient(135deg, #d6b35b, #b38428);
  color: #0b0b0e;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e2c46f, #c49b3f);
  color: #050608;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(196, 155, 63, 0.7);
}

.btn-outline:hover {
  background-color: rgba(196, 155, 63, 0.1);
  color: #fff;
}

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

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

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

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-full);
}

/* ========================================================================
   8. FORMS & INPUTS
   ======================================================================== */

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(8, 8, 12, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base), background-color var(--transition-base);
}

input::placeholder,
textarea::placeholder {
  color: rgba(167, 167, 176, 0.75);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(196, 155, 63, 0.7);
}

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

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

/* ========================================================================
   9. CARD COMPONENT
   ======================================================================== */

.card {
  --card-text: rgba(255, 255, 255, 0.88);
  --card-text-muted: rgba(255, 255, 255, 0.65);
  --card-heading: rgba(255, 255, 255, 0.96);

  background: radial-gradient(circle at top left, #181a24 0, #080910 55%, #040407 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--card-text-muted);
}

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

.card .card-title,
.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--card-heading);
}

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

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

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

.card-body p {
  color: inherit;
}

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

/* Variant for poker / event highlights */

.card-highlight {
  border-color: rgba(196, 155, 63, 0.65);
  box-shadow: 0 0 0 1px rgba(196, 155, 63, 0.2), var(--shadow-md);
}

/* ========================================================================
   10. BADGES & LABELS (HELPFUL FOR POKER NIGHTS)
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-primary {
  background-color: var(--color-primary-soft);
  border-color: rgba(196, 155, 63, 0.6);
  color: var(--color-primary);
}

.badge-success {
  background-color: rgba(47, 191, 113, 0.16);
  border-color: rgba(47, 191, 113, 0.6);
  color: var(--color-success);
}

.badge-danger {
  background-color: rgba(225, 59, 59, 0.16);
  border-color: rgba(225, 59, 59, 0.6);
  color: var(--color-danger);
}

/* ========================================================================
   11. HELPER CLASSES FOR THEME EMPHASIS
   ======================================================================== */

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

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

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

.shadow-md {
  box-shadow: var(--shadow-md);
}

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

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.12em;
}

/* ========================================================================
   12. TABLES (USEFUL FOR TOURNAMENT LISTS / MENUS)
   ======================================================================== */

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

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

tbody tr:hover {
  background-color: rgba(196, 155, 63, 0.06);
}

/* ========================================================================
   13. MEDIA HELPERS
   ======================================================================== */

.responsive-media {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.responsive-media iframe,
.responsive-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================================================
   END OF FILE
   ======================================================================== */
