@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252540;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(139, 92, 246, 0.2);
  --shadow: 0 4px 30px rgba(139, 92, 246, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, #16162a 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

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

/* Header */
header {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo h1 {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
}

nav a:hover {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
}

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

nav a:hover::after {
  width: 80%;
}

.burger-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.burger-icon .line {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-icon.open .line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-icon.open .line:nth-child(2) {
  opacity: 0;
}

.burger-icon.open .line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at right bottom, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary);
}

/* Advantages Section */
.advantages {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.advantage-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

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

.advantage-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card .icon img {
  width: 40px;
  height: 40px;
}

.advantage-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.advantage-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Games Section */
.games {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
}

.game-card .image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-card .content {
  padding: 1.5rem;
  text-align: center;
}

.game-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.game-card .play-btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: var(--gradient-accent);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.game-card .play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Stats Section */
.stats {
  padding: 5rem 0;
  background: var(--bg-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  color: var(--text-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-dark);
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Responsible Gaming */
.responsible-gaming {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
}

.responsible-gaming h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.responsible-gaming p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.responsible-gaming ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.responsible-gaming ul a {
  color: var(--primary-light);
  text-decoration: underline;
}

.responsible-gaming ul a:hover {
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-card);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-section h4 {
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul a {
  color: var(--text-secondary);
}

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px 0;
}

.footer-notice {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-notice h5 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-notice p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-badges img {
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-badges img:hover {
  opacity: 1;
}

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

.copyright a {
  color: var(--primary-light);
}

/* Page Content (About, Contact, Terms, Policy, Games) */
.page-content {
  padding-top: 100px;
  min-height: 60vh;
}

.content-card {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 20px;
}

.content-card .card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
}

.content-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
  text-align: center;
}

.content-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.content-card .image-center {
  text-align: center;
  margin-top: 2rem;
}

.content-card .image-center img {
  max-width: 400px;
  border-radius: 16px;
}

/* Policy Styles */
.policy-content h3 {
  color: var(--primary-light);
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.policy-content p {
  margin-bottom: 1rem;
}

/* Game Page */
.game-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.game-info {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 20px;
}

.game-info .card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
}

.game-info .game-image {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.game-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.game-info p {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.game-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  overflow: hidden;
}

.game-frame iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 12px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-popup.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content .icon-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.cookie-content img {
  width: 40px;
}

.cookie-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn.accept {
  background: var(--gradient-primary);
  color: white;
}

.cookie-btn.decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.cookie-btn:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 3rem;
  text-align: center;
  position: relative;
  max-width: 400px;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.modal-content .close:hover {
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-primary);
  font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .burger-icon {
    display: flex;
  }

  nav {
    display: none;
  }

  nav.mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.mobile-menu.show {
    max-height: 400px;
  }

  nav.mobile-menu ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  nav.mobile-menu li {
    border-bottom: 1px solid var(--border);
  }

  nav.mobile-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .advantages-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item .number {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .content-card .card,
  .contact-form {
    padding: 1.5rem;
  }

  .game-frame iframe {
    height: 400px;
  }
}
