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

/* Custom cursor */
html, body {
  cursor: url('../image/mjolnir-cursor.svg') 16 16, 
         url('../image/mjolnir.svg') 16 16, 
         auto !important;
}

a, button, .cta-button, [role="button"] {
  cursor: url('../image/mjolnir-cursor.svg') 16 16, 
         url('../image/mjolnir.svg') 16 16, 
         pointer !important;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1a2a44 0%, #0d1b2a 100%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Add animated background effect with reduced impact */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 183, 235, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 183, 235, 0.12) 0%, transparent 50%);
  animation: stormyBackground 10s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
}

@keyframes stormyBackground {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography with system font fallback */
h1, h2, h3 {
  font-family: 'Special Elite', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  transform: translateZ(0);
  will-change: transform;
  animation: titlePulse 3s infinite alternate;
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 183, 235, 0.7), 0 0 30px rgba(0, 183, 235, 0.4);
  }
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #00b7eb;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin: 0;
  opacity: 0.9;
}

/* Header with fixed height */
header {
  padding-top: 2rem;
  margin-bottom: 1rem;
  height: auto;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 400px;
  padding-top: 10vh; /* Add top padding to push content down */
  z-index: 2; /* Add z-index to ensure proper stacking */
}

.thor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-color);
}

.thor-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Thor image animation */
@keyframes thorGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 183, 235, 0.5));
    transform: scale(1.02);
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.3));
    transform: scale(1);
  }
}

#thor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.5s ease;
  will-change: opacity;
  position: relative;
  z-index: 0;
  animation: thorGlow 5s infinite ease-in-out;
}

#thor-image:hover {
  filter: drop-shadow(0 0 25px rgba(0, 183, 235, 0.7));
}

#thor-image.loaded {
  opacity: 1;
}

/* Loading state */
.thor-container.loading {
  background: linear-gradient(45deg, #0d1b2a, #1a2a44);
}

.thor-container.loading::before {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
  font-size: 1.5rem;
  z-index: 1;
}

/* Error state */
.thor-container.error::before {
  content: 'Failed to load image';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--error-color);
  font-size: 1.5rem;
  z-index: 1;
}

/* Enhanced Lightning Flicker Animation */
.lightning-flicker {
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { 
    filter: brightness(100%) drop-shadow(0 0 15px rgba(0, 183, 235, 0.4));
  }
  50% { 
    filter: brightness(150%) drop-shadow(0 0 25px rgba(0, 183, 235, 0.8));
  }
}

/* Lightning Bolt Animation */
.lightning-bolt {
  position: absolute;
  transform-origin: center;
  will-change: transform, opacity;
  width: 6px !important;
  height: 120px !important;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.9),
    rgba(0, 183, 235, 0.8),
    rgba(0, 183, 235, 0.5)
  ) !important;
  box-shadow: 
    0 0 15px 5px rgba(0, 183, 235, 0.7),
    0 0 30px 10px rgba(0, 183, 235, 0.4) !important;
  border-radius: 3px !important;
  z-index: 10;
}

.lightning-bolt::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  filter: blur(3px);
  box-shadow: 0 0 20px 10px rgba(0, 183, 235, 0.8);
}

.lightning-bolt::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: rgba(0, 183, 235, 0.8);
  border-radius: 50%;
  filter: blur(3px);
  box-shadow: 0 0 15px 5px rgba(0, 183, 235, 0.6);
}

/* Flash overlay for lightning */
.flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}

.flash-overlay.active {
  opacity: 0.3;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.7),
    rgba(0, 183, 235, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Content panel styles */
#content-panel {
  background: rgba(13, 27, 42, 0.75);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 183, 235, 0.3);
  z-index: 4;
  max-width: 90%;
  width: 500px;
  text-align: center;
  margin: 0 auto 3rem;
  position: relative;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 183, 235, 0.2);
}

.panel-content {
  position: relative;
}

.token-info {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Footer */
footer {
  margin-top: auto;
  padding: 1.5rem 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(0, 183, 235, 0.2);
  background: linear-gradient(to top, rgba(26, 42, 68, 0.8), transparent);
  backdrop-filter: blur(5px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: #00b7eb;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 183, 235, 0.3);
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #00b7eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  color: white;
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

footer a {
  color: #00b7eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: white;
  text-shadow: 0 0 5px rgba(0, 183, 235, 0.5);
}

/* Responsive Design */
@media (max-width: 900px) {
  h1 {
    font-size: 2.5rem;
  }
  
  #thor-image {
    width: 100vw;
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  #thor-image {
    width: 100vw;
    height: 100vh;
  }
  
  .cta-button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
  
  #content-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  #thor-image {
    width: 100vw;
    height: 100vh;
  }
  
  #content-panel {
    padding: 1rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Enhanced Accessibility Focus Styles */
a:focus, button:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(0, 183, 235, 0.5),
    0 0 15px rgba(0, 183, 235, 0.8);
}

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

/* Preload state */
.thor-container.loading {
  background: linear-gradient(135deg, #1a2a44 0%, #0d1b2a 100%);
}

/* New CTA Button Styles */
.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #00b7eb, #1a2a44);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.2rem 2.5rem;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(0, 183, 235, 0.5);
  z-index: 5;
}

.lightning-icon {
  margin: 0 10px;
  color: #00b7eb;
  text-shadow: 0 0 10px rgba(0, 183, 235, 1);
  animation: pulseLightning 2s infinite;
}

@keyframes pulseLightning {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.cta-button:hover {
  background: linear-gradient(135deg, #0077cc, #00b7eb);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.7);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* CTA Section Styles */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(13, 27, 42, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  border: 1px solid rgba(0, 183, 235, 0.2);
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.2);
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #00b7eb, #0077cc);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
  animation: lightning 10s infinite;
  position: relative;
  overflow: hidden;
}

.cta-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.cta-button:hover:before {
  animation: shine 1.5s ease-in-out;
  opacity: 1;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

.social-links {
  margin-top: 1.5rem;
  text-align: center;
}

.social-links a {
  color: #00b7eb;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.8);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.powered-by {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #content-panel {
    margin-top: 20vh; /* Less margin on mobile */
  }
  
  .cta-section {
    margin-top: 2rem;
    padding: 1rem;
  }
}

/* Lightning effect for CTA button */
@keyframes lightning {
  0% {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  }
  5% {
    box-shadow: 0 0 30px rgba(0, 183, 235, 0.9);
  }
  10% {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  }
  15% {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
  }
  20% {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  }
}

/* Lightning background effect */
@keyframes backgroundLightning {
  0%, 100% {
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(0, 183, 235, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 183, 235, 0.05) 0%, transparent 50%);
  }
  48%, 52% {
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(0, 183, 235, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 183, 235, 0.05) 0%, transparent 50%);
  }
  50% {
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(0, 183, 235, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 183, 235, 0.2) 0%, transparent 50%);
  }
  75% {
    background-image: 
      radial-gradient(circle at 40% 60%, rgba(0, 183, 235, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 60% 40%, rgba(0, 183, 235, 0.1) 0%, transparent 50%);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  animation: backgroundLightning 10s infinite;
  opacity: 0.7;
}

/* Lightning overlay for Thor image */
.lightning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
  z-index: 1;
  opacity: 0;
}

@keyframes lightningFlash {
  0%, 100% {
    opacity: 0;
  }
  0.5% {
    opacity: 0.3;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8), transparent 70%);
  }
  0.7% {
    opacity: 0;
  }
  1% {
    opacity: 0.5;
    background: radial-gradient(circle at 40% 40%, rgba(0, 183, 235, 0.8), transparent 70%);
  }
  1.5% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  20.5% {
    opacity: 0.2;
    background: radial-gradient(circle at 60% 60%, rgba(0, 183, 235, 0.6), transparent 70%);
  }
  21% {
    opacity: 0;
  }
}

.thor-container:hover .lightning-overlay {
  animation: lightningFlash 8s infinite;
}

/* Token Stats Styles */
.token-stats {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(13, 27, 42, 0.6);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 183, 235, 0.2);
  box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
  backdrop-filter: blur(5px);
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.token-stats.refreshed {
  border-color: rgba(0, 183, 235, 0.8);
  box-shadow: 0 0 20px rgba(0, 183, 235, 0.5);
}

.stats-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #00b7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#refresh-stats {
  background: none;
  border: none;
  color: rgba(0, 183, 235, 0.7);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#refresh-stats:hover {
  color: #00b7eb;
  background: rgba(0, 183, 235, 0.1);
}

#refresh-stats.spinning svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 183, 235, 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.stat-value {
  color: #00b7eb;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(0, 183, 235, 0.3);
}

.positive-change {
  color: #4caf50;
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.negative-change {
  color: #f44336;
  text-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

@keyframes pulse-stats {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 183, 235, 0.4);
  }
}

.token-stats {
  animation: pulse-stats 4s infinite ease-in-out;
}

@media (max-width: 768px) {
  .token-stats {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  
  .stat-label, .stat-value {
    font-size: 0.9rem;
  }
  
  .stats-title {
    font-size: 1.1rem;
  }
}

.data-source {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 0.8rem;
  font-style: italic;
}

.last-updated {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 0.3rem;
}

.last-updated.warning {
  color: #ffc107;
  font-weight: bold;
}

.last-updated.error {
  color: #f44336;
  font-weight: bold;
}

.error-text {
  color: #ff4d4d;
  font-style: italic;
  text-shadow: 0 0 1px rgba(255, 77, 77, 0.3);
}

/* Fallback value styling */
.fallback-value {
  color: #ffa500; /* Orange color for fallback values */
  position: relative;
}

.fallback-value::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 165, 0, 0.5); /* Subtle underline */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #content-panel {
    margin-top: 20vh; /* Less margin on mobile */
  }
  
  .cta-section {
    margin-top: 2rem;
    padding: 1rem;
  }
} 