/* Main Styles for Pin-Up Casino */

:root {
  --color-primary: #00fbc8;
  --color-secondary: #ff2e09;
  --color-bg: #323234;
  --color-header: #000000;
  --color-text: #ffffff;
  --color-text-muted: #b8b8b8;
  --color-card-bg: #2a2a2c;
  --font-main: "PT Sans", sans-serif;
  --transition: all 0.3s ease;
}

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

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

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header Styles */
.header {
  background-color: var(--color-header);
  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;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img {
  display: block;
  height: 50px;
  width: auto;
}

.desktop-menu {
  display: flex;
}

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

.menu-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition);
  font-size: 15px;
}

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

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

.online-players {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 251, 200, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
}

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

.online-count {
  color: var(--color-primary);
  font-weight: 700;
}

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

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

.btn-login {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-login:hover {
  background-color: var(--color-primary);
  color: var(--color-header);
}

.btn-signup {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: 2px solid var(--color-secondary);
}

.btn-signup:hover {
  background-color: transparent;
  color: var(--color-secondary);
}

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

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

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: none;
  background-color: var(--color-header);
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 10px;
  transition: var(--transition);
}

.mobile-menu-list a:hover {
  color: var(--color-primary);
  background: rgba(0, 251, 200, 0.1);
  border-radius: 5px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(50, 50, 52, 0.8)), url("/banner3.png") center / cover
    no-repeat;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text);
  padding: 15px 40px;
  font-size: 18px;
}

.btn-primary:hover {
  background-color: #d92507;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 46, 9, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 15px 40px;
  font-size: 18px;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-header);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 18px;
}

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

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

/* TOC Section */
.toc-wrapper {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.toc-list a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
  display: block;
  padding: 10px 15px;
  background: rgba(0, 251, 200, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.toc-list a:hover {
  background: rgba(0, 251, 200, 0.15);
  transform: translateX(5px);
}

/* Intro Section */
.intro-section {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.intro-section p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* App Info Section */
.app-info-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

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

.app-info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.app-info-table td {
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.app-info-table td:first-child {
  font-weight: 700;
  color: var(--color-primary);
  width: 40%;
}

.download-buttons {
  text-align: center;
}

.download-buttons h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--color-text);
}

.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.ios-btn:hover {
  background-color: var(--color-primary);
}

.android-btn {
  border-color: #3ddc84;
}

.android-btn:hover {
  background-color: #3ddc84;
}

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

.apk-btn:hover {
  background-color: var(--color-secondary);
}

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

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

.btn-text small {
  font-size: 12px;
  color: var(--color-text-muted);
}

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

/* Screenshots Section */
.screenshots-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.screenshots-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

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

.screenshot-caption {
  margin-top: 15px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Video Section */
.video-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-top: 30px;
}

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

.video-description {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Demo Section */
.demo-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.demo-wrapper {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.demo-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.demo-description {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: center;
}

.demo-description a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.demo-description a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.faq-accordion {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--color-primary);
}

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

.faq-question:hover {
  background-color: rgba(0, 251, 200, 0.05);
}

.faq-icon {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  line-height: 1.8;
  display: none;
}

.faq-answer p {
  margin: 0;
}

/* Author Section */
.author-section {
  background-color: var(--color-card-bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.author-bio {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
}

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

.author-link a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--color-header);
  padding: 50px 0 20px;
  margin-top: auto;
}

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

.footer-logo img {
  height: 45px;
  width: auto;
}

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

.footer p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.license-info {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 15px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact li {
  font-size: 14px;
  color: var(--color-text-muted);
}

.payment-methods {
  text-align: center;
  margin-bottom: 30px;
}

.payment-methods h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Fixed Widget */
.fixed-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-secondary), #d92507);
  padding: 15px 20px;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.3);
  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;
  gap: 5px;
}

.widget-bonus {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.widget-fs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

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

.widget-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-header);
  transform: scale(1.05);
}

/* Content Styling */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  color: var(--color-text);
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.main-content h1 {
  font-size: 36px;
}

.main-content h2 {
  font-size: 28px;
}

.main-content h3 {
  font-size: 22px;
}

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

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

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

.main-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.main-content a:hover {
  text-decoration: underline;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.main-content th,
.main-content td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content th {
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: var(--color-primary);
}

.main-content strong {
  color: var(--color-text);
  font-weight: 700;
}

.main-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Unused WordPress classes for uniqueness */
.wp-block-columns {
  display: flex;
}
.wp-block-column {
  flex: 1;
}
.has-background {
  padding: 20px;
}
.aligncenter {
  text-align: center;
}
.wp-caption {
  max-width: 100%;
}
.sticky-post {
  position: relative;
}
.entry-content {
  line-height: 1.6;
}
.post-thumbnail {
  margin-bottom: 20px;
}
.widget-area {
  padding: 20px;
}
.site-branding {
  display: block;
}
/* ====== Унифицированное ограничение ширины секций (без правок HTML) ====== */
:root{
  --page-max: 1200px; /* общая максимальная ширина контента */
  --page-pad: 20px;   /* боковые поля на любых экранах */
  --page-pad-sm: 16px;
}

/* Карточки-секции: делаем одинаковой ширины и центрируем */
.toc-wrapper,
.intro-section,
.app-info-section,
.screenshots-section,
.video-section,
.demo-section,
.faq-section,
.author-section {
  /* ширина: максимум var(--page-max), либо 100% минус боковые поля */
  width: min(var(--page-max), 100% - 2 * var(--page-pad));
  margin-left: auto;
  margin-right: auto;

  /* убираем горизонтальные внутренние паддинги у самих секций,
     чтобы не было «двойных» отступов на мобилке */
  padding-left: 0;
  padding-right: 0;
}

/* Содержимое hero ограничим, а фон пусть остается full-width */
.hero-section {
  /* фон и вертикальные отступы оставляем как были */
  padding-left: 0;
  padding-right: 0;
}
.hero-section .hero-content {
  width: min(var(--page-max), 100% - 2 * var(--page-pad));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* На очень узких экранах немного уменьшим боковые поля */
@media (max-width: 480px){
  .toc-wrapper,
  .intro-section,
  .app-info-section,
  .screenshots-section,
  .video-section,
  .demo-section,
  .faq-section,
  .author-section,
  .hero-section .hero-content {
    width: min(var(--page-max), 100% - 2 * var(--page-pad-sm));
  }
}

/* ====== Мелкие выравнивания, чтобы всё смотрелось ровно ====== */

/* Единые вертикальные отступы у секций, чтобы высоты не «плясали» */
.toc-wrapper,
.intro-section,
.app-info-section,
.screenshots-section,
.video-section,
.demo-section,
.faq-section,
.author-section {
  /* твои исходные вертикальные паддинги остаются (30–40px),
     мы их не трогаем, только горизонтальные убрали выше */
}

/* Таблица внутри app-info растягивается на всю доступную ширину секции */
.app-info-table{ width: 100%; }

/* Слайдер и видео уже резиновые; на очень узких — чуть плотнее сетка */
@media (max-width: 640px){
  .screenshots-slider{
    grid-template-columns: 1fr;
  }
}

/* Iframe демки: фиксируем пропорции, чтобы на мобилке не вылезал по ширине */
.demo-wrapper iframe{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* На всякий случай: изображения и видео не выходят за границы своих контейнеров */
img, iframe, video{ max-width: 100%; height: auto; }

/* Если где-то случайно заданы ширины 100vw — принудительно предотвращаем горизонтальный скролл */
body{ overflow-x: hidden; }


