@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Luckiest+Guy&display=swap');

:root {
  --color-forest-deep: #092215;
  --color-forest-dark: #04120b;
  --color-solana-gold: #facc15;
  --color-solana-purple: #9945FF;
  --color-solana-green: #14F195;
  --color-text-light: #f3f4f6;
  --font-fun: 'Luckiest Guy', cursive;
  --font-body: 'Fredoka', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-forest-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-solana-purple), var(--color-solana-green));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-solana-gold);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-forest-dark);
  color: var(--color-text-light);
  overflow-x: hidden;
}

.font-fun {
  font-family: var(--font-fun);
  letter-spacing: 0.05em;
}

/* Custom Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(153, 69, 255, 0.4), 0 0 5px rgba(20, 241, 149, 0.2); }
  50% { box-shadow: 0 0 25px rgba(153, 69, 255, 0.7), 0 0 15px rgba(20, 241, 149, 0.4); }
}

@keyframes text-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Helper Utility Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.text-gradient-solana {
  background: linear-gradient(90deg, #9945FF 0%, #14F195 50%, #facc15 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 4s linear infinite;
}

.text-gradient-gold {
  background: linear-gradient(90deg, #eab308 0%, #facc15 50%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism containers */
.glass-panel {
  background: rgba(4, 18, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-purple {
  background: rgba(153, 69, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(153, 69, 255, 0.2);
}

/* Interactive Card Hover effects */
.card-hover-trigger {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card-hover-trigger:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(20, 241, 149, 0.2);
  border-color: rgba(20, 241, 149, 0.4);
}

/* Custom Interactive Game Styling */
#game-canvas-container {
  position: relative;
  width: 100%;
  height: 450px;
  background: radial-gradient(circle, var(--color-forest-deep) 0%, var(--color-forest-dark) 100%);
  border: 3px solid #1e293b;
  overflow: hidden;
}

.game-minion {
  position: absolute;
  width: 60px;
  height: 60px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease;
  z-index: 10;
}

.game-minion:active {
  transform: scale(0.85);
}

.coin-particle {
  position: absolute;
  width: 25px;
  height: 25px;
  background-image: url('logo.png');
  background-size: cover;
  pointer-events: none;
  z-index: 20;
}

.damage-text {
  position: absolute;
  color: var(--color-solana-gold);
  font-family: var(--font-fun);
  font-size: 20px;
  pointer-events: none;
  z-index: 21;
  text-shadow: 2px 2px 0px #000;
  animation: damageFloat 0.8s cubic-bezier(0.25, 1, 0.50, 1) forwards;
}

@keyframes damageFloat {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-55px) scale(1.3); opacity: 0; }
}

/* Custom Wizard Cursor */
.custom-cursor-mode {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px;'><text y='24'>🪄</text></svg>"), auto;
}

/* Glowing text and buttons */
.btn-glow-solana {
  background: linear-gradient(135deg, var(--color-solana-purple) 0%, #7c2d12 100%);
  transition: all 0.3s ease;
}
.btn-glow-solana:hover {
  box-shadow: 0 0 20px rgba(153, 69, 255, 0.6);
  transform: translateY(-2px);
}

.btn-glow-gold {
  background: linear-gradient(135deg, var(--color-solana-gold) 0%, #b45309 100%);
  transition: all 0.3s ease;
}
.btn-glow-gold:hover {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
  transform: translateY(-2px);
}

/* Timeline Custom Styles */
.timeline-dot {
  box-shadow: 0 0 10px var(--color-solana-green);
}
.timeline-line {
  background: linear-gradient(180deg, var(--color-solana-green), var(--color-solana-purple));
}

/* Magic Forest Background Elements */
.bg-mesh-grid {
  background-image: radial-gradient(rgba(20, 241, 149, 0.08) 1px, transparent 0), radial-gradient(rgba(153, 69, 255, 0.08) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Whitepaper Scroll styling */
.scroll-container {
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 15px 35px rgba(0, 0, 0, 0.9);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
}

/* Smooth active tab indicator */
.tab-active {
  color: var(--color-solana-gold);
  border-bottom: 3px solid var(--color-solana-gold);
}
