/* Aurora Casino - Northern Lights Theme */

/* CSS Custom Properties */
:root {
  /* Northern Lights Color Palette */
  --aurora-dark-blue: #1e1b4b;
  --aurora-royal-blue: #3730a3;
  --aurora-bright-blue: #2563eb;
  --aurora-emerald: #059669;
  --aurora-mint: #34d399;
  --aurora-purple: #7c3aed;
  --aurora-magenta: #d946ef;
  --aurora-soft-green: #6ee7b7;

  /* Gradients */
  --aurora-primary: linear-gradient(135deg, var(--aurora-dark-blue), var(--aurora-royal-blue), var(--aurora-emerald), var(--aurora-purple));
  --aurora-secondary: linear-gradient(45deg, var(--aurora-bright-blue), var(--aurora-mint), var(--aurora-magenta));
  --aurora-shimmer: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-accent: #fbbf24;
  --text-muted: #94a3b8;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 4rem 2rem;
  --card-padding: 2rem;

  /* Shadows and Effects */
  --aurora-glow: 0 0 30px rgba(52, 211, 153, 0.3);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--aurora-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Aurora Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--aurora-primary);
  z-index: -2;
  animation: auroraShift 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: auroraFloat 30s ease-in-out infinite;
}

@keyframes auroraShift {
  0%, 100% {
    background: linear-gradient(135deg, var(--aurora-dark-blue), var(--aurora-royal-blue), var(--aurora-emerald), var(--aurora-purple));
  }
  50% {
    background: linear-gradient(135deg, var(--aurora-purple), var(--aurora-emerald), var(--aurora-royal-blue), var(--aurora-dark-blue));
  }
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
  50% { transform: translate(-5%, -15%) rotate(1deg); }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--aurora-shimmer);
  animation: shimmer 3s ease-in-out infinite;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(45deg, var(--text-primary), var(--aurora-mint), var(--aurora-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--aurora-mint);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-secondary);
}

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

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 27, 75, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.3);
  z-index: 1000;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--aurora-mint), var(--aurora-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--aurora-mint);
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aurora-mint);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Age Restriction Badge */
.age-restriction {
  background: linear-gradient(45deg, #dc2626, #ef4444);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #fca5a5;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--aurora-mint);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Main Content */
.main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

/* Cards */
.card {
  background: rgba(30, 27, 75, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--aurora-glow), var(--card-shadow);
  border-color: rgba(52, 211, 153, 0.6);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-mint), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--aurora-emerald), var(--aurora-mint));
  color: var(--aurora-dark-blue);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 211, 153, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--aurora-shimmer);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(45deg, var(--aurora-purple), var(--aurora-magenta));
  color: var(--text-primary);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.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));
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.game-card {
  background: rgba(30, 27, 75, 0.9);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--aurora-mint);
  box-shadow: var(--aurora-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card .game-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, var(--aurora-royal-blue), var(--aurora-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.game-card .game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--aurora-shimmer);
  animation: shimmer 4s ease-in-out infinite;
}

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

.game-card h3 {
  color: var(--aurora-mint);
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: rgba(30, 27, 75, 0.95);
  border-top: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--aurora-mint);
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--aurora-mint);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--text-muted);
}

/* Game Page Iframe */
.game-iframe-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--aurora-glow), var(--card-shadow);
  border: 2px solid rgba(52, 211, 153, 0.3);
}

.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
    --card-padding: 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(30, 27, 75, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(52, 211, 153, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-iframe {
    height: 400px;
  }

  .age-restriction {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

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

  .nav {
    padding: 0 1rem;
  }

  .game-iframe {
    height: 350px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.opacity-80 { opacity: 0.8; }
.opacity-60 { opacity: 0.6; }

/* Loading Animation */
.loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  border-top-color: var(--aurora-mint);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
