/* ========================================================================
   Selmora Shop - Base Styles
   Modern, luxurious, dark emerald casino-inspired UI
   ======================================================================== */

/* ========================================================================
   1. CSS VARIABLES
   ======================================================================== */
:root {
  /* --- Color Palette --- */
  --color-bg: #050608; /* deep cinematic black */
  --color-bg-elevated: #0b0e12; /* cards, sections */
  --color-bg-soft: #12161d; /* subtle panels */

  --color-text: #f9fafb; /* primary text */
  --color-text-muted: #a7b0c0;
  --color-text-soft: #7b8390;

  --color-primary: #1cc79e; /* emerald accent */
  --color-primary-soft: rgba(28, 199, 158, 0.1);
  --color-primary-strong: #00e0aa;

  --color-gold: #e6c27a; /* champagne gold accent */
  --color-gold-soft: rgba(230, 194, 122, 0.14);

  --color-success: #32d583;
  --color-warning: #facc15;
  --color-danger: #f97373;

  --color-gray-50: #f9fafb;
  --color-gray-100: #e5e7eb;
  --color-gray-200: #d1d5db;
  --color-gray-300: #9ca3af;
  --color-gray-400: #6b7280;
  --color-gray-500: #4b5563;
  --color-gray-600: #374151;
  --color-gray-700: #1f2933;
  --color-gray-800: #111827;
  --color-gray-900: #020617;

  /* Poker / casino accents */
  --color-chip-red: #ff4b5c;
  --color-chip-blue: #3b82f6;
  --color-neon-emerald: rgba(0, 255, 170, 0.8);

  /* --- Typography --- */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

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

  /* --- Radius --- */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1.25rem;   /* 20px */
  --radius-full: 999px;

  /* --- Shadows (glass / neon) --- */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 26px 80px rgba(0, 0, 0, 0.75);
  --shadow-glass: 0 14px 45px rgba(0, 0, 0, 0.6);
  --shadow-neon-emerald: 0 0 18px rgba(0, 255, 170, 0.55);

  /* --- Borders / Dividers --- */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --border-strong: 1px solid rgba(255, 255, 255, 0.14);
  --border-glass: 1px solid rgba(255, 255, 255, 0.16);

  /* --- Transitions & Motion --- */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease;

  /* --- Layout --- */
  --layout-max-width: 1120px;
  --layout-gutter: var(--space-4);

  /* --- Z-index layers --- */
  --z-header: 40;
  --z-overlay: 50;
  --z-modal: 60;
}

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

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

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

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

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

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

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

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

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

/* Remove animations & smooth scrolling for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* ========================================================================
   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);
  background: radial-gradient(circle at top, #0e1c1a 0, #050608 55%, #010205 100%);
  color: var(--color-text);
}

main {
  display: block;
}

/* Headings: modern, slightly condensed, event-style */

h1,
.h1,
.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  font-weight: 600;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, var(--font-size-4xl));
  line-height: var(--line-height-snug);
  letter-spacing: 0.04em;
  font-weight: 600;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  letter-spacing: 0.03em;
  font-weight: 500;
}

h4,
.h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  font-weight: 500;
}

h5,
.h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  font-weight: 500;
}

h6,
.h6 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-snug);
  font-weight: 500;
}

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

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

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

strong,
b {
  font-weight: 600;
}

/* Links: subtle default, glowing hover */

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

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
}

a:active {
  opacity: 0.83;
}

/* Code / pre (rare, but normalized) */

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

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

:focus {
  outline: none;
}

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

/* Improve focus for dark background */

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(0, 255, 170, 0.65);
}

/* Screen reader only content */

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

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

/* ========================================================================
   5. UTILITIES
   ======================================================================== */

/* Layout container */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
  max-width: var(--layout-max-width);
}

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

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

/* 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-col {
  display: flex;
  flex-direction: column;
}

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

/* Text alignment */

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

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

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

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

/* Spacing utilities (common only) */

.mt-0 {
  margin-top: 0;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

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

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

/* Visual separators */

.divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chip-accent {
  border-radius: var(--radius-full);
  padding: 0.2rem 0.7rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(12, 34, 29, 0.9));
  color: var(--color-gold);
}

/* ========================================================================
   6. BASIC COMPONENTS
   ======================================================================== */

/* --- Buttons --- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, #0df2b6, #0bb48a);
  color: #020617 !important;
  box-shadow: var(--shadow-neon-emerald);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.75);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.5);
}

.btn--secondary {
  background: rgba(3, 7, 18, 0.85);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.btn--secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.3);
}

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

.btn--gold {
  background: linear-gradient(135deg, #f5e3b5, #e6c27a);
  color: #111827;
}

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

.btn--lg {
  padding: 1rem 2.1rem;
  font-size: var(--font-size-base);
}

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

/* --- Inputs & Textareas --- */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  caret-color: var(--color-primary);
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    transform var(--transition-fast);
}

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

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 0 2px rgba(0, 255, 170, 0.6);
  background: rgba(15, 23, 42, 0.98);
}

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

/* --- Cards (glass / casino-inspired) --- */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(6, 22, 40, 0.96));
  border: var(--border-glass);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at top right,
      rgba(0, 255, 170, 0.22),
      transparent 60%
    ),
    radial-gradient(circle at bottom left, rgba(230, 194, 122, 0.18), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--outline {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.card--soft {
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-soft);
}

/* Hover lift for interactive cards */

.card--hover {
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 170, 0.6);
  box-shadow: var(--shadow-elevated);
}

/* --- Taglines / Overlines --- */

.overline {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
}

.overline--muted {
  color: rgba(148, 163, 184, 0.85);
}

/* --- Badges for event types --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-soft);
}

.badge--poker {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.badge--casino {
  border-color: rgba(96, 165, 250, 0.9);
  color: #bfdbfe;
}

.badge--vip {
  border-color: rgba(234, 179, 8, 0.9);
  color: #facc15;
}

/* --- Hero background helper for pages like Poker, Eventy Kasynowe --- */

.hero-dark {
  position: relative;
  background: radial-gradient(circle at top, #021e1a 0, #020617 52%, #000 100%);
  overflow: hidden;
}

.hero-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 12% 20%,
      rgba(59, 130, 246, 0.25),
      transparent 65%
    ),
    radial-gradient(circle at 80% 80%, rgba(248, 113, 113, 0.28), transparent 60%),
    linear-gradient(120deg, rgba(0, 255, 170, 0.18), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

.hero-dark__content {
  position: relative;
  z-index: 1;
}

/* --- Simple responsive media wrapper --- */

.media-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  background: #020617;
}

.media-frame iframe,
.media-frame img,
.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================================================
   7. RESPONSIVE ADJUSTMENTS
   ======================================================================== */

@media (min-width: 768px) {
  body {
    font-size: 1.025rem;
  }

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

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

@media (min-width: 1024px) {
  :root {
    --layout-gutter: var(--space-6);
  }
}
