/* CSS Reset & Variables */
:root {
  --primary: #34d399;
  --primary-glow: rgba(52, 211, 153, 0.4);
  --secondary: #10b981;
  --accent: #a3e635;
  --accent-glow: rgba(163, 230, 53, 0.3);
  --bg-from: #052e16;
  --bg-via: #14532d;
  --bg-to: #022c22;
  --card-bg: rgba(20, 83, 45, 0.6);
  --card-border: rgba(52, 211, 153, 0.2);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --radius: 8px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 46, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s var(--transition);
}

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

.age-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(5, 46, 22, 0.9), rgba(20, 83, 45, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40" opacity="0.05">♠♥♦♣</text></svg>');
  background-size: cover;
  background-position: center;
}

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

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

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

.btn {
  padding: 14px 35px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s var(--transition);
  font-size: 1.1rem;
}

.btn:hover {
  background: var(--primary);
  color: var(--bg-from);
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg-from);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-disclaimer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section Styles */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.game-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
}

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-via), var(--bg-to));
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--transition);
}

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

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--card-border);
}

.game-category {
  background: rgba(52, 211, 153, 0.2);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.game-title {
  padding: 15px;
  font-size: 1.2rem;
  color: var(--text-light);
  min-height: 60px;
}

.play-demo-btn {
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.play-demo-btn:hover {
  background: var(--primary);
  color: var(--bg-from);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active { display: flex; }

.modal-content {
  background: var(--bg-from);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
  gap: 15px;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
  flex: 1;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s var(--transition);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

#game-iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

.demo-unavailable {
  display: none;
  align-items: center;
  justify-content: center;
  height: 70vh;
  font-size: 1.5rem;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s var(--transition);
}

.feature-card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--primary);
  color: var(--bg-from);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

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

.step p {
  color: var(--text-muted);
}

/* Responsible Gaming */
.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  margin: 40px 0;
}

.responsible-gaming .hero-badge {
  font-size: 2rem;
  padding: 15px 30px;
}

.responsible-gaming h2 {
  color: var(--primary);
  margin: 20px 0;
}

.responsible-gaming p {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 20px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--transition);
}

.faq-answer.active { max-height: 500px; }

.faq-answer p {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: rgba(5, 46, 22, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 50px 0 30px;
  margin-top: 60px;
}

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

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.footer-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 20px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.age-modal.active { display: flex; }

.age-modal-content {
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 50px;
  max-width: 500px;
  text-align: center;
}

.age-modal-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
  margin: 0 auto 30px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.age-modal h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
}

.age-modal p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.age-modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-modal-buttons .btn { min-width: 150px; }

/* Category Filters */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--bg-from);
}

/* Legal Pages */
.legal-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.legal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.legal-content h2 {
  color: var(--primary);
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(5, 46, 22, 0.98);
    flex-direction: column;
    padding: 30px;
    transition: left 0.3s var(--transition);
  }
  
  .nav-links.active { left: 0; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .section-header h2 { font-size: 2rem; }
  
  .legal-content { padding: 30px 20px; }
  
  #game-iframe,
  .demo-unavailable { height: 50vh; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .btn { padding: 12px 25px; font-size: 1rem; }
  .games-grid { grid-template-columns: 1fr; }
  .age-modal-content { padding: 30px 20px; }
  .modal-header h2 { font-size: 1.2rem; }
}