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

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

a {
  text-decoration: none;
  color: #0255c2;
  transition: color 0.3s ease;
}

a:hover {
  color: #023d8a;
}

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

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

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

.navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  padding: 8px 15px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #0255c2;
  transform: translateY(-2px);
}

.btn-login {
  background-color: #0255c2;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: #023d8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 85, 194, 0.3);
}

.btn-signup {
  background-color: #54b146;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
}

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

.online-counter {
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
}

.online-icon {
  font-size: 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Hero Section */
.hero-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-banner {
  background: url("/banner6.png") center / cover no-repeat;
  border-radius: 15px;
  padding: 60px 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-hero {
  background-color: #54b146;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(84, 177, 70, 0.4);
}

.btn-hero:hover {
  background-color: #3d8a33;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(84, 177, 70, 0.5);
  color: #ffffff;
}

/* Mirrors Block */
.mirrors-block {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.mirrors-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0255c2;
  margin-bottom: 15px;
  text-align: center;
}

.mirrors-date {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
}

.date-icon {
  margin-right: 5px;
}

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

.mirrors-table thead {
  background: linear-gradient(135deg, #0255c2 0%, #023d8a 100%);
  color: #ffffff;
}

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

.mirrors-table tbody tr {
  transition: background-color 0.3s ease;
}

.mirrors-table tbody tr:hover {
  background-color: #f8f9fa;
}

.mirrors-table a {
  color: #0255c2;
  font-weight: 500;
  text-decoration: underline;
}

.status-active {
  color: #54b146;
  font-weight: 600;
}

/* Main Container */
.main-container {
  padding: 40px 0;
}

.content-block {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.block-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0255c2;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #54b146;
}

/* TOC */
.toc-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border-left: 5px solid #0255c2;
}

.toc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

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

.toc-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.toc-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #54b146;
  font-weight: bold;
}

.toc-list a {
  color: #0255c2;
  font-weight: 500;
  transition: all 0.3s ease;
}

.toc-list a:hover {
  color: #023d8a;
  padding-left: 5px;
}

/* Screenshots */
.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-caption {
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  color: #333;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 10px;
}

/* Winners Table */
.winners-table {
  width: 100%;
  border-collapse: collapse;
}

.winners-table thead {
  background: linear-gradient(135deg, #54b146 0%, #3d8a33 100%);
  color: #ffffff;
}

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

.winners-table tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

.winners-table tbody tr {
  transition: background-color 0.3s ease;
}

.winners-table tbody tr:hover {
  background-color: #e9ecef;
}

/* Video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-description {
  margin-top: 15px;
  text-align: center;
  font-style: italic;
  color: #666;
}

/* Wheel Game */
.wheel-game-container {
  text-align: center;
}

.wheel-wrapper {
  display: inline-block;
  position: relative;
}

#wheelCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-spin {
  background: linear-gradient(135deg, #54b146 0%, #3d8a33 100%);
  color: #ffffff;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(84, 177, 70, 0.4);
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(84, 177, 70, 0.5);
}

.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wheel-result {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #54b146 0%, #3d8a33 100%);
  border-radius: 15px;
  color: #ffffff;
  animation: fadeIn 0.5s ease;
}

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

.result-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.result-text {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn-claim {
  background: #ffffff;
  color: #54b146;
  padding: 12px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
}

.btn-claim:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #54b146;
}

/* Author */
.author-info {
  padding: 20px;
}

.author-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #0255c2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0255c2;
  margin-bottom: 15px;
}

.author-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0255c2;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Main Text Content */
.main-text-content {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

.main-text-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0255c2;
  margin-bottom: 25px;
  line-height: 1.3;
}

.main-text-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-top: 30px;
  margin-bottom: 20px;
}

.main-text-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-top: 25px;
  margin-bottom: 15px;
}

.main-text-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #444;
}

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

.main-text-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.main-text-content table {
  width: 100%;
  margin: 25px auto;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.main-text-content table thead {
  background: #0255c2;
  color: #ffffff;
}

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

.main-text-content blockquote {
  border-left: 4px solid #54b146;
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: #666;
}

.main-text-content a {
  color: #0255c2;
  font-weight: 500;
  text-decoration: underline;
}

.main-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  background: #ffffff;
  padding: 40px 0 20px;
  margin-top: 50px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-logo {
  max-height: 42px;
  width: auto;
}

.footer-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0255c2;
  margin-bottom: 20px;
}

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

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

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

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

.payment-logos,
.providers-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-logos img,
.providers-logos img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.payment-logos img:hover,
.providers-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.copyright-text,
.legal-text {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #54b146 0%, #3d8a33 100%);
  padding: 15px 0;
  box-shadow: 0 -2px 10px 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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.widget-text strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.widget-text span {
  font-size: 0.95rem;
}

.btn-widget {
  background: #ffffff;
  color: #54b146;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-widget:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #54b146;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-banner {
    padding: 40px 20px;
    min-height: 300px;
  }

  .block-title {
    font-size: 1.5rem;
  }

  .main-text-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  .widget-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .content-block {
    padding: 20px;
  }

  .main-text-content {
    padding: 25px;
  }

  .main-text-content h1 {
    font-size: 1.5rem;
  }
}

/* Unused styles for uniqueness */
.unused-class-1 {
  display: none;
}
.unused-class-2 {
  visibility: hidden;
}
.wp-block-group {
  margin: 0;
}
.elementor-widget-container {
  padding: 0;
}
.yoast-breadcrumbs {
  display: none;
}
.main-container,
.widget-content {
  padding-left: 100px;
  padding-right: 100px;
}

/* планшети */
@media (max-width: 991px) {
  .main-container,
  .widget-content {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* телефони */
@media (max-width: 767px) {
  .main-container,
  .widget-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* дуже вузькі екрани */
@media (max-width: 480px) {
  .main-container,
  .widget-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== Mobile-first адаптація тільки для цього контент-блоку ===== */
.kj8d-content-wrapper.info {
  margin: 0 auto;
  padding: 16px 20px;
  line-height: 1.75;
  font-size: 16px;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* типографіка */
.kj8d-content-wrapper.info h2,
.kj8d-content-wrapper.info h3 {
  line-height: 1.3;
  margin: 24px 0 12px;
}
.kj8d-content-wrapper.info h2 { font-size: 24px; }
.kj8d-content-wrapper.info h3 { font-size: 20px; }

.kj8d-content-wrapper.info p { margin: 12px 0; }
.kj8d-content-wrapper.info blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #54b146;
  background: #f8f9fa;
  border-radius: 8px;
}

/* списки */
.kj8d-content-wrapper.info ul,
.kj8d-content-wrapper.info ol {
  padding-left: 20px;
  margin: 12px 0;
}
.kj8d-content-wrapper.info li { margin: 6px 0; }

/* зображення/відео */
.kj8d-content-wrapper.info img,
.kj8d-content-wrapper.info iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
.kj8d-content-wrapper.info iframe {
  width: 100%;
  aspect-ratio: 16 / 9;   /* робить відео адаптивним */
  border: 0;
}

/* таблиці: горизонтальний скролл замість ламання верстки */
.kj8d-content-wrapper.info table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.kj8d-content-wrapper.info table th,
.kj8d-content-wrapper.info table td {
  padding: 10px;
  border: 1px solid #dee2e6;
}
.kj8d-content-wrapper.info table thead {
  background: #0255c2;
  color: #fff;
}
.kj8d-content-wrapper.info .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* посилання: розривати довгі url + комфортний таргет */
.kj8d-content-wrapper.info a {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.kj8d-content-wrapper.info a,
.kj8d-content-wrapper.info .btn {
  min-height: 44px;            /* зручний тап */
  -webkit-tap-highlight-color: transparent;
}

/* ===== брейкпоінти ===== */

/* планшети і нижче */
@media (max-width: 991px) {
  .kj8d-content-wrapper.info { padding: 16px; }
  .kj8d-content-wrapper.info h2 { font-size: 22px; }
  .kj8d-content-wrapper.info h3 { font-size: 19px; }
}

/* телефони */
@media (max-width: 767px) {
  .kj8d-content-wrapper.info { padding: 14px; font-size: 15.5px; }
  .kj8d-content-wrapper.info h2 { font-size: 21px; margin: 20px 0 10px; }
  .kj8d-content-wrapper.info h3 { font-size: 18px; }
  .kj8d-content-wrapper.info blockquote { padding: 10px 12px; }
  .kj8d-content-wrapper.info table { font-size: 14px; }
}

/* вузькі екрани */
@media (max-width: 360px) {
  .kj8d-content-wrapper.info { padding: 12px; font-size: 15px; }
  .kj8d-content-wrapper.info h2 { font-size: 19px; }
  .kj8d-content-wrapper.info h3 { font-size: 17px; }
}
