/* Enhanced UI Styles - Sleek & Fun Design */

/* ===== GLASSMORPHISM CARDS ===== */
.token-card,
.nft-card,
.cnft-card {
  background: rgba(30, 30, 50, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
}

.token-card::before,
.nft-card::before,
.cnft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.05) 0%, 
    rgba(153, 69, 255, 0.05) 50%,
    rgba(20, 241, 149, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.token-card:hover::before,
.nft-card:hover::before,
.cnft-card:hover::before {
  opacity: 1;
}

.token-card:hover,
.nft-card:hover,
.cnft-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255, 107, 53, 0.5) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 107, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Card glow effect on hover */
.token-card::after,
.nft-card::after,
.cnft-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 107, 53, 0.1) 60deg,
    transparent 120deg
  );
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.token-card:hover::after,
.nft-card:hover::after,
.cnft-card:hover::after {
  animation: cardGlow 3s linear infinite;
  opacity: 1;
}

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

/* ===== ENHANCED BURN BUTTON ===== */
.burn-button {
  background: linear-gradient(135deg, #ff4d4d 0%, #ff6b35 50%, #ff8c42 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white !important;
  cursor: pointer;
  position: relative;
  overflow: visible !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 
    0 4px 15px rgba(255, 107, 53, 0.4),
    0 0 20px rgba(255, 107, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

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

.burn-button:hover::before {
  left: 100%;
}

.burn-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 
    0 8px 25px rgba(255, 107, 53, 0.5),
    0 0 40px rgba(255, 107, 53, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.burn-button:active:not(:disabled) {
  transform: translateY(-1px) scale(1.02) !important;
}

/* Fire particle effect on burn button */
.burn-button .fire-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffff00, #ff6600);
  pointer-events: none;
  animation: fireFloat 1s ease-out forwards;
}

@keyframes fireFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0);
  }
}

/* Pulsing glow animation for burn button */
@keyframes burnPulse {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(255, 107, 53, 0.4),
      0 0 20px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(255, 107, 53, 0.6),
      0 0 30px rgba(255, 107, 53, 0.4);
  }
}

.burn-button:not(:disabled) {
  animation: burnPulse 2s ease-in-out infinite;
}

/* ===== ENHANCED TOKEN/NFT IMAGES ===== */
.token-icon,
.nft-image,
.cnft-image {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border-radius: 12px;
}

.token-card:hover .token-icon,
.nft-card:hover .nft-image,
.cnft-card:hover .cnft-image {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.2);
}

/* ===== SHIMMER LOADING EFFECT ===== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== ENHANCED WALLET BUTTONS ===== */
.wallet-adapter-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wallet-adapter-button:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 
    0 8px 25px rgba(102, 126, 234, 0.4),
    0 0 30px rgba(102, 126, 234, 0.2) !important;
}

/* ===== SECTION HEADERS ===== */
.asset-section h3 {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
  position: relative;
  display: inline-block;
}

/* ===== ENHANCED TAB BUTTONS ===== */
.tab-button {
  background: transparent !important;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease !important;
  position: relative;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}

.tab-button:hover {
  color: #ff8c42;
}

.tab-button:hover::after {
  width: 80%;
}

.tab-button.active {
  color: #ff6b35 !important;
}

.tab-button.active::after {
  width: 100%;
  background: linear-gradient(90deg, #ff6b35, #14F195);
}

/* ===== MAX BUTTON ENHANCEMENT ===== */
.max-button {
  background: linear-gradient(135deg, #14F195 0%, #00d4aa 100%) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(20, 241, 149, 0.3);
}

.max-button:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 5px 15px rgba(20, 241, 149, 0.4) !important;
}

/* ===== BURN AMOUNT INPUT ===== */
.burn-amount-input {
  background: rgba(30, 30, 50, 0.8) !important;
  border: 2px solid rgba(255, 107, 53, 0.3) !important;
  border-radius: 10px !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
}

.burn-amount-input:focus {
  border-color: #ff6b35 !important;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2) !important;
  outline: none !important;
}

/* ===== FLOATING ANIMATION FOR LOGO ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.logo-container img,
.header img[src*="logo"] {
  animation: float 3s ease-in-out infinite;
}

/* ===== GRID ENHANCEMENTS ===== */
.tokens-grid,
.nfts-grid,
.cnfts-grid {
  gap: 24px !important;
}

/* ===== RENT ESTIMATE BADGE ===== */
.rent-estimate {
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.2), rgba(20, 241, 149, 0.1)) !important;
  border: 1px solid rgba(20, 241, 149, 0.3) !important;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #14F195;
  margin-top: 8px;
  display: inline-block;
}

/* ===== SUCCESS ANIMATION ===== */
@keyframes successPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.burn-success {
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== EMBER/FIRE CELEBRATION EFFECT ===== */
.celebration-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.ember {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffff00, #ff6600, #ff0000);
  animation: emberRise 2s ease-out forwards;
  box-shadow: 0 0 10px #ff6600, 0 0 20px #ff4400;
}

@keyframes emberRise {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.3) rotate(360deg);
  }
}

/* Confetti particles */
.confetti-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* ===== BODY BACKGROUND ENHANCEMENT ===== */
body {
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(153, 69, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 241, 149, 0.03) 0%, transparent 70%),
    #0d0d15 !important;
  min-height: 100vh;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35, #ff8c42);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8c42, #ff6b35);
}

/* ===== TOOLTIP STYLES ===== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* ===== SUCCESS TOAST ===== */
.success-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, rgba(20, 241, 149, 0.95), rgba(0, 180, 120, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 
    0 10px 40px rgba(20, 241, 149, 0.3),
    0 0 30px rgba(20, 241, 149, 0.2);
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-toast.show {
  transform: translateX(0);
}

.success-toast .toast-icon {
  font-size: 28px;
  animation: toastBounce 0.6s ease-out;
}

@keyframes toastBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.success-toast .toast-content {
  color: #0d1f17;
}

.success-toast .toast-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.success-toast .toast-sol {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 40, 20, 0.8);
}

/* ===== ENHANCED SOL COUNTER ===== */
.sol-counter-container {
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.15) 0%, 
    rgba(255, 140, 66, 0.1) 50%,
    rgba(255, 107, 53, 0.15) 100%) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 107, 53, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 8px 32px rgba(255, 107, 53, 0.2),
    0 0 40px rgba(255, 107, 53, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  animation: counterPulse 3s ease-in-out infinite !important;
}

@keyframes counterPulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(255, 107, 53, 0.2),
      0 0 40px rgba(255, 107, 53, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 40px rgba(255, 107, 53, 0.3),
      0 0 60px rgba(255, 107, 53, 0.2);
  }
}

.sol-counter-value {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffaa60) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  animation: valueGlow 2s ease-in-out infinite alternate !important;
}

@keyframes valueGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

.sol-counter-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 0.75rem !important;
}

.sol-counter-burns {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.7rem !important;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .token-card:hover,
  .nft-card:hover,
  .cnft-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
  }
  
  .burn-button {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
  
  .burn-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02) !important;
  }
  
  .success-toast {
    bottom: 100px;
    right: 16px;
    left: 16px;
    padding: 12px 16px;
  }
  
  .sol-counter-container {
    border-radius: 16px !important;
  }
  
  .sol-counter-value {
    font-size: 1.4rem !important;
  }
  
  .tokens-grid,
  .nfts-grid,
  .cnfts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    padding: 0 8px !important;
  }
  
  .wallet-adapter-button {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
  
  .asset-section {
    padding: 16px 8px !important;
  }
  
  .asset-section h3 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .tokens-grid,
  .nfts-grid,
  .cnfts-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .token-card,
  .nft-card,
  .cnft-card {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  
  .burn-button {
    padding: 8px 12px !important;
    font-size: 12px !important;
    width: 100% !important;
  }
  
  .success-toast {
    bottom: 90px;
    right: 12px;
    left: 12px;
    border-radius: 12px;
    padding: 10px 14px;
  }
  
  .success-toast .toast-title {
    font-size: 14px;
  }
  
  .success-toast .toast-sol {
    font-size: 12px;
  }
  
  .wallet-adapter-button {
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  
  .asset-section h3 {
    font-size: 1rem !important;
  }
  
  .rent-estimate {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ===== LEVEL INDICATOR MOBILE FIX ===== */
.level-indicator {
  z-index: 900 !important;
}

@media (max-width: 768px) {
  .level-indicator {
    max-width: 160px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  
  .level-label {
    font-size: 11px !important;
  }
  
  .level-progress {
    height: 5px !important;
    width: 80px !important;
  }
}

@media (max-width: 480px) {
  .level-indicator {
    max-width: 140px !important;
    padding: 6px 10px !important;
    bottom: 12px !important;
  }
  
  .level-label {
    font-size: 10px !important;
  }
  
  .level-progress {
    height: 4px !important;
    width: 70px !important;
  }
}

/* ===== WALLET ADAPTER MODAL FIXES ===== */
.wallet-adapter-modal-wrapper {
  z-index: 10000 !important;
}

/* Fix wallet buttons to fill full width - override inline-flex to flex */
.wallet-adapter-modal-list {
  width: 100% !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

.wallet-adapter-modal-list li {
  display: block !important;
  width: 100% !important;
}

.wallet-adapter-modal-list li > .wallet-adapter-button,
.wallet-adapter-modal-list li > button {
  display: flex !important;
  width: 100% !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Mobile override - wallet adapter uses two-column grid on mobile, override to single column */
@media screen and (max-width: 640px) {
  .wallet-adapter-modal-container .wallet-adapter-modal-list,
  .wallet-adapter-modal-list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
  
  .wallet-adapter-modal-container .wallet-adapter-modal-list > li,
  .wallet-adapter-modal-list > li {
    display: block !important;
    width: 100% !important;
  }
  
  .wallet-adapter-modal-container .wallet-adapter-modal-list > li > button.wallet-adapter-button,
  .wallet-adapter-modal-list > li > button.wallet-adapter-button,
  .wallet-adapter-modal-list li > .wallet-adapter-button,
  .wallet-adapter-modal-list li > button {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
}
