/* ============================================
   KINGMAKER CASINO - MAIN STYLESHEET
   Color Scheme: Purple & Gold (Royal Theme)
   ============================================ */

/* SECTION: CSS Variables (Color Palette) */
:root {
  --bg: #0f0a1e;
  --surface: #1a1230;
  --accent: #8b5cf6;
  --accent-2: #d4af37;
  --text: #f5f7fa;
  --muted: #cbd5e1;
  --text-secondary: #e2e8f0;
  --dark-purple: #2d1b4e;
  --gold: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d4af37 100%);
  --shadow-sm: 0 2px 8px rgba(139, 92, 246, 0.15);
  --shadow-md: 0 4px 16px rgba(139, 92, 246, 0.25);
  --shadow-lg: 0 8px 32px rgba(139, 92, 246, 0.35);
}

/* 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.7;
  overflow-x: hidden;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--gold);
}

/* 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;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

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

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.section {
  padding: 60px 0;
}

/* SECTION: Header (Sticky with Blur) */
header {
  background: rgba(15, 10, 30, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(15, 10, 30, 0.95);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

nav a:hover {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.cta-btn {
  background: var(--gradient-gold);
  color: #1a1230;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

/* SECTION: Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* SECTION: Hero Section */
.hero {
  background:
     linear-gradient(135deg, rgba(51, 0, 102, 0.7) 0%, rgba(15, 10, 30, 0.85) 100%),
    url('/assets/img/123.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
  padding: 100px 0 80px; /* Default padding for half-screen effect */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 10, 30, 0.4);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 25px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.3) saturate(1.2);
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 0 4px 15px rgba(0, 0, 0, 0.9);
  position: relative;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-banner {
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 40px auto;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
}

/* 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(--surface);
  padding: 35px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(26, 18, 48, 0.95);
}

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

.feature-card h3 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 1.3rem;
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

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

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 in a row for medium/large screens */
  }
}

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface); /* Фон под картинкой */
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.game-img {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.game-card:hover .game-img img {
  transform: scale(1.05);
}

.game-info {
  padding: 15px;
}

.game-info h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.game-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SECTION: Content Sections */
.content-section {
  background: var(--surface);
  padding: 45px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.content-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.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: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

table th {
  background: var(--dark-purple);
  color: var(--gold);
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 15px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  color: var(--text-secondary);
  font-size: 1rem;
}

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 rgba(139, 92, 246, 0.2);
}

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

.footer-section h3 {
  color: var(--gold);
  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 rgba(139, 92, 246, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* SECTION: Sticky Mobile CTA */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center horizontally */
  width: 90%; /* Adjust width for mobile */
  max-width: 400px; /* Max width for better look */
  z-index: 999;
}

.sticky-cta-mobile .cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* SECTION: Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

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

  .hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0 10px;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .feature-card p {
    font-size: 0.95rem;
  }
  
  .content-section p {
    font-size: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px;
    box-shadow: var(--shadow-md);
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .sticky-cta-mobile {
    display: block;
  }

  

  .content-section {
    padding: 25px 20px;
  }
  
  .feature-card {
    padding: 25px;
  }

  .hero-banner {
    height: 250px;
    font-size: 1.5rem;
  }
}

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

  .section {
    padding: 40px 0;
  }

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

