/*
Theme Name: Mostbet AZ
Description: WordPress şаблон для Mostbet Azerbaijan с поддержкой ACF и адаптивной версткой
Version: 1.0.0
Author: Mostbet Team
Text Domain: mostbet-az
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
}

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

/* Header Styles */
.header {
  background: rgba(30, 60, 114, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
  background: rgba(20, 40, 80, 0.8);
  padding: 8px 0;
  font-size: 14px;
}

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

.download-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.download-links span {
  margin-right: 10px;
}

.download-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.download-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-main {
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.logo .star {
  background: #ff6b35;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  font-size: 18px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover {
  color: #ff6b35;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(45deg, #ff6b35, #ff8c42);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-bonus {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1e3c72;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.btn-bonus::before {
  content: "🛒";
  margin-right: 8px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-amount {
  font-size: 72px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin: 20px 0;
}

.hero-bonus {
  font-size: 20px;
  margin-bottom: 40px;
}

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

/* Content Styles */
.main-content {
  padding: 60px 0;
}

.page-title {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.content-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: #ff6b35;
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.entry-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.entry-title a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.entry-title a:hover {
  color: #ff6b35;
}

.entry-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 15px;
}

.entry-summary {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.read-more {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: #ff8c42;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results .page-title {
  color: #ff6b35;
  margin-bottom: 20px;
}

.page-content p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Slot Page Styles */
.slot-header {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.slot-image {
  flex: 0 0 300px;
}

.slot-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slot-info {
  flex: 1;
}

.slot-characteristics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.characteristic-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #ff6b35;
}

.characteristic-label {
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 5px;
}

.characteristic-value {
  font-size: 16px;
}

.slot-iframe {
  margin: 40px 0;
  text-align: center;
}

.slot-iframe iframe {
  width: 100%;
  max-width: 800px;
  height: 600px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Styles */
.footer {
  background: rgba(20, 40, 80, 0.9);
  padding: 60px 0 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 18px;
}

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

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

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

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

.payment-icons,
.league-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.payment-icons img,
.league-logos img {
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.payment-icons img:hover,
.league-logos img:hover {
  opacity: 1;
}

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

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 100px 0;
}

.error-404 h1 {
  font-size: 72px;
  color: #ff6b35;
  margin-bottom: 20px;
}

.error-404 h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.error-404 p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle .hamburger {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.mobile-menu-toggle .hamburger::before,
.mobile-menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.mobile-menu-toggle .hamburger::before {
  top: -6px;
}

.mobile-menu-toggle .hamburger::after {
  top: 6px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-top-content {
    justify-content: space-between;
  }

  .promotions-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
  }

  .promotions-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    color: white;
  }

  .download-links {
    display: none;
  }

  .header-info {
    display: none;
  }

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .logo {
    order: 1;
    flex: 1;
    justify-content: flex-start;
    /* Логотип слева */
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
    /* Бургер справа */
  }

  .header-buttons {
    display: none;
  }

  /* Боковое мобильное меню */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 9999;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    background: none;
    padding: 0;
    text-align: left;
    /* Пункты по левому краю */
  }

  /* Кнопка закрытия в мобильном меню */
  .mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
  }

  .mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }

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

  .hero-amount {
    font-size: 48px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .slot-header {
    flex-direction: column;
  }

  .slot-image {
    flex: none;
    max-width: 100%;
  }

  .slot-characteristics {
    grid-template-columns: 1fr;
  }

  .info-table {
    font-size: 14px;
  }

  .info-table th,
  .info-table td {
    padding: 10px;
  }

  .content-wrapper {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .main-nav {
    width: 260px;
  }

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

  .hero-amount {
    font-size: 36px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }

  .logo {
    font-size: 24px;
  }

  .logo .star {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Lazy Loading */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

/* Print Styles */
@media print {

  .header,
  .footer,
  .hero-banner {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* Pagination */
.page-numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  list-style: none;
  padding: 0;
}

.page-numbers a,
.page-numbers span {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers .current {
  background: #ff6b35;
  color: white;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: #ff6b35;
  background: rgba(255, 255, 255, 0.15);
}

.search-form button {
  padding: 12px 20px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #ff8c42;
}

@media (min-width: 768px) {

  .header-content .mobile-menu-toggle,
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

@media (min-width: 768px) {
  .mobile-close-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

/* --- Красивый базовый контент для страниц --- */
.main-content,
.main-content .entry-content,
.content-wrapper {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #fff;
}

/* Абзацы */
.main-content p {
  margin: 0 0 1.2em 0;
}

/* Заголовки */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  margin: 2em 0 1em 0;
  font-weight: 700;
  color: #ffb84d;
  line-height: 1.2;
}

.main-content h1 {
  font-size: 2.2em;
}

.main-content h2 {
  font-size: 1.7em;
}

.main-content h3 {
  font-size: 1.3em;
}

.main-content h4 {
  font-size: 1.1em;
}

.main-content h5,
.main-content h6 {
  font-size: 1em;
}

/* Списки */
.main-content ul,
.main-content ol {
  margin: 1.2em 0 1.2em 1.5em;
  padding-left: 1.5em;
}

.main-content ul {
  list-style: disc inside;
}

.main-content ol {
  list-style: decimal inside;
}

.main-content li {
  margin-bottom: 0.5em;
}

/* Таблицы */
.main-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #15325c;
  border-radius: 10px;
  overflow: hidden;
  margin: 2em 0;
  color: #fff;
  font-size: 1em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.main-content th,
.main-content td {
  padding: 16px 18px;
  border-bottom: 1px solid #223366;
  text-align: left;
  vertical-align: middle;
}

.main-content th {
  background: #1a2a4a;
  color: #ffb84d;
  font-weight: 700;
}

.main-content tr:last-child td {
  border-bottom: none;
}

.main-content tr:nth-child(even) td {
  background: #1a2a4a;
}

.main-content tr:nth-child(odd) td {
  background: #15325c;
}

.main-content table {
  border-radius: 10px;
  overflow: hidden;
}

/* Вертикальные разделители между столбцами в таблицах */
.main-content th,
.main-content td {
  border-right: 1px solid #d2d2d2;
}

.main-content th:last-child,
.main-content td:last-child {
  border-right: none;
}

@media (min-width: 768px) {
  .header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .logo {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
  }

  .header-buttons {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .main-content table {
    width: 100%;
    display: table;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-content th,
  .main-content td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .main-content th:first-child,
  .main-content td:first-child {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* Для широких таблиц (3+ колонки) — скролл и nowrap */
  .main-content table.wide-table {
    display: block;
    overflow-x: auto;
  }

  .main-content table.wide-table th,
  .main-content table.wide-table td {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Стили для карточек слотов (3 в ряд на ПК, 1 в ряд на мобилках) */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 32px 0;
  justify-content: center;
}

.slot-card {
  background: #182c4c;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  padding: 24px 18px 18px 18px;
  width: 320px;
  max-width: 95vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.slot-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.slot-img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  background: #222;
}

.slot-title {
  font-size: 1.18em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  margin-top: 2px;
}

.slot-btn {
  display: block;
  background: linear-gradient(90deg, #ffb84d 0%, #ff6b35 100%);
  color: #1a2a4a;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 0;
  width: 100%;
  text-decoration: none;
  font-size: 1.08em;
  margin-top: auto;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.5px;
  border: none;
  outline: none;
}

.slot-btn:hover {
  background: linear-gradient(90deg, #ff6b35 0%, #ffb84d 100%);
  color: #fff;
}

@media (max-width: 1000px) {
  .slots-grid {
    gap: 18px;
  }

  .slot-card {
    width: 90vw;
    max-width: 400px;
  }
}

@media (max-width: 700px) {
  .slots-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .slot-card {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Центрирование изображений в контенте */
img.aligncenter,
.main-content img.aligncenter,
.entry-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Гарантия, что изображения не выходят за экран */
.main-content img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .header-main {
    padding-top: 12px;
    /* было 15px, уменьшено на 20% */
    padding-bottom: 12px;
  }

  .header-buttons {
    margin-top: 8px;
    /* было 10px, уменьшено на 20% */
  }
}