/**
 * VOLT Profit Calculator - Stylesheet
 * A standalone profit calculator with live price updates
 *
 * Author: @WonkaRed
 * Company: Pixel Labs (PixelLabs.Solutions)
 *
 * This calculator fetches live cryptocurrency price data and projects
 * potential gains at various market cap targets. Features include:
 * - Real-time price updates via DexScreener API
 * - Dollar amount or percentage ownership input modes
 * - Interactive sliders and input fields
 * - Responsive design for all devices
 * - Animated UI elements
 */

/* ========================================
   CSS Variables & Design System
   ======================================== */

:root {
  /* Primary Colors */
  --color-primary: #0066FF;
  --color-primary-light: #3399FF;
  --color-primary-dark: #0047B3;

  /* Accent Colors */
  --color-accent: #FFD700;
  --color-accent-glow: rgba(255, 215, 0, 0.5);

  /* Backgrounds */
  --color-bg-primary: #000000;
  --color-bg-secondary: #0A0A0A;
  --color-bg-card: rgba(10, 10, 10, 0.8);

  /* Text Colors */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #CCCCCC;

  /* Typography Scale */
  --font-size-xs: 0.618rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.618rem;
  --font-size-2xl: 2.618rem;
  --font-size-3xl: 4.236rem;
  --font-size-hero: clamp(2.5rem, 8vw, 6.854rem);

  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.382rem;
  --space-sm: 0.618rem;
  --space-md: 1rem;
  --space-lg: 1.618rem;
  --space-xl: 2.618rem;
  --space-2xl: 4.236rem;
  --space-3xl: 6.854rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 20px var(--color-primary);
  --glow-accent: 0 0 30px var(--color-accent);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow-x: hidden;
}

.electric-text {
  color: var(--color-accent);
  text-shadow: var(--glow-accent);
}

/* ========================================
   Header Styles
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: var(--shadow-lg);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--color-text-primary);
}

.logo img {
  filter: drop-shadow(var(--glow-primary));
}

.logo-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.social-icons a:hover {
  background: rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Calculator Hero Section
   ======================================== */

.calculator-hero {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 215, 0, 0.1));
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.calculator-hero::before {
  content: '⚡';
  position: absolute;
  font-size: 200px;
  opacity: 0.03;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* ========================================
   Calculator Container
   ======================================== */

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl);
  overflow-x: hidden;
}

/* ========================================
   Live Price Display
   ======================================== */

.live-price-display {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.live-price-display::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(0, 255, 0, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00FF00;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.price-value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  color: white;
  margin: var(--space-md) 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.price-details {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.price-detail {
  text-align: center;
}

.price-detail-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xs);
}

.price-detail-value {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: white;
}

/* ========================================
   Calculator Card
   ======================================== */

.calculator-card {
  background: var(--color-bg-secondary);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

/* Mode Toggle Buttons */
.mode-toggle {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.mode-btn {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-secondary);
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 5px 20px rgba(0, 102, 255, 0.4);
}

/* Input Groups */
.input-group {
  margin-bottom: var(--space-2xl);
}

.input-label {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: var(--space-md);
}

.input-wrapper {
  position: relative;
}

.calculator-input {
  width: 100%;
  padding: var(--space-lg);
  background: rgba(0, 102, 255, 0.05);
  border: 2px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  transition: all 0.3s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.input-prefix {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-accent);
  pointer-events: none;
}

.calculator-input.with-prefix {
  padding-left: calc(var(--space-lg) + 30px);
}

/* Sliders */
.slider-container {
  margin-top: var(--space-lg);
}

.calculator-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
  transition: all 0.3s ease;
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.6);
}

.calculator-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
  transition: all 0.3s ease;
}

.calculator-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.6);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Holdings Display */
.holdings-display {
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
}

.holdings-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.holdings-value {
  font-size: var(--font-size-2xl);
  font-weight: bold;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.holdings-emoji {
  font-size: 2rem;
  animation: bounce 0.6s ease-in-out;
}

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

/* ========================================
   Results Grid
   ======================================== */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.result-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(255, 215, 0, 0.1));
  border: 2px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s;
}

.result-card:hover::before {
  left: 100%;
}

.result-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.result-mc {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: var(--space-sm);
}

.result-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--color-accent);
  margin: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.result-multiplier {
  font-size: var(--font-size-base);
  color: #00FF00;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.result-emoji {
  font-size: 1.5rem;
}

/* ========================================
   Disclaimer
   ======================================== */

.disclaimer {
  background: rgba(255, 165, 0, 0.1);
  border: 2px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  text-align: center;
}

.disclaimer-title {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: #FFA500;
  margin-bottom: var(--space-sm);
}

.disclaimer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   Loading & Error States
   ======================================== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: #ff6b6b;
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ========================================
   Footer Styles
   ======================================== */

.footer {
  background: var(--color-bg-secondary);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  z-index: 0;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--color-bg-secondary));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  margin: var(--space-sm) 0;
  color: var(--color-primary-light);
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-column h4 {
  color: var(--color-primary-light);
  margin-bottom: var(--space-md);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-copyright {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */

@media (max-width: 768px) {
  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide desktop navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    padding: var(--space-3xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* Calculator responsive adjustments */
  .calculator-hero {
    padding: var(--space-2xl) 0;
    overflow-x: hidden;
  }

  .calculator-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 var(--space-md);
  }

  .calculator-container {
    padding: var(--space-lg);
    overflow-x: hidden;
  }

  .calculator-card h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 var(--space-sm);
  }

  .mode-toggle {
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .price-details {
    flex-direction: column;
    gap: var(--space-md);
  }

  .live-price-display {
    padding: var(--space-lg);
  }

  .holdings-display {
    padding: var(--space-md);
    overflow-x: hidden;
  }

  .holdings-value {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
    flex-wrap: wrap;
    gap: var(--space-xs);
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-all;
  }

  .holdings-emoji {
    font-size: 1.5rem;
  }

  .holdings-value span {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .calculator-hero h1 {
    font-size: 1.5rem !important;
  }

  .social-icons {
    display: none;
  }
}
