/* Main Styles */
:root {
  --primary-color: #0255c2;
  --secondary-color: #54b146;
  --bg-color: #f5f5f5;
  --text-color: #333333;
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-img {
  max-width: 180px;
  height: auto;
}

.header-nav {
  flex: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  font-size: 14px;
}

.online-icon {
  font-size: 18px;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-login {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-login:hover {
  background: #014a9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 85, 194, 0.3);
}

.btn-signup {
  background: var(--secondary-color);
  color: #ffffff;
}

.btn-signup:hover {
  background: #469938;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 177, 70, 0.3);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.hero-text {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.btn-hero {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 15px 40px;
  font-size: 18px;
  animation: fadeInUp 1.2s ease;
}

.btn-hero:hover {
  background: #469938;
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breadcrumbs */
.breadcrumbs-wrapper {
  background: #ffffff;
  padding: 15px 0;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #999;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #666;
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.content-wrapper {
  display: flex;
  gap: 40px;
}

.sidebar {
  flex: 0 0 280px;
}

.main-article {
  flex: 1;
  min-width: 0;
}

.toc-block {
  background: #ffffff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.toc-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 5px 0;
}

.toc-list a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
}

/* Review Author Block */
.review-author-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

.author-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.author-bio {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #555;
}

.author-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Advantages Section */
.advantages-section {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
  text-align: center;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.advantage-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.advantage-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Jackpots Section */
.jackpots-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  color: #ffffff;
}

.jackpots-section .section-title {
  color: #ffffff;
}

.jackpots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.jackpot-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.jackpot-card h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.jackpot-amount {
  font-size: 32px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Text */
.content-text {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

.content-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.content-text h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

.content-text p {
  margin-bottom: 15px;
}

.content-text ul,
.content-text ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-text li {
  margin-bottom: 10px;
}

.content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  overflow-x: auto;
  display: block;
}

.content-text table thead {
  background: var(--primary-color);
  color: #ffffff;
}

.content-text table th,
.content-text table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

.content-text table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.content-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* App Section */
.app-section {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.app-info-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-table-container {
  overflow-x: auto;
}

.app-info-table {
  width: 100%;
  border-collapse: collapse;
}

.app-info-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.app-info-table tr:nth-child(even) {
  background: #f8f9fa;
}

.app-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid #ddd;
  background: #ffffff;
}

.app-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-btn-ios {
  border-color: var(--text-color);
}

.app-btn-android {
  border-color: var(--secondary-color);
}

.app-btn-apk {
  border-color: var(--primary-color);
}

.app-btn-icon {
  font-size: 32px;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

.app-btn-text small {
  font-size: 12px;
  color: #666;
}

.app-btn-text strong {
  font-size: 16px;
  font-weight: 700;
}

/* Demo Game Section */
.demo-game-section {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.demo-game-wrapper {
  margin-top: 20px;
}

.demo-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  padding: 80px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px dashed #ccc;
}

.btn-demo {
  background: var(--primary-color);
  color: #ffffff;
  margin-top: 20px;
}

/* FAQ Section */
.faq-section {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.faq-list {
  margin-top: 30px;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-item.closed .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  line-height: 1.8;
  color: #555;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  margin-top: 60px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-menu a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-payments,
.footer-providers {
  margin-bottom: 30px;
}

.payments-title,
.providers-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.payment-icons,
.provider-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.payment-icons img,
.provider-icons img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
}

.payment-icons img:hover,
.provider-icons img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.copyright,
.legal-info,
.disclaimer {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0143a3 100%);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.widget-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.widget-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.widget-bonus {
  font-size: 20px;
  font-weight: 700;
}

.widget-cta {
  font-size: 14px;
}

.widget-btn {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.widget-btn:hover {
  background: #469938;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    flex: 1;
    width: 100%;
  }

  .toc-block {
    position: static;
  }

  .app-info-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: var(--header-bg);
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .header-nav.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
  }

  .burger-menu {
    display: flex;
  }

  .online-counter {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-text {
    font-size: 18px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .widget-content {
    flex-direction: column;
    text-align: center;
  }

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

/* Unused styles for uniqueness */
.legacy-wrapper {
  display: none;
}

.deprecated-block {
  visibility: hidden;
}

.old-style-container {
  opacity: 0;
  pointer-events: none;
}

.unused-grid {
  grid-template-columns: repeat(5, 1fr);
}

.hidden-element {
  position: absolute;
  left: -9999px;
}
/* --- Mobile overflow & off-canvas fix --- */
@media (max-width: 768px) {
  /* 1) Повністю прибираємо горизонтальний скрол/зсув макета */
  html, body { overflow-x: hidden; }

  /* 2) Мобільне меню: заміна left:-100% на transform, щоб не роздувало сторінку */
  .header-nav {
    position: fixed;
    top: 80px;
    left: 0;                /* лишаємо у 0, ховаємо трансформом */
    width: 100vw;           /* рівно ширина в’юпорту */
    max-width: 100vw;
    transform: translateX(-100%);
  }
  .header-nav.active {
    transform: translateX(0);
  }
  .nav-menu { max-width: 100vw; }

  /* 3) Герой та зображення не повинні створювати надлишкову ширину */
  .hero-section,
  .hero-slider,
  .hero-slide { max-width: 100%; }
  .hero-slide img { display: block; max-width: 100%; }

  /* 4) Iframe в демо-грі — адаптивний, без виходу за межі */
  .demo-game-wrapper,
  .demo-iframe,
  .demo-iframe iframe { max-width: 100%; }
  .demo-iframe iframe {
    width: 100%;
    height: 56.25vw;       /* 16:9 на мобайлі */
    border: 0;
  }

  /* 5) Таблиці в контенті — не розтягують сторінку */
  .content-text table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 6) Стікi-виджет не фіксує ширину більше, ніж в’юпорт */
  .sticky-widget {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100vw;
  }
}
