/* LetErNordGal.com - Nordic Galactic Lore Global Styles */

/* ============================================================ */
/* CSS VARIABLES - NORDIC GALACTIC THEME */
/* ============================================================ */

:root {
  /* Nordic Galactic Colors */
  --galactic-blue: #0066ff;
  --cosmic-purple: #9d4edd;
  --stellar-turquoise: #00d4aa;
  --star-glow: #ffffff;
  --rune-silver: #c0c0c0;
  --void-black: #0a0a0a;
  --nebula-dark: #1a1a2e;
  --cosmic-mist: rgba(157, 78, 221, 0.1);
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Glow Effects */
  --blue-glow: 0 0 20px rgba(0, 102, 255, 0.5);
  --purple-glow: 0 0 20px rgba(157, 78, 221, 0.5);
  --turquoise-glow: 0 0 20px rgba(0, 212, 170, 0.5);
  --star-glow-effect: 0 0 30px rgba(255, 255, 255, 0.8);
  
  /* Spacing & Layout */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-galactic: 0 0 40px rgba(157, 78, 221, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typography */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-tooltip: 1100;
}

/* ============================================================ */
/* RESET & BASE STYLES */
/* ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--star-glow);
  background: linear-gradient(135deg, var(--void-black) 0%, var(--nebula-dark) 50%, var(--void-black) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cosmic Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  animation: cosmicPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* ============================================================ */
/* TYPOGRAPHY */
/* ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  text-shadow: var(--blue-glow);
}

h1 {
  font-size: 2.5rem;
  color: var(--galactic-blue);
  background: linear-gradient(135deg, var(--galactic-blue), var(--stellar-turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--cosmic-purple);
}

h3 {
  font-size: 1.5rem;
  color: var(--stellar-turquoise);
}

h4 {
  font-size: 1.25rem;
  color: var(--rune-silver);
}

p {
  margin-bottom: var(--space-md);
  color: var(--rune-silver);
}

a {
  color: var(--stellar-turquoise);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--galactic-blue);
  text-shadow: var(--turquoise-glow);
}

/* ============================================================ */
/* LAYOUT COMPONENTS */
/* ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-light {
  background: var(--cosmic-mist);
  backdrop-filter: blur(10px);
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: var(--space-2xl);
}

.mt-4 {
  margin-top: var(--space-2xl);
}

/* ============================================================ */
/* HEADER & NAVIGATION */
/* ============================================================ */

.header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-galactic);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--galactic-blue);
  text-shadow: var(--blue-glow);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-badge {
  background: var(--cosmic-purple);
  color: var(--star-glow);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  box-shadow: var(--purple-glow);
  animation: runeGlow 2s ease-in-out infinite;
}

@keyframes runeGlow {
  0%, 100% { box-shadow: var(--purple-glow); }
  50% { box-shadow: 0 0 30px rgba(157, 78, 221, 0.8); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  color: var(--rune-silver);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  background: var(--glass-bg);
  color: var(--stellar-turquoise);
  box-shadow: var(--turquoise-glow);
}

/* ============================================================ */
/* HERO SECTION */
/* ============================================================ */

.hero {
  background: linear-gradient(135deg, 
    rgba(0, 102, 255, 0.2) 0%, 
    rgba(157, 78, 221, 0.2) 50%, 
    rgba(0, 212, 170, 0.2) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 30%);
  animation: galacticShimmer 6s ease-in-out infinite;
}

@keyframes galacticShimmer {
  0%, 100% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  animation: stellarPulse 3s ease-in-out infinite;
}

@keyframes stellarPulse {
  0%, 100% { transform: scale(1); text-shadow: var(--blue-glow); }
  50% { transform: scale(1.02); text-shadow: var(--star-glow-effect); }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--rune-silver);
}

/* ============================================================ */
/* BUTTONS */
/* ============================================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--galactic-blue), var(--cosmic-purple));
  color: var(--star-glow);
  box-shadow: var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.6);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--stellar-turquoise);
  border: 2px solid var(--stellar-turquoise);
  box-shadow: var(--turquoise-glow);
}

.btn-secondary:hover {
  background: var(--stellar-turquoise);
  color: var(--void-black);
  transform: translateY(-2px);
}

/* ============================================================ */
/* CARDS & MODULES */
/* ============================================================ */

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-galactic);
  border-color: var(--cosmic-purple);
}

/* ============================================================ */
/* GAMES GRID */
/* ============================================================ */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.game-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 102, 255, 0.1) 0%, 
    rgba(157, 78, 221, 0.1) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-galactic);
  border-color: var(--galactic-blue);
}

.game-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-content {
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

.game-title {
  color: var(--galactic-blue);
  margin-bottom: var(--space-md);
}

.game-description {
  color: var(--rune-silver);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

/* ============================================================ */
/* AGE BADGE */
/* ============================================================ */

.age-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--cosmic-purple);
  color: var(--star-glow);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  box-shadow: var(--purple-glow);
  z-index: 2;
}

/* ============================================================ */
/* FOOTER */
/* ============================================================ */

.footer {
  background: var(--void-black);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--galactic-blue);
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li a {
  color: var(--rune-silver);
  transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
  color: var(--stellar-turquoise);
  text-shadow: var(--turquoise-glow);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-disclaimer {
  color: var(--rune-silver);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--cosmic-mist);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--cosmic-purple);
}

/* ============================================================ */
/* GAME WARNING */
/* ============================================================ */

.game-warning {
  background: linear-gradient(135deg, 
    rgba(157, 78, 221, 0.2), 
    rgba(0, 102, 255, 0.2));
  color: var(--star-glow);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: var(--font-weight-bold);
  margin: var(--space-xl) 0;
  border: 2px solid var(--cosmic-purple);
  box-shadow: var(--purple-glow);
  animation: warningPulse 3s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { box-shadow: var(--purple-glow); }
  50% { box-shadow: 0 0 40px rgba(157, 78, 221, 0.8); }
}

/* ============================================================ */
/* UTILITY CLASSES */
/* ============================================================ */

.galactic-shimmer {
  animation: galacticShimmer 4s ease-in-out infinite;
}

.rune-glow {
  animation: runeGlow 2s ease-in-out infinite;
}

.stellar-pulse {
  animation: stellarPulse 3s ease-in-out infinite;
}

.cosmic-float {
  animation: cosmicFloat 6s ease-in-out infinite;
}

@keyframes cosmicFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================ */

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 2rem;
    --space-2xl: 1.5rem;
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .game-image {
    height: 150px;
  }
  
  .nav-links {
    gap: var(--space-sm);
  }
  
  .nav-links a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
  }
}
