/* ===== COIN DETAIL MODERN STYLES ===== */

/* Floating Action Button for Coin Detail */
.fab-coin {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab-coin:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

/* Quick Actions Menu */
.quick-actions-coin {
  position: fixed;
  bottom: 170px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.quick-actions-coin.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-action-btn-coin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .quick-action-btn-coin {
  background: #1f2937;
  color: #d1d5db;
  border-color: rgba(255, 255, 255, 0.1);
}

.quick-action-btn-coin:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Live Price Pulse Animation */
@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.live-price-pulse {
  animation: pricePulse 2s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text-coin {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Cards */
.glass-card-coin {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass-card-coin {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Social Share Buttons */
.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share-twitter {
  background: #1da1f2;
  color: white;
}

.social-share-telegram {
  background: #0088cc;
  color: white;
}

.social-share-copy {
  background: #10b981;
  color: white;
}

/* Price Alert Badge */
.price-alert-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Card Hover Effects */
.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Shimmer Loading Effect */
.shimmer-coin {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark .shimmer-coin {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .fab-coin {
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .quick-actions-coin {
    bottom: 150px;
    right: 16px;
  }
  
  .quick-action-btn-coin {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* Toast Container */
.toast-container-coin {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Progress Bars */
.progress-bar-coin {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill-coin {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill-coin::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glow Effects */
.glow-green {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Animated Border */
@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, #667eea, #764ba2, transparent);
  animation: borderRotate 3s linear infinite;
  z-index: -1;
  opacity: 0.5;
}
