/* Enhanced Frok Champion Crypto Styles */

@import url('https://fonts.googleapis.com/css2?family=Impact&family=Comic+Neue:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

.font-impact {
  font-family: 'Impact', 'Arial Black', sans-serif !important;
  letter-spacing: 0.05em;
}

.font-comic {
  font-family: 'Comic Neue', cursive !important;
}

.font-mono {
  font-family: 'Roboto Mono', monospace !important;
}

/* Crypto-themed gradient text */
.text-gradient-crypto {
  background: linear-gradient(45deg, #F7931A, #627EEA, #FFD700, #10B981, #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: crypto-gradient 4s ease-in-out infinite;
}

@keyframes crypto-gradient {
  0%, 100% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg); }
  50% { filter: hue-rotate(180deg); }
  75% { filter: hue-rotate(270deg); }
}

.gradient-text {
  background: linear-gradient(45deg, #F7931A, #627EEA, #FFD700, #10B981, #EF4444, #dda0dd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
}

.animate-rainbow {
  animation: rainbow 3s ease-in-out infinite;
}

/* Floating animations for background particles */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(120deg);
  }
  66% {
    transform: translateY(5px) rotate(240deg);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(8px) rotate(-120deg);
  }
  66% {
    transform: translateY(-12px) rotate(-240deg);
  }
}

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

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

/* Pixel art rendering */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Custom bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-custom {
  animation: bounce 0.5s ease-in-out;
}

/* Crypto-themed glitch effect */
@keyframes crypto-glitch {
  0% { transform: translate(0); filter: hue-rotate(0deg); }
  10% { transform: translate(-2px, 2px); filter: hue-rotate(30deg); }
  20% { transform: translate(-2px, -2px); filter: hue-rotate(60deg); }
  30% { transform: translate(2px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -2px); filter: hue-rotate(120deg); }
  50% { transform: translate(-2px, 2px); filter: hue-rotate(150deg); }
  60% { transform: translate(-2px, -2px); filter: hue-rotate(180deg); }
  70% { transform: translate(2px, 2px); filter: hue-rotate(210deg); }
  80% { transform: translate(2px, -2px); filter: hue-rotate(240deg); }
  90% { transform: translate(-2px, 2px); filter: hue-rotate(270deg); }
  100% { transform: translate(0); filter: hue-rotate(360deg); }
}

.crypto-glitch {
  animation: crypto-glitch 0.5s ease-in-out;
}

/* Moon rocket effect */
@keyframes moon-rocket {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
  100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.moon-rocket {
  animation: moon-rocket 1s ease-out;
}

/* Diamond shine effect */
@keyframes diamond-shine {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.8; }
}

.diamond-shine {
  animation: diamond-shine 1.5s ease-in-out infinite;
}

/* Pump animation */
@keyframes pump {
  0% { transform: scale(1); color: #10B981; }
  50% { transform: scale(1.1); color: #34D399; }
  100% { transform: scale(1); color: #10B981; }
}

.pump {
  animation: pump 0.6s ease-in-out;
}

/* Dump animation */
@keyframes dump {
  0% { transform: scale(1); color: #EF4444; }
  50% { transform: scale(0.9); color: #F87171; }
  100% { transform: scale(1); color: #EF4444; }
}

.dump {
  animation: dump 0.6s ease-in-out;
}

/* Screen shake effect for dramatic moments */
@keyframes hodl-shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.hodl-shake {
  animation: hodl-shake 0.5s ease-in-out;
}

/* Custom scrollbar with crypto colors */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #F7931A, #627EEA);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #FF9500, #7B8CE8);
}

/* Enhanced button effects */
button {
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* Crypto card glow effects */
.card-glow:hover {
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.6);
}

.card-glow-eth:hover {
  box-shadow: 0 0 30px rgba(98, 126, 234, 0.6);
}

/* Meme text styling */
.meme-text {
  font-family: 'Impact', sans-serif;
  color: white;
  text-shadow: 
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    0 2px 0 #000,
    2px 0 0 #000,
    0 -2px 0 #000,
    -2px 0 0 #000;
  text-transform: uppercase;
  font-weight: bold;
}

/* Loading animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Price ticker animation */
@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-scroll {
  animation: ticker-scroll 30s linear infinite;
}

/* To the moon effect */
@keyframes to-the-moon {
  0% { 
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50px) rotate(180deg) scale(1.2);
    opacity: 0.8;
  }
  100% { 
    transform: translateY(-100px) rotate(360deg) scale(1.5);
    opacity: 0;
  }
}

.to-the-moon {
  animation: to-the-moon 2s ease-out forwards;
}

/* HODL effect */
@keyframes hodl-strength {
  0% { 
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% { 
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
  100% { 
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

.hodl-strength {
  animation: hodl-strength 1s ease-in-out infinite;
}

/* Responsive design helpers */
@media (max-width: 640px) {
  .text-gradient-crypto,
  .gradient-text {
    font-size: 2rem !important;
  }
  
  .font-impact {
    letter-spacing: 0.02em;
  }

  /* Smaller particles on mobile */
  .animate-float,
  .animate-float-delayed {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Stack crypto ticker vertically on tablets */
  .crypto-ticker {
    flex-direction: column;
    align-items: center;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-purple-700 {
    background-color: #000 !important;
    border: 2px solid #fff;
  }
  
  .text-white {
    color: #fff !important;
  }

  .text-gradient-crypto,
  .gradient-text {
    background: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
  }
}

/* Print styles */
@media print {
  .fixed,
  button,
  .animate-float,
  .animate-float-delayed {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Focus styles for accessibility */
button:focus,
button:focus-visible {
  outline: 2px solid #F7931A;
  outline-offset: 2px;
}

/* Custom selection colors */
::selection {
  background-color: rgba(247, 147, 26, 0.3);
  color: white;
}

::-moz-selection {
  background-color: rgba(247, 147, 26, 0.3);
  color: white;
}