/* ========================================================================== */
/*  MOVE PLAY CLUB – Base Styles (base.css)                                   */
/*  Theme: Modern, playful, interactive, stylish, immersive entertainment     */
/*  Language context: Polish                                                  */
/* ========================================================================== */

/* ========================================================================== */
/* 1. CSS Custom Properties (Variables)                                       */
/* ========================================================================== */

:root {
  /* Color Palette */
  --color-background: #050814;
  --color-surface: #0a0f1f;
  --color-surface-soft: #11182b;
  --color-text: #f5f7ff;
  --color-text-muted: #b4bdd8;

  --color-primary: #ff3b7d;          /* primary accent – playful neon pink */
  --color-primary-soft: rgba(255, 59, 125, 0.16);
  --color-primary-strong: #ff1f6a;

  --color-success: #2ecc71;
  --color-warning: #f1c40f;
  --color-danger: #e74c3c;

  /* 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-heading: "Poppins", var(--font-sans);

  --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 (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-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows – subtle neon / casino glow */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 18px rgba(255, 59, 125, 0.6);

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

/* Respect prefers-reduced-motion: turn off non-essential animation */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================== */
/* 2. Reset / Normalize                                                       */
/* ========================================================================== */

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

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

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

ul,
ol {
  padding: 0;
  list-style: none !important; /* As requested: no bullets */
}

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

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

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

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

html {
  scroll-behavior: smooth;
}

/* Make sure text is legible when user zooms */
html {
  -webkit-text-size-adjust: 100%;
}

/* ========================================================================== */
/* 3. Base Typography & Elements                                              */
/* ========================================================================== */

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: radial-gradient(circle at top, #141b3f 0, #050814 55%, #02030a 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

strong,
b {
  font-weight: 600;
}

/* Headings – scalable, modern, and controlled margins */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--font-size-4xl);
}

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

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

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

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

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

@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }
}

/* Links – interactive & playful */
a {
  position: relative;
  color: var(--color-primary);
  transition: color var(--transition-base), transform var(--transition-fast);
}

a:hover {
  color: #fff !important; /* As requested */
}

a:active {
  transform: translateY(1px);
}

/* ========================================================================== */
/* 4. Accessibility Helpers                                                   */
/* ========================================================================== */

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

/* Focus styles – visible, high contrast */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Remove outline for mouse users when not focus-visible */
:focus {
  outline: none;
}

/* ========================================================================== */
/* 5. Layout Utilities                                                        */
/* ========================================================================== */

/* Page container */
.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: 1280px;
  }
}

/* Flex utilities */
.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-2);
}

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

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

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

/* Grid helpers */
.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: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Spacing utilities (common ones) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-8); }

.pt-sm { padding-top: var(--space-3); }
.pt-md { padding-top: var(--space-4); }
.pt-lg { padding-top: var(--space-6); }
.pt-xl { padding-top: var(--space-8); }

.pb-sm { padding-bottom: var(--space-3); }
.pb-md { padding-bottom: var(--space-4); }
.pb-lg { padding-bottom: var(--space-6); }
.pb-xl { padding-bottom: var(--space-8); }

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

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

/* ========================================================================== */
/* 6. Components                                                              */
/* ========================================================================== */

/* Buttons – neon / casino style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    color var(--transition-base);
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-primary-strong), #ff5e9b);
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-xs);
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

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

.btn--secondary {
  background: linear-gradient(135deg, #1dd6ff, #4e6bff);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #4e6bff, #1dd6ff);
}

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

/* Form Elements */

.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(3, 7, 20, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm), var(--shadow-glow-primary);
}

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

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

/* Card – for event types (poker, roulette, blackjack, etc.) */
.card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #1d2648 0, var(--color-surface) 45%, #060814 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  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;
  opacity: 0;
  background: radial-gradient(circle at top right, rgba(255, 59, 125, 0.24), transparent 55%);
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
  border-color: rgba(255, 59, 125, 0.6);
}

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

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

.card__subtitle {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

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

/* Tag / pill – useful for event labels like "Poker", "Roulette" */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.badge--primary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ========================================================================== */
/* 7. Navigation / Header Basics (for multi-page site)                        */
/* ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.96), rgba(5, 8, 20, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar__link {
  position: relative;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #4e6bff);
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: #ffffff !important;
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link--active {
  color: #ffffff;
}

.navbar__link--active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .navbar__menu {
    display: none; /* actual mobile menu handled in page-specific CSS/JS */
  }
}

/* ========================================================================== */
/* 8. Hero & Section helpers                                                  */
/* ========================================================================== */

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

.section--alt {
  background: radial-gradient(circle at top, #11172f 0, #050814 65%);
}

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

.hero__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  max-width: 36rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ========================================================================== */
/* 9. Footer basics                                                           */
/* ========================================================================== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #030512;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.site-footer a:hover {
  color: #ffffff !important;
}

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