/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #2d3447;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: #96a5d1;
  transition: color 0.3s ease;
}

a:hover {
  color: #eaae16;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header Styles */
.header-main {
  background-color: #1d2158;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.header-left {
  flex: 0 0 auto;
}

.logo-img {
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.nav-link {
  color: #e8e8e8;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(150, 165, 209, 0.2);
  color: #eaae16;
}

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

.online-counter {
  background-color: rgba(150, 165, 209, 0.15);
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

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

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

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-login {
  background-color: #96a5d1;
  color: #1d2158;
}

.btn-login:hover {
  background-color: #7a8bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(150, 165, 209, 0.3);
}

.btn-signup {
  background-color: #eaae16;
  color: #1d2158;
}

.btn-signup:hover {
  background-color: #d19a0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(234, 174, 22, 0.3);
}

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

.burger-line {
  width: 25px;
  height: 3px;
  background-color: #e8e8e8;
  transition: all 0.3s ease;
}

.mobile-auth-buttons {
  display: none;
}

/* Hero Section */
.hero-section {
  background-image: url("/banner-nomad.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(29, 33, 88, 0.85), rgba(45, 52, 71, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  color: #eaae16;
  font-weight: 500;
  animation: fadeInUp 1s ease;
}

.hero-btn {
  background-color: #eaae16;
  color: #1d2158;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
  animation: fadeInUp 1.2s ease;
}

.hero-btn:hover {
  background-color: #d19a0f;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(234, 174, 22, 0.4);
}

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

/* Breadcrumbs */
.breadcrumbs-wrapper {
  padding: 20px 0;
}

.breadcrumb {
  background-color: rgba(29, 33, 88, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  margin: 0;
}

.breadcrumb-item {
  color: #96a5d1;
}

.breadcrumb-item a {
  color: #96a5d1;
}

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

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

.content-wrapper {
  background-color: rgba(29, 33, 88, 0.4);
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.content-wrapper h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #eaae16;
}

.content-wrapper h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #96a5d1;
}

.content-wrapper h3 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #e8e8e8;
}

.content-wrapper p {
  margin-bottom: 15px;
  line-height: 1.8;
}

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

.content-wrapper li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: rgba(29, 33, 88, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.content-wrapper th,
.content-wrapper td {
  padding: 15px;
  text-align: left;
  border: 1px solid rgba(150, 165, 209, 0.3);
}

.content-wrapper th {
  background-color: #1d2158;
  color: #eaae16;
  font-weight: 600;
}

/* Advantages Section */
.kz8d3-advantages-section {
  margin-bottom: 50px;
}

.kz8d3-advantages-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #eaae16;
}

.advantage-card {
  background: linear-gradient(135deg, rgba(29, 33, 88, 0.6), rgba(45, 52, 71, 0.6));
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.advantage-card:hover {
  transform: translateY(-5px);
  border-color: #96a5d1;
  box-shadow: 0 8px 20px rgba(150, 165, 209, 0.2);
}

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

.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #96a5d1;
}

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

/* App Info Section */
.app-info-section {
  margin-bottom: 50px;
}

.app-info-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #eaae16;
}

.app-table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.app-info-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: rgba(29, 33, 88, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.app-info-table th,
.app-info-table td {
  padding: 15px 20px;
  text-align: left;
  border: 1px solid rgba(150, 165, 209, 0.3);
}

.app-info-table th {
  background-color: #1d2158;
  color: #eaae16;
  font-weight: 600;
}

.app-info-table td {
  color: #e8e8e8;
}

.app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: #ffffff;
}

.app-store-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.play-market-btn {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.apk-btn {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.app-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

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

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-text small {
  font-size: 12px;
  opacity: 0.9;
}

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

/* Popular Games Section */
.popular-games-section {
  margin-bottom: 50px;
}

.popular-games-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #eaae16;
}

.games-slider-wrapper {
  position: relative;
}

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

.game-card {
  background: linear-gradient(135deg, rgba(29, 33, 88, 0.5), rgba(45, 52, 71, 0.5));
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #eaae16;
  box-shadow: 0 8px 20px rgba(234, 174, 22, 0.2);
}

.game-logo {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.game-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.game-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #e8e8e8;
}

.game-provider {
  font-size: 14px;
  color: #96a5d1;
  margin-bottom: 15px;
}

.game-btn {
  background-color: #eaae16;
  color: #1d2158;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.game-btn:hover {
  background-color: #d19a0f;
  transform: scale(1.05);
}

.slider-controls {
  display: none;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.slider-btn {
  background-color: #96a5d1;
  color: #1d2158;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background-color: #eaae16;
  transform: scale(1.1);
}

/* Demo Game Section */
.demo-game-section {
  margin-bottom: 50px;
}

.demo-game-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #eaae16;
}

.demo-wrapper {
  background-color: rgba(29, 33, 88, 0.4);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}

.demo-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed #96a5d1;
  border-radius: 8px;
}

.demo-placeholder p {
  font-size: 18px;
  color: #96a5d1;
  margin-bottom: 10px;
}

.text-muted {
  color: #888;
  font-size: 14px;
}

/* Author Section */
.author-section {
  margin-bottom: 50px;
}

.author-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #eaae16;
}

.author-card {
  background: linear-gradient(135deg, rgba(29, 33, 88, 0.5), rgba(45, 52, 71, 0.5));
  padding: 30px;
  border-radius: 12px;
  display: flex;
  gap: 30px;
  align-items: center;
  border: 2px solid rgba(150, 165, 209, 0.3);
}

.author-photo {
  flex: 0 0 150px;
}

.author-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #96a5d1;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 24px;
  margin-bottom: 15px;
  color: #eaae16;
}

.author-bio {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.author-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #96a5d1;
  color: #1d2158;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #eaae16;
  transform: translateY(-2px);
}

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

/* Footer */
.footer-main {
  background-color: #1d2158;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  color: #eaae16;
}

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

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

.footer-menu a {
  color: #d0d0d0;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #eaae16;
}

.footer-description {
  color: #d0d0d0;
  margin-top: 15px;
  line-height: 1.6;
}

.footer-contacts p {
  color: #d0d0d0;
  margin-bottom: 10px;
}

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

.payments-heading,
.providers-heading {
  font-size: 18px;
  margin-bottom: 20px;
  color: #eaae16;
}

.payments-logos,
.providers-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.payments-logos img,
.providers-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.payments-logos img:hover,
.providers-logos img:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(150, 165, 209, 0.2);
  padding-top: 30px;
  text-align: center;
}

.footer-legal p {
  color: #96a5d1;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #96a5d1;
  font-size: 14px;
}

/* Fixed Widget */
.fixed-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #eaae16, #d19a0f);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  max-width: 350px;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.widget-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.widget-icon {
  font-size: 40px;
}

.widget-text {
  flex: 1;
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d2158;
  margin-bottom: 5px;
}

.widget-subtitle {
  font-size: 14px;
  color: #1d2158;
  opacity: 0.8;
}

.widget-btn {
  background-color: #1d2158;
  color: #eaae16;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.widget-btn:hover {
  background-color: #2d3447;
  transform: scale(1.05);
  color: #eaae16;
}

.widget-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: #1d2158;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.widget-close:hover {
  opacity: 1;
}

/* WordPress Hidden Elements */
.wp-hidden-elements {
  display: none !important;
  visibility: hidden !important;
}

/* Unused Styles for Uniqueness */
.x9k2p-legacy {
  float: left;
  clear: both;
}
.m4v7n-old {
  margin: 0 auto;
  padding: 10px;
}
.q8w3r-unused {
  display: none;
  opacity: 0;
}
.t5y6u-hidden {
  visibility: hidden;
  position: absolute;
}
.w2e4r-deprecated {
  text-align: center;
}
.p9o8i-obsolete {
  background-color: transparent;
}
/* ===== Desktop gutters (відступи справа/зліва) ===== */
:root { --gutter-desktop: clamp(32px, 5vw, 64px); }

@media (min-width: 1024px) {
  /* Блоки поза .container – даємо внутрішні відступи */
  .hero-section,
  .kz8d3-advantages-section,
  .app-info-section,
  .popular-games-section,
  .demo-game-section,
  .author-section,
  .main-content {
    padding-left:  var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
  }

  /* Контейнери – збільшимо стандартні 20px до змінної */
  .container {
    padding-left:  var(--gutter-desktop) !important;
    padding-right: var(--gutter-desktop) !important;
  }

  /* Хіро мав 100px 20px – збережемо вертикальні 100px */
  .hero-section {
    padding-left:  var(--gutter-desktop) !important;
    padding-right: var(--gutter-desktop) !important;
  }
}
