/*
 * Live Activity & Social Proof Styles
 * Creates engaging and trustworthy user experience
 */

/* ======================
   LIVE ACTIVITY PANEL
====================== */

.live-activity-panel {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 320px;
  transition: top 0.3s ease;
}

/* When header is sticky, move panel down */
body.header-sticky .live-activity-panel {
  top: 100px;
}

/* Smooth transition */
.live-activity-panel > * {
  pointer-events: auto;
}

/* Online Users Widget */
.activity-widget.online-users {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: slideInRight 0.6s ease-out;
  transition: all 0.3s ease;
}

.activity-widget .widget-icon {
  position: relative;
  font-size: 32px;
}

.activity-widget .pulse-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #4ade80;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulseDotSmooth 2s ease-in-out infinite;
}

@keyframes pulseDotSmooth {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.widget-content {
  display: flex;
  flex-direction: column;
}

.widget-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.widget-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recent Signups Widget */
.activity-widget.recent-signups {
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: 350px;
  overflow: hidden;
  animation: slideInRight 0.6s ease-out 0.2s backwards;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 14px;
}

.widget-header i {
  color: #28a745;
  font-size: 16px;
}

.signup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.signup-item:hover {
  background: #e9ecef;
  transform: translateX(-5px);
}

.signup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff2c6d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.signup-info {
  flex: 1;
  min-width: 0;
}

.signup-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signup-location {
  font-size: 11px;
  color: #6c757d;
  margin-top: 2px;
}

.signup-location i {
  color: #ff6b35;
}

.signup-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

/* Live Notifications */
.live-notifications {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.live-notification {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
}

.notification-time {
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
}

.notification-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f8f9fa;
  color: #1a1a1a;
}

/* ======================
   FLOATING STATS BAR
====================== */

.floating-stats-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 50px;
  padding: 15px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 40px;
  z-index: 998;
  animation: slideInUp 0.6s ease-out 0.5s backwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-item i {
  font-size: 24px;
  color: #ff6b35;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: #6c757d;
  text-align: center;
  white-space: nowrap;
}

.stat-item.pulse-once {
  animation: pulse 0.5s ease-in-out;
}

/* ======================
   WHATSAPP BUTTON
====================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out, pulse 3s ease-in-out infinite;
}

.whatsapp-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-button i {
  font-size: 28px;
  animation: wiggle 2s ease-in-out infinite;
}

.whatsapp-text {
  font-weight: 600;
  font-size: 14px;
}

.whatsapp-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #4ade80;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  border: 2px solid white;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ======================
   DEMO BUTTON FLOAT
====================== */

.demo-button-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff2c6d 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out 0.3s backwards;
  z-index: 1000;
}

.demo-button-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
  color: white;
}

.demo-button-float i {
  font-size: 24px;
}

.demo-button-float span:first-of-type {
  font-weight: 600;
  font-size: 14px;
}

.demo-badge {
  background: #ffc107;
  color: #1a1a1a;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

/* ======================
   TRUST BADGES
====================== */

.trust-badges-float {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 997;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideInLeft 0.6s ease-out 0.7s backwards;
}

.trust-badge {
  background: white;
  padding: 10px 15px;
  border-radius: 25px;
  border: 2px solid;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.trust-badge i {
  font-size: 16px;
}

/* ======================
   URGENCY BANNER
====================== */

.urgency-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #1a1a1a;
  padding: 12px 20px;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.urgency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.urgency-content i {
  font-size: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.urgency-text {
  font-size: 14px;
  line-height: 1.4;
}

.urgency-text strong {
  font-weight: 700;
}

.urgency-countdown {
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
}

.urgency-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.urgency-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) rotate(90deg);
}

/* ======================
   CUSTOM CURSOR
====================== */

.custom-cursor,
.custom-cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.custom-cursor {
  width: 10px;
  height: 10px;
  background: #ff6b35;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid #ff6b35;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.custom-cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(1.5);
}

.custom-cursor-follower.cursor-hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(255, 107, 53, 0.1);
}

/* ======================
   ANIMATIONS
====================== */

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 1024px) {
  .live-activity-panel {
    right: 10px;
    max-width: 280px;
  }
  
  .trust-badges-float {
    display: none;
  }
  
  .custom-cursor,
  .custom-cursor-follower {
    display: none;
  }
}

@media (max-width: 768px) {
  .live-activity-panel {
    display: none;
  }
  
  .floating-stats-bar {
    display: none;
  }
  
  .demo-button-float {
    left: 10px;
    bottom: 90px;
    padding: 12px 20px;
    font-size: 12px;
  }
  
  .demo-button-float i {
    font-size: 20px;
  }
  
  .whatsapp-button {
    padding: 12px 20px;
  }
  
  .whatsapp-text {
    display: none;
  }
  
  .live-notifications {
    max-width: calc(100% - 40px);
    right: 10px;
    bottom: 90px;
  }
  
  .urgency-content {
    font-size: 12px;
    gap: 10px;
  }
  
  .urgency-content i {
    display: none;
  }
}

@media (max-width: 480px) {
  .urgency-text {
    font-size: 11px;
  }
  
  .urgency-countdown {
    font-size: 11px;
    padding: 4px 10px;
  }
}
