
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
  /* Цветовая палитра (Dark Gaming Theme) */
  --color-bg-body: #0f172a;       /* Глубокий темно-синий */
  --color-bg-surface: #1e293b;    /* Светлее для карточек/секций */
  --color-bg-accent: #334155;     /* Акцент фона */
  
  --color-primary: #3b82f6;       /* Яркий синий */
  --color-primary-dark: #1d4ed8;
  --color-secondary: #f59e0b;     /* Янтарный/Желтый для CTA */
  --color-secondary-dark: #b45309;

  --color-text-main: #f8fafc;     /* Почти белый */
  --color-text-muted: #94a3b8;    /* Серый текст */
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-secondary: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gradient-text: linear-gradient(90deg, #60a5fa, #e879f9);

  /* Тени и Эффекты */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-glow-blue: 0 0 15px rgba(59, 130, 246, 0.5);
  --shadow-glow-gold: 0 0 15px rgba(245, 158, 11, 0.5);

  /* Размеры и Отступы */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --border-radius: 0.75rem;
  --container-width: 1200px;

  /* Типографика */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* =========================================
   2. LAYOUT & GRID (Bootstrap-ish simulation)
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

.justify-content-md-center {
  justify-content: center;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  font-weight: 700;
}

.display-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: var(--space-md);
}

.display-5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.title.display-5 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  color: var(--color-text-main);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
}

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

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
header.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: block;
  width: 150px; /* Placeholder size */
  height: 40px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" fill="%23fff"><text x="0" y="20" font-family="sans-serif" font-weight="900" font-size="20">MOSTBET</text></svg>') no-repeat left center;
}

/* =========================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Primary Button (Default Blue) */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.7);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Yellow/Action Button */
.btn.yellow {
  background: var(--gradient-secondary);
  color: #fff; /* Or dark text if needed for contrast, but white on dark orange is ok */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: var(--shadow-glow-gold);
}

.btn.yellow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.7);
}

/* Ripple effect micro-animation */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.mbr-section-btn {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

/* =========================================
   6. SECTIONS
   ========================================= */
section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  position: relative;
}

/* Alternate background for visual interest */
section:nth-child(even) {
  background-color: var(--color-bg-body);
}

section:nth-child(odd) {
  background-color: var(--color-bg-surface);
}

/* Hero Section specific (assuming first raid- section is hero) */
section.raid-MIRACLE123 {
  padding-top: calc(var(--space-lg) + 80px); /* Compensate for fixed header */
  background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 70%);
  text-align: center;
}

/* Images placeholder styling */
.mbr-figure {
  width: 100%;
  margin: var(--space-md) 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mbr-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.mbr-figure:hover img {
  transform: scale(1.03);
}

/* Placeholder for empty figures in HTML to make them visible */
.mbr-figure:empty {
  min-height: 300px;
  background: linear-gradient(45deg, #1e293b, #334155);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mbr-figure:empty::before {
  content: 'Image Placeholder';
  color: rgba(255,255,255,0.1);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
  background-color: #020617;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

footer p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* =========================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
  section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .btn {
    width: 100%; /* Full width buttons on mobile */
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .title.display-5 {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
    padding-left: 0;
    padding-bottom: 0.5rem;
    display: inline-block;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.media-content {
  animation: fadeIn 0.8s ease-out forwards;
}
