/* ========================================
   🌐 WORLD CASINO - SWEET BONANZA
   Современный CSS 2025 | RTL | Неон | Glassmorphism | Адаптив
   Язык: iw (иврит) | Домен: world-casino-iw.com
   ======================================== */

/* === 1. Переменные и базовые настройки === */
:root {
  /* Цвета */
  --primary: #ec407a;           /* Розовый неон */
  --primary-light: #f8bbd0;
  --secondary: #7e57c2;         /* Фиолетовый */
  --accent: #ffca28;            /* Жёлтый (сахар, бонус) */
  --dark: #0a0a0a;              /* Тёмный фон */
  --darker: #000000;
  --light: #ffffff;             /* Основной текст */
  --gray: #cccccc;              /* Вторичный текст */
  --text: #e0e0e0;              /* Основной цвет текста */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow: 0 0 25px rgba(236, 64, 122, 0.6);
  --glow-secondary: 0 0 20px rgba(126, 87, 194, 0.5);
  --border-radius: 16px;
  --border-radius-lg: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

/* Тёмная тема (по умолчанию) */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #0a0a0a;
    --light: #ffffff;
    --text: #e0e0e0;
  }
}

/* Сброс */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Rubik', sans-serif;
  background: linear-gradient(135deg, #121212 0%, #1a0a2a 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  color: var(--light);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: 3.8rem;
  text-align: center;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  color: var(--primary-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h3 {
  font-size: 1.8rem;
  color: var(--accent);
}

h4 {
  font-size: 1.5rem;
  color: var(--primary);
}

p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   🔷 ХЕДЕР (меню)
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 10px var(--primary));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(2deg);
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
}

.nav a {
  color: var(--light);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s ease;
  transform: translateX(50%);
}

.nav a:hover::after {
  width: 70%;
}

.nav a:hover,
.nav a.active {
  background: rgba(236, 64, 122, 0.15);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(236, 64, 122, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

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

/* ========================================
   🎯 ГЕРОЙ (главный экран)
   ======================================== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background: url('../images/sweet-bg.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(126, 87, 194, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  color: white;
  animation: fadeInUp 1.2s ease-out;
}

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

.hero h1 {
  font-size: 4.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   🎴 КАРТОЧКИ И ФУНКЦИИ
   ======================================== */
.features {
  padding: 100px 0;
  background: var(--darker);
  border-radius: 0 0 60px 60px;
  margin-bottom: 60px;
}

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

.card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow), var(--glow);
  border-color: rgba(236, 64, 122, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card p {
  color: var(--gray);
}

/* ========================================
   🖼 ПРЕВЬЮ ИГРЫ
   ======================================== */
.preview {
  padding: 80px 0;
  background: var(--darker);
  border-radius: var(--border-radius-lg);
  max-width: 1100px;
  margin: 60px auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview .container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.preview img {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.preview img:hover {
  transform: scale(1.03);
}

.text-side {
  flex: 1;
  min-width: 300px;
}

.text-side h2 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-side p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ========================================
   🎯 КНОПКИ
   ======================================== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 60px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: var(--transition);
  margin: 10px;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), var(--glow);
}

.btn:active {
  transform: translateY(0);
}

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

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

/* ========================================
   📄 ВНУТРЕННИЕ СТРАНИЦЫ — ЗАГОЛОВКИ
   ======================================== */
.page-header {
  height: 320px;
  background: url('../images/sweet-bg.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-radius: 0 0 30px 30px;
  margin-bottom: 60px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.page-header h1 {
  position: relative;
  z-index: 2;
  font-size: 3.2rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ========================================
   📝 КОНТЕНТНЫЕ СЕКЦИИ
   ======================================== */
section {
  padding: 80px 0;
}

.about-content,
.gameplay .steps,
.bonuses-content,
.mobile-content,
.faq-content,
.contact-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-content p,
.mobile-content p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content ul,
.about-content ol {
  margin: 20px 0;
  color: var(--gray);
  padding-right: 20px;
}

.about-content li {
  margin-bottom: 12px;
  position: relative;
  padding-right: 25px;
}

.about-content li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  right: 0;
  font-weight: bold;
}

/* Шаги игры */
.steps ol {
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  margin-bottom: 30px;
  padding-right: 40px;
  position: relative;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Бонусы */
.bonus-item {
  background: rgba(30, 30, 30, 0.6);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease;
}

.bonus-item:hover {
  transform: translateX(8px);
  background: rgba(40, 40, 40, 0.7);
}

.bonus-item h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

/* FAQ */
.faq-content .question {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.faq-content .question:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-content p {
  color: var(--gray);
}

/* Контакты */
.contact-form {
  max-width: 600px;
  margin: 30px auto 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 30, 0.5);
  color: white;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
}

.contact-info {
  background: rgba(30, 30, 30, 0.5);
  padding: 24px;
  border-radius: var(--border-radius);
  color: var(--gray);
  max-width: 600px;
  margin: 30px auto 0;
}

.contact-info p {
  margin-bottom: 12px;
}

/* ========================================
   📱 Мобильная версия
   ======================================== */
.mobile-img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
}

/* ========================================
   🧱 ФУТЕР
   ======================================== */
.footer {
  background: var(--darker);
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 100px;
}

.footer .container {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
}

.footer .links {
  margin-top: 16px;
}

.footer a {
  color: var(--primary-light);
  margin: 0 10px;
  font-size: 0.95rem;
}

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

/* ========================================
   📱 АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  .hero h1 { font-size: 3rem; }
  .preview .container { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-top: 10px;
    padding: 10px 0;
    flex-direction: column;
  }
  .nav.active {
    display: flex;
  }
  .nav ul {
    flex-direction: column;
    gap: 8px;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1.2rem; }
  .page-header h1 { font-size: 2.4rem; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  .hero-content { padding: 20px; }
}

/* ========================================
   ✨ Эффекты
   ======================================== */
.glow {
  box-shadow: var(--glow);
}
.glow:hover {
  box-shadow: 0 0 30px rgba(236, 64, 122, 0.8);
}

.micro-hover {
  transition: transform 0.2s ease;
}
.micro-hover:hover {
  transform: scale(1.03);
}