/* ====================================
   AURION GAMES STUDIO - MAIN STYLES
   Brand: Noir/Doré/Vert + Cyan accent
   ==================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --bg-primary: #0B0F14;
  --gold-primary: #D4AF37;
  --green-heroic: #27AE60;
  --cyan-electric: #00D1FF;
  --white-bluish: #E6F2F8;
  --gray-700: #4A5568;
  --gray-900: #1A202C;
  
  /* Additional Colors */
  --gold-light: #F4E68C;
  --gold-dark: #B8860B;
  --green-light: #48BB78;
  --green-dark: #1E8449;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Borders */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--white-bluish);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .background-animation {
    display: none !important;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-animation.interactive {
  pointer-events: auto;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

#bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-animation.interactive #bubbles-container {
  pointer-events: auto;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(212, 175, 55, 0.3), 
    rgba(39, 174, 96, 0.2), 
    rgba(0, 209, 255, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: bubbleFloat 8s infinite linear;
}

.bubble:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

@keyframes bubbleFloat {
  from {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10vh) scale(0);
  }
}

.energy-explosion {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(212, 175, 55, 0.8) 0%, 
    rgba(212, 175, 55, 0.4) 30%, 
    rgba(212, 175, 55, 0) 100%);
  pointer-events: none;
  animation: energyWave 1s ease-out forwards;
}

@keyframes energyWave {
  from {
    width: 0;
    height: 0;
    opacity: 1;
  }
  to {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

/* Accessibility Controls */
.accessibility-controls {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 100;
  display: flex;
  gap: var(--space-sm);
}

.btn-accessibility,
.btn-lang {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(26, 32, 44, 0.9);
  color: var(--white-bluish);
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.btn-accessibility:hover,
.btn-accessibility:focus,
.btn-lang:hover,
.btn-lang:focus {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  outline: none;
}

/* Typography */
.text-gradient {
  background: linear-gradient(135deg, var(--gold-primary), var(--green-heroic));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
  color: var(--gold-primary);
}

.section-intro {
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--gray-700);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--white-bluish);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  color: var(--gray-700);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid;
  border-radius: var(--border-radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.btn span {
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.btn small {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-primary);
  color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--green-heroic), var(--green-light));
  border-color: var(--green-heroic);
  color: var(--bg-primary);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--green-light), var(--green-heroic));
  box-shadow: 0 0 20px rgba(39, 174, 96, 0.3);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Sections */
section {
  padding: var(--space-2xl) 0;
}

/* Featured Games */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

/* Game Cards */
.game-card {
  background: linear-gradient(135deg, 
    rgba(26, 32, 44, 0.8), 
    rgba(74, 85, 104, 0.3));
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--green-heroic), var(--cyan-electric));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg);
}

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

.game-card--featured {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.game-card__content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gold-primary);
}

.game-card__content p {
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.status-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(39, 174, 96, 0.2);
  color: var(--green-heroic);
  border: 1px solid var(--green-heroic);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.game-card__visual {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.placeholder-visual {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.rpg-visual {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
}

.tcg-visual {
  background: linear-gradient(135deg, var(--green-heroic), var(--green-dark));
}

.rpg-visual::after {
  content: '⚔️';
}

.tcg-visual::after {
  content: '🃏';
}

/* Mini-games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.minigame-card {
  background: linear-gradient(135deg, 
    rgba(26, 32, 44, 0.6), 
    rgba(74, 85, 104, 0.2));
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.minigame-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-electric);
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.2);
}

.minigame-card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.minigame-card__content {
  padding: var(--space-lg);
}

.minigame-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--cyan-electric);
}

.minigame-card__description {
  color: var(--gray-700);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.minigame-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.minigame-card__tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.tag {
  padding: 2px var(--space-xs);
  background: rgba(0, 209, 255, 0.2);
  color: var(--cyan-electric);
  border-radius: 4px;
  font-size: 0.75rem;
}

.minigame-card__status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
}

.status-public {
  background: rgba(39, 174, 96, 0.2);
  color: var(--green-heroic);
}

.status-draft {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

/* About Section */
.about {
  text-align: center;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: rgba(26, 32, 44, 0.8);
  border-top: 1px solid var(--gray-700);
  padding: var(--space-xl) 0;
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand strong {
  color: var(--gold-primary);
  font-size: 1.125rem;
}

.footer-brand a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-brand a:hover {
  color: var(--cyan-electric);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--white-bluish);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }
  
  .accessibility-controls {
    top: var(--space-sm);
    right: var(--space-sm);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .game-card--featured {
    flex-direction: column;
    text-align: center;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    min-width: 100px;
    padding: var(--space-sm) var(--space-md);
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}