/* ===== JAN.FV BASE STYLES ===== */
/* Gemeinsame Styles für alle Seiten */

:root {
  /* Dual Colors: Fortnite Blue + Minecraft Green */
  --color-bg-dark: #0a0d12;
  --color-fortnite-blue: #00d4ff;
  --color-fortnite-purple: #7b68ee;
  --color-minecraft-green: #5dba47;
  --color-minecraft-lime: #7fff00;
  --color-neon-cyan: #00ffff;
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg-dark);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== DUAL-COLOR ANIMATED BACKGROUND ===== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0, 212, 255, 0.15), transparent),
    radial-gradient(ellipse 80% 50% at 80% -20%, rgba(93, 186, 71, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(0, 212, 255, 0.08), transparent),
    linear-gradient(180deg, #0a0d12 0%, #0d1117 50%, #0a0d12 100%);
  animation: bgColorShift 10s ease-in-out infinite;
}

@keyframes bgColorShift {
  0%, 100% {
    background: 
      radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0, 212, 255, 0.2), transparent),
      radial-gradient(ellipse 80% 50% at 80% -20%, rgba(93, 186, 71, 0.1), transparent),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
      radial-gradient(ellipse 40% 30% at 0% 80%, rgba(0, 212, 255, 0.08), transparent),
      linear-gradient(180deg, #0a0d12 0%, #0d1117 50%, #0a0d12 100%);
  }
  50% {
    background: 
      radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0, 212, 255, 0.1), transparent),
      radial-gradient(ellipse 80% 50% at 80% -20%, rgba(93, 186, 71, 0.2), transparent),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
      radial-gradient(ellipse 40% 30% at 0% 80%, rgba(93, 186, 71, 0.08), transparent),
      linear-gradient(180deg, #0a0d12 0%, #0d1117 50%, #0a0d12 100%);
  }
}

/* Animated Grid-Lines (Cyberpunk Style) */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 186, 71, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== DUAL-COLOR FLOATING PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 8s ease-in-out infinite;
}

.particle.blue {
  background: var(--color-fortnite-blue);
  box-shadow: 0 0 6px var(--color-fortnite-blue);
}

.particle.green {
  background: var(--color-minecraft-green);
  box-shadow: 0 0 6px var(--color-minecraft-green);
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

/* ===== CURSOR GLOW - Dual Color ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), rgba(93, 186, 71, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ===== DUAL-COLOR NEON BUTTONS ===== */
.neon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(93, 186, 71, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.5);
  border-radius: 16px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.neon-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-fortnite-blue), var(--color-minecraft-green));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.neon-button:hover {
  border-color: var(--color-fortnite-blue);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(93, 186, 71, 0.2),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

.neon-button:hover::before {
  opacity: 0.15;
}

/* Shine effect on hover */
.neon-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.neon-button:hover::after {
  left: 100%;
}

.neon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Discord Button */
.neon-button-discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.05));
  border-color: rgba(88, 101, 242, 0.5);
}

.neon-button-discord:hover {
  border-color: #5865F2;
  box-shadow: 
    0 0 20px rgba(88, 101, 242, 0.4),
    0 0 40px rgba(88, 101, 242, 0.2),
    inset 0 0 20px rgba(88, 101, 242, 0.1);
}

/* Twitch Button */
.neon-button-twitch {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.2), rgba(145, 70, 255, 0.05));
  border-color: rgba(145, 70, 255, 0.5);
}

.neon-button-twitch:hover {
  border-color: #9146ff;
  box-shadow: 
    0 0 20px rgba(145, 70, 255, 0.4),
    0 0 40px rgba(145, 70, 255, 0.2),
    inset 0 0 20px rgba(145, 70, 255, 0.1);
}

/* Donate Button */
.neon-button-donate {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 215, 0, 0.1));
  border-color: rgba(255, 107, 107, 0.5);
}

.neon-button-donate:hover {
  border-color: #ff6b6b;
  box-shadow: 
    0 0 20px rgba(255, 107, 107, 0.4),
    0 0 40px rgba(255, 215, 0, 0.2),
    inset 0 0 20px rgba(255, 107, 107, 0.1);
}

/* ===== ENTRANCE ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }
.fade-in-up:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
  .glass-card {
    padding: 24px;
    margin: 0 16px;
  }
  
  .neon-button {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
