/* MyAIInfluencer Custom Styles */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 3px; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}
.glow-accent {
  box-shadow: 0 0 40px rgba(217, 70, 239, 0.3);
}
.glow-sm {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  background: linear-gradient(#12121a, #12121a) padding-box,
              linear-gradient(135deg, #6366f1, #a855f7, #e879f9) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

/* Pulse animation for live indicators */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-ring 2s infinite;
}

/* Float animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-delay { animation: float 4s ease-in-out infinite 2s; }

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #1a1a2e 25%, #2d2d4e 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Avatar placeholder */
.avatar-gradient {
  background: linear-gradient(135deg, #6366f1, #a855f7, #e879f9);
}

/* Progress bar */
.progress-bar {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Tab active state */
.tab-active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
}

/* Frosted glass */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Tooltip */
.tooltip {
  position: relative;
}
.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  margin-bottom: 8px;
  border: 1px solid rgba(99,102,241,0.3);
  z-index: 50;
}

/* Stats counter */
.stat-value {
  font-variant-numeric: tabular-nums;
}

/* Mobile nav overlay */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1a1a2e;
  border-radius: 4px;
  height: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  cursor: pointer;
  border: 2px solid white;
}

/* Tag pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5bbfb;
}

/* Notification badge */
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e879f9;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Step connector */
.step-line {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  z-index: 0;
}

/* Grid pattern background */
.grid-bg {
  background-image: 
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Feature icon container */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(99,102,241,0.3);
  flex-shrink: 0;
}

/* Sidebar active */
.sidebar-active {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(168,85,247,0.15));
  border-right: 3px solid #6366f1;
  color: white;
}

/* Canvas workspace */
.canvas-workspace {
  background-image: 
    radial-gradient(circle at 20px 20px, rgba(99,102,241,0.1) 2px, transparent 0),
    radial-gradient(circle at 60px 60px, rgba(99,102,241,0.05) 2px, transparent 0);
  background-size: 80px 80px;
  background-color: #0a0a0f;
}

/* Drag handle */
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }

/* Color swatch */
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}
.color-swatch:hover, .color-swatch.selected {
  transform: scale(1.2);
  border-color: white;
}

/* Plan card popular badge */
.plan-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: white;
}

/* Accordion */
.accordion-content { display: none; }
.accordion-content.open { display: block; }

/* Section divider */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
  height: 1px;
  border: none;
}

/* Responsive table */
@media (max-width: 640px) {
  .table-responsive { font-size: 13px; }
  .table-responsive th, .table-responsive td { padding: 8px; }
}

/* Animation delays for stagger */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Fade in up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
