/* Staking Tab Layout Fixes - Kawaii-Cyberpunk Edition */
/* Created by Cuserob - Visual Creation & Interface Design 🎨✨ */

/* ========================================
   STAKING CONTAINER FIXES
   ======================================== */

.staking-enhanced {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

/* Fix excessive spacing issues */
.staking-header {
  margin: 2rem auto 3rem;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.staking-header h1 {
  margin-bottom: 1rem;
}

/* ========================================
   ENERGY STATS PANEL FIXES
   ======================================== */

.energy-stats-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 3rem;
  max-width: 1200px;
  padding: 0 1rem;
}

.energy-metric {
  background: rgba(20, 0, 40, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.energy-metric:hover {
  border-color: #ff00ff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
}

/* ========================================
   PERSONAL ENERGY DASHBOARD FIXES
   ======================================== */

.personal-energy-dashboard {
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.wallet-status {
  background: rgba(30, 0, 60, 0.6);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  backdrop-filter: blur(10px);
}

/* Energy signature section - Fix spacing */
.energy-signature-section {
  margin: 2rem auto !important;
  padding: 2rem !important;
  background: rgba(30, 0, 60, 0.6);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  max-width: 800px;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* ========================================
   GRADIENT BAR FIXES
   ======================================== */

.gradient-bar,
.energy-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 1rem auto;
  overflow: hidden;
  max-width: 100%;
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border-radius: 10px;
  transition: width 0.6s ease;
  position: relative;
  box-shadow: 0 0 10px currentColor;
}

/* Rainbow gradient bar */
.energy-bar.rainbow .energy-fill {
  background: linear-gradient(90deg, 
    #ff0000, #ff7f00, #ffff00, #00ff00, 
    #0000ff, #4b0082, #9400d3);
  animation: rainbow-shift 3s linear infinite;
}

/* ========================================
   ENERGY POOLS GRID FIXES
   ======================================== */

.energy-pools-section {
  margin: 4rem auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.energy-pools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.energy-pool-card {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: relative;
  background: rgba(20, 0, 40, 0.9);
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* ========================================
   ENERGY CALCULATOR FIXES
   ======================================== */

.energy-calculator-section {
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.calculator-panel {
  background: rgba(40, 0, 80, 0.8);
  border: 2px solid #00ffff;
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.calculator-inputs {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ========================================
   FLOATING ELEMENTS POSITIONING
   ======================================== */

.floating-energy-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.kawaii-helpers {
  position: fixed;
  z-index: 100;
  pointer-events: none;
}

.helper {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
}

.helper-1 {
  top: 20%;
  right: 5%;
}

.helper-2 {
  top: 50%;
  left: 5%;
}

.helper-3 {
  bottom: 20%;
  right: 10%;
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */

@media (max-width: 768px) {
  .staking-enhanced {
    padding: 1rem 0.5rem;
  }
  
  .energy-stats-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .energy-pools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .calculator-results {
    grid-template-columns: 1fr;
  }
  
  .kawaii-helpers {
    display: none;
  }
}

@media (max-width: 480px) {
  .staking-header h1 {
    font-size: 1.8rem;
  }
  
  .energy-pool-card {
    padding: 1.5rem;
    min-height: 500px;
  }
  
  .calculator-panel {
    padding: 1.5rem;
  }
}

/* ========================================
   EDGE BROWSER SPECIFIC FIXES
   ======================================== */

@supports (-ms-ime-align: auto) {
  /* Fix Edge flexbox issues */
  .energy-stats-panel {
    display: -ms-grid;
    -ms-grid-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: repeat(4, 1fr);
  }
  
  .energy-pools-grid {
    display: -ms-grid;
    -ms-grid-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Fix Edge gradient rendering */
  .energy-fill,
  .gradient-bar {
    background-image: -ms-linear-gradient(left, #00ffff, #ff00ff);
  }
  
  /* Fix Edge backdrop filter */
  .wallet-status,
  .calculator-panel {
    background: rgba(30, 0, 60, 0.95);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes rainbow-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ========================================
   Z-INDEX MANAGEMENT
   ======================================== */

.staking-enhanced {
  position: relative;
  z-index: 1;
}

.energy-field-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.floating-energy-orbs {
  z-index: 0;
}

.staking-header {
  position: relative;
  z-index: 10;
}

.energy-stats-panel,
.personal-energy-dashboard,
.energy-pools-section,
.energy-calculator-section {
  position: relative;
  z-index: 10;
}

.energy-success-portal {
  position: fixed;
  z-index: 10000;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}