/* ==========================================================================
   Big Bass Hub — Main Stylesheet
   Design tokens, reset, typography, base components
   Theme: Blue + Gold, Fishing / Big Bass series (Pragmatic Play)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - синий fishing theme */
  --color-primary: #1565C0;
  --color-primary-light: #1976D2;
  --color-primary-dark: #0D47A1;
  --color-accent: #FFB74D;
  --color-accent-light: #FFD54F;
  --color-accent-dark: #F57C00;
  --color-cta: #FF6F00;
  --color-cta-hover: #FF8F00;

  --color-bg: #0A1929;
  --color-surface: #132F4C;
  --color-surface-light: #173A5E;
  --color-surface-elevated: #1E4976;

  --color-text: #E3F2FD;
  --color-text-muted: #90CAF9;
  --color-text-bright: #FFFFFF;

  --color-success: #4CAF50;
  --color-danger: #F44336;
  --color-warning: #FFA726;

  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.2);

  --color-shadow: rgba(0, 0, 0, 0.4);
  --color-glow-gold: rgba(255, 183, 77, 0.4);
  --color-glow-water: rgba(21, 101, 192, 0.5);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', Consolas, monospace;

  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index */
  --z-header: 100;
  --z-sticky-nav: 99;
  --z-dropdown: 1000;
  --z-lightbox: 2000;
  --z-modal: 3000;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #FFB74D 0%, #F57C00 100%);
  --gradient-gold-soft: linear-gradient(135deg, #FFD54F 0%, #FFB74D 100%);
  --gradient-blue: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
  --gradient-blue-gold: linear-gradient(135deg, #1565C0 0%, #FFB74D 100%);
  --gradient-cta: linear-gradient(135deg, #FF8F00 0%, #FF6F00 100%);
  --gradient-surface: linear-gradient(180deg, #132F4C 0%, #0A1929 100%);
}

/* --------------------------------------------------------------------------
   Minimal Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Подводная атмосфера — тонкие градиенты */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(21, 101, 192, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(13, 71, 161, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 183, 77, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-height));
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-glow-gold);
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-bright);
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1em;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

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

small {
  font-size: 0.875em;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-surface);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-accent-light);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  border: none;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
  background-color: rgba(255, 183, 77, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

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

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1440px;
}

section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

th {
  background-color: var(--color-surface-elevated);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-bright);
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-accent);
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--color-surface-light);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.badge--new {
  background: var(--gradient-gold);
  color: #1A0F00;
  box-shadow: 0 0 12px var(--color-glow-gold);
}

.badge--hot {
  background: var(--gradient-cta);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 111, 0, 0.4);
}

.badge--featured {
  background: var(--gradient-blue);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--color-glow-water);
}

.badge--seasonal {
  background-color: var(--color-surface-elevated);
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
}

.badge--megaways {
  background: linear-gradient(135deg, #7C4DFF 0%, #3D5AFE 100%);
  color: #FFFFFF;
}

.badge--exotic {
  background: linear-gradient(135deg, #26A69A 0%, #00897B 100%);
  color: #FFFFFF;
}

.badge--small {
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
}

.badge--large {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.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-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-bright { color: var(--color-text-bright); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.text-nowrap { white-space: nowrap; }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Misc */
.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }
.shadow {
  box-shadow: 0 4px 20px var(--color-shadow);
}
.shadow-lg {
  box-shadow: 0 8px 32px var(--color-shadow);
}

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

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: #1A0F00;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-elevated);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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