/* Import Fonts */
@import url('./fonts/fonts.css');

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

/* Prevent horizontal overflow globally */
* {
  max-width: 100%;
}

/* Allow only specific elements to be wider if needed */
html, body, .container, section, main, header, footer {
  max-width: none;
}

/* CSS Variables - Snow Beast Theme */
:root {
  /* Colors - Dark Winter Theme */
  --primary-bg: #0a0f1c;
  --secondary-bg: #1a2332;
  --accent-bg: #2a3441;
  --card-bg: #1e2936;
  
  /* Icy Blue Neon Accents */
  --neon-primary: #00d4ff;
  --neon-secondary: #4df0ff;
  --neon-glow: rgba(0, 212, 255, 0.3);
  --ice-blue: #a8d8ea;
  --snow-white: #f8f9fa;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b8c5d1;
  --text-muted: #7a8c99;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  --gradient-bg: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  
  /* Fonts */
  --font-heading: 'Glacial', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px var(--neon-glow);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--shadow-neon);
}

h2 {
  font-size: 2.5rem;
  color: var(--neon-primary);
}

h3 {
  font-size: 2rem;
  color: var(--ice-blue);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

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

a:hover {
  color: var(--neon-secondary);
  text-shadow: 0 0 10px var(--neon-glow);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  background: var(--secondary-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon-primary);
  text-shadow: var(--shadow-neon);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle-label span {
  width: 25px;
  height: 3px;
  background: var(--neon-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-menu a {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background: var(--accent-bg);
  box-shadow: var(--shadow-neon);
}

/* Hero Section */
.hero {
  background: 
    linear-gradient(135deg, rgba(10, 15, 28, 0.8) 0%, rgba(26, 35, 50, 0.7) 50%, rgba(42, 52, 65, 0.6) 100%),
    url('images/2.webp') center/cover no-repeat;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--neon-glow) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  margin-bottom: var(--spacing-md);
  animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    text-shadow: 0 0 20px var(--neon-glow);
  }
  to {
    text-shadow: 0 0 30px var(--neon-glow), 0 0 40px var(--neon-primary);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--ice-blue);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.warning {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
  border: 2px solid #ff6b7a;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-neon);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--neon-glow), var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: var(--neon-primary);
  color: var(--primary-bg);
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent-bg);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--neon-glow);
  border-color: var(--neon-primary);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Game Showcase Section */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.game-showcase-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.game-showcase-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease;
}

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

.game-showcase-content {
  padding: var(--spacing-lg);
}

.game-showcase-content .section-header {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.game-details h3 {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--neon-primary);
  text-shadow: 0 0 15px var(--neon-glow);
}

.game-features {
  list-style: none;
  margin: var(--spacing-lg) 0;
  padding: 0;
}

.game-features li {
  padding: var(--spacing-xs) 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--accent-bg);
  transition: color 0.3s ease;
}

.game-features li:hover {
  color: var(--neon-primary);
}

.game-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.2rem;
}

/* Legacy Game Section (if needed) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-bg);
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--neon-glow);
}

.game-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.game-info {
  padding: var(--spacing-md);
}

/* Slot Machine Styles */
.slot-machine {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-lg) auto;
  max-width: 600px;
  border: 2px solid var(--neon-primary);
  box-shadow: 0 0 30px var(--neon-glow);
}

.slot-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--spacing-xs);
  background: var(--primary-bg);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  min-height: 300px;
}

.slot-symbol {
  background: var(--secondary-bg);
  border: 2px solid var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  aspect-ratio: 1;
  transition: all 0.3s ease;
}

.slot-controls {
  text-align: center;
}

.credits {
  font-size: 1.5rem;
  color: var(--neon-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

/* Slot Animation */
.spinning .slot-symbol {
  animation: spin 2s linear;
  background: var(--gradient-primary);
}

@keyframes spin {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg); }
}

/* Reviews Section */
.reviews {
  background: var(--secondary-bg);
}

.review-card {
  background: var(--card-bg);
  border-left: 4px solid var(--neon-primary);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.review-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.review-name {
  color: var(--neon-primary);
  font-weight: 600;
}

.review-rating {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: var(--primary-bg);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--accent-bg);
  margin-top: var(--spacing-xl);
}

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

.footer-section h3 {
  margin-bottom: var(--spacing-md);
  color: var(--neon-primary);
}

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

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--accent-bg);
  color: var(--text-muted);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Hero Actions Mobile */
  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  /* Game Showcase Mobile */
  .game-showcase {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    overflow-x: hidden;
  }
  
  .game-showcase-image {
    order: 1;
    width: 100%;
    overflow: hidden;
  }
  
  .game-showcase-content {
    order: 2;
    padding: var(--spacing-md);
    width: 100%;
    overflow-x: hidden;
  }
  
  .game-showcase-content .section-header {
    text-align: center;
  }
  
  .game-details {
    overflow-x: hidden;
    word-wrap: break-word;
  }
  
  .game-features {
    overflow-x: hidden;
  }
  
  .game-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .game-actions .btn {
    width: 100%;
    text-align: center;
    max-width: 100%;
  }
  
  /* Mobile Menu */
  .menu-toggle-label {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .menu-toggle:checked ~ .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .menu-toggle:checked + .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle:checked + .menu-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle:checked + .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--accent-bg);
  }
  
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Layout */
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .slot-display {
    min-height: 250px;
  }
  
  .slot-symbol {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .slot-display {
    min-height: 200px;
  }
  
  .slot-symbol {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--neon-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* Horizontal Scroll Prevention */
.section, .card, .game-card, .review-card, .legal-section, .gdpr-section {
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Text Elements - Prevent Overflow */
h1, h2, h3, h4, h5, h6, p, span, div, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Images - Always responsive */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Tables - Make responsive */
table {
  width: 100%;
  table-layout: fixed;
  overflow-x: auto;
}

/* Pre and Code - Handle long content */
pre, code {
  overflow-x: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* Form Elements - Prevent overflow */
input, textarea, select {
  max-width: 100%;
  box-sizing: border-box;
}

/* Grid and Flex - Responsive behavior */
.grid, .rights-grid, .games-grid, .payouts {
  overflow-x: hidden;
}

/* Modal content - Ensure it fits */
.modal-content {
  max-width: 95vw;
  overflow-x: hidden;
  word-wrap: break-word;
}