/* ============================================
   VERDE CASINO - MAIN STYLESHEET
   Color Scheme: White & Green (Clean & Fresh)
   ============================================ */

/* SECTION: CSS Variables (Color Palette) */
:root {
  --bg: #ffffff;
  --surface: #f8faf9;
  --accent: #00c853;
  --accent-dark: #00a843;
  --accent-light: #69f0ae;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --gradient-primary: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent-dark);
}

/* Подчеркивание для ссылок внутри контента для лучшей доступности */
.content-section a,
.hero p a,
.feature-card p a,
p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.content-section a:hover,
.hero p a:hover,
.feature-card p a:hover,
p a:hover {
  text-decoration-thickness: 2px;
}

/* SECTION: Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
  color: var(--accent);
}

h2 {
  font-size: 2rem;
  color: var(--accent);
}

h3 {
  font-size: 1.5rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* SECTION: Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* SECTION: Header (Sticky with Shadow) */
header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  background: linear-gradient(90deg, #0a7a2d 0%, #008e3a 50%, #0e9c43 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin: 0 auto;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-icon {
  font-size: 2rem;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #a3e635;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(180deg, #76d84f, #34a853);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: 15px 40px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  opacity: 0.3;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.cta-btn:hover {
  box-shadow: 0 10px 24px rgba(52, 168, 83, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
  opacity: 0.5;
}

/* SECTION: Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  color: #a3e635;
  transform: scale(1.1);
}

/* SECTION: Hero Section */
.hero {
  position: relative;
  background: url('/assets/2_bg.webp') center/cover no-repeat;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 0% 50%,
    rgba(0, 100, 40, 0.4) 0%,
    rgba(0, 100, 40, 0.15) 40%,
    rgba(0, 100, 40, 0) 75%
  );
  backdrop-filter: blur(3px);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(232, 245, 233, 0.15));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #e0ffe5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 35px;
}

.hero-banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* SECTION: Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}

/* SECTION: Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.game-img {
  width: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.5rem;
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-info {
  padding: 15px;
  background: var(--bg);
}

.game-info h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.game-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cta-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }
}

/* SECTION: Content Sections */
.content-section {
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.content-section h2 {
  margin-bottom: 20px;
}

.content-section h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--accent);
}

.content-section ul, .content-section ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.content-section li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

table {
  min-width: 600px; /* Ensures horizontal scroll on small screens */
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table th {
  background: var(--accent);
  color: #ffffff;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

table tr:last-child td {
  border-bottom: none;
}

/* SECTION: Footer */
footer {
  background: var(--surface);
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

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

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* SECTION: Responsive Design */

/* Table Responsiveness */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* Sticky Mobile CTA */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 0;
  background: var(--surface);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.sticky-cta-mobile .cta-btn {
  display: inline-block;
  width: 90%;
  padding: 15px 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: block;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  /* Mobile Menu Styles */
  .menu-toggle {
    display: inline-block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0a7a2d, #0e9c43);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.15);
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  nav ul.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  nav ul a {
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
  }

  nav ul a:hover {
    background: rgba(255,255,255,0.1);
    color: #a3e635;
    transform: translateX(5px);
  }

  /* Make header container relative for absolute positioning */
  .header-container {
    position: relative;
  }

  .content-section {
    padding: 20px;
  }

  .hero-banner {
    height: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 40px 10px;
  }

  .games-grid {
    gap: 15px;
  }
}

/* ==== НАВИГАЦИЯ ==== */
.main-nav {
  background: linear-gradient(90deg, #0a7a2d, #00923c, #0e9c43);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ==== СПИСОК ==== */
#navMenu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

#navMenu li {
  position: relative;
}

/* ==== ССЫЛКИ ==== */
#navMenu a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

#navMenu a:hover {
  color: #a3e635;
}

/* underline эффект при наведении */
#navMenu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #a3e635;
  transition: width 0.3s ease;
}

#navMenu a:hover::after,
#navMenu a.active::after {
  width: 100%;
}

/* ==== МОБИЛЬНАЯ ВЕРСИЯ НАВИГАЦИИ (#navMenu) ==== */
@media (max-width: 768px) {
  #navMenu {
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, #0a7a2d, #0e9c43);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    border-radius: 8px 0 0 8px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  #navMenu.show {
    display: flex;
  }

  #navMenu li {
    margin-bottom: 12px;
  }
}
