
/* Основні змінні */
:root {
  --primary: #FF6B6B;
  --secondary: #FFD93D;
  --accent: #6BCB77;
  --dark: #2D3436;
  --light: #ffffff;
  --gradient: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: var(--light);
}

/* Хедер - sticky */
header {
  position: -webkit-sticky; /* для Safari */
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(45, 52, 54, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Luckiest Guy', cursive;
  font-size: 2rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 120px;
  height: auto;
}

/* Кнопки в шапці */
.auth-buttons {
  display: flex;
  gap: 1rem;
}

.auth-btn {
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--primary);
  color: var(--light);
  text-align: center;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Контейнер основного контенту */
.content-container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 2rem;
}

/* Hero секція */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('media/hero-bg.webp');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Added to center horizontally */
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
}


.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Кнопки */
.cta-button {
  background: var(--gradient);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--light);
  display: inline-block;
  margin: 0.5rem;
  text-align: center;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.cta-button.secondary {
  background: var(--secondary);
  color: var(--dark);
}

/* Додатковий блок для відцентровання кнопок */
.action-box {
  text-align: center;
}

/* Карточки */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  margin: 2rem 0;
  position: relative;
}

.badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
}

/* Переваги та демо списки */
.advantages-list,
.demo-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.advantages-list li,
.demo-list li {
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

/* Features секція */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* DEMO секція - фон: лише градієнт */
#demo {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}

/* Контейнер для iframe гри */
#iframeContainer {
  position: relative;
  width: 100%;
  height: 800px;
  margin-bottom: 1rem;
  background: url('media/hero-bg.webp') center/cover no-repeat;
}

#iframeContainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

#iframeContainer iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  #iframeContainer {
    height: 600px;
  }
}

/* About секція - Про гру Sweet Bonanza */
.about-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}
.about-details {
  flex: 1;
  min-width: 280px;
}
.game-screen {
  max-width: 400px; /* Обмеження розміру зображення */
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.tech-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.tech-specs th,
.tech-specs td {
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.tech-specs th {
  text-align: left;
  background: rgba(255,255,255,0.1);
}

/* На мобільних - стек для секції "Про гру" */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}

/* Секція "Переваги казино" */
#casino-advantages .advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
#casino-advantages .advantage-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
#casino-advantages .advantage-item img {
  width: 36px; /* Обмеження розміру до 36x36 */
  height: 36px;
  object-fit: cover;
}

/* Додаткові секції */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
/* Секція "Топ ігри" - контейнер */
#top-games {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#top-games h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

#top-games h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Сітка ігор - мобільна версія */
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* На десктопі (ширина екрана 1024px і більше) встановлюємо 3 колонки */
@media (min-width: 1024px) {
  .game-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Карточка гри */
.game-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--light);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Зображення гри */
.game-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Overlay з назвою гри */
.game-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--light);
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .game-title-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .game-title-overlay {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Додаткові стилі для елементів карточки */
.game-card .game-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.game-card .play-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.game-card .play-block img {
  width: 33px;
  height: 33px;
}

.game-card .play-text {
  font-size: 1rem;
  text-transform: uppercase;
}

.game-card a {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--gradient);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light);
  text-align: center;
}



/* Payment таблиця */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.payment-table, .payment-table th, .payment-table td {
  border: 1px solid rgba(255,255,255,0.2);
}
.payment-table th, .payment-table td {
  padding: 0.75rem;
  text-align: left;
}
.payment-table th {
  background: rgba(255,255,255,0.1);
}
.deposit-button {
  display: inline-block;
  background: var(--gradient);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--light);
  text-transform: uppercase;
}

/* Стилі для секції "Провайдери програмного забезпечення" */
#providers {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#providers h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

#providers h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Налаштування для логотипів провайдерів */
.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.provider-logos img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.provider-logos img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}


/* Футер */
.site-footer {
  background: #1a1e1f;
  padding: 4rem 0;
  color: var(--light);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.site-footer a {
  color: var(--light);
  text-decoration: none;
  font-weight: bold;
}

/* Мобільні стилі */
@media (max-width: 768px) {
  .header-container {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-content img {
    max-width: 100%;
    height: auto;
  }
  .payment-table {
    display: block;
    overflow-x: auto;
  }
  .site-footer {
    width: 100%;
    box-sizing: border-box;
    padding: 2rem 1rem;
  }

  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
}
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .cta-button {
    width: 100%;
    padding: 1rem;
  }
  .logo span {
    font-size: 1.5rem;
  }
}
.demo-box .cta-button {
  display: block;
  margin: 1rem auto 0;
  text-align: center;
}


.advantage-item img {
  max-width: 18px;
  max-height: 18px;
}

/* Секція "Дізнайтеся більше" - двоколонна розкладка */
#know-more .two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Стилі для блоку з додатком */
.app-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.store-logos {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-logos img {
  max-width: 100px;
  height: auto;
}

/* Таблиця з характеристиками додатку */
.app-specs-container h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.app-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.app-specs th,
.app-specs td {
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.app-specs th {
  text-align: left;
  background: rgba(255,255,255,0.1);
}

/* На мобільних - перехід у стек */
@media (max-width: 768px) {
  #know-more .two-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .store-logos {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .store-logos img {
    margin: 0 auto;
  }
}

/* Apply box-sizing globally for better layout control */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Стилі для секції "Плюси та мінуси" */
#pros-cons {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.5s ease-out;
  margin: 2rem 0;
}

#pros-cons h2 {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

#pros-cons h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Make sure columns wrap if needed */
#pros-cons .two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

/* Заголовки блоків "Плюси" та "Мінуси" */
#pros-cons h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 10px;
}

#pros-cons h3::before {
  content: none;
}

/* Списки */
#pros-cons ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0; /* reset default margins if necessary */
}

/* Apply word wrapping to list items */
#pros-cons ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

/* Іконки для пунктів списку */
#pros-cons ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--accent);
}

/* Для списку мінусів - використання іншої іконки */
#pros-cons .minus li::before {
  content: "✕";
  color: #FF6B6B;
}

/* Стилі для секції FAQ */
#faq {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
}

#faq h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

#faq .faq-item {
  margin-bottom: 1rem;
}

#faq details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}

#faq details[open] {
  background: rgba(255, 255, 255, 0.1);
}

#faq summary {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem;
  list-style: none;
  outline: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq details[open] summary:after {
  transform: rotate(180deg);
}

#faq p {
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--primary);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.trust-badges {
  margin-top: 20px;
  text-align: center;
}

.trust-badges a {
  margin: 0 10px;
  display: inline-block;
}

.trust-badges img {
  width: 100px; /* Adjust size as needed */
  height: 50px;
}

.footer-bottom {
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9em;
}
