/* ============================================
   BETTOR LABS - Component Styles
   ============================================ */

/* --- ALGORITHM CARDS --- */
.algo-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(17, 17, 22, 0.9) 0%, rgba(17, 17, 22, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.algo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.algo-card[data-theme="rose"]:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 20px 40px -20px rgba(244, 63, 94, 0.2);
}

.algo-card[data-theme="emerald"]:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px -20px rgba(16, 185, 129, 0.2);
}

.algo-card[data-theme="primary"]:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.2);
}

.algo-card[data-theme="accent"]:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.2);
}

.algo-card[data-theme="amber"]:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.2);
}

.algo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.algo-card:hover .algo-icon {
  transform: scale(1.1);
}

/* --- SPOTLIGHT EFFECT --- */
.spotlight-effect {
  position: relative;
  overflow: hidden;
}

.spotlight-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-effect:hover::before {
  opacity: 1;
}

/* --- PRICING CARDS --- */
.pricing-card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(17, 17, 22, 0.9) 0%, rgba(17, 17, 22, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 17, 22, 0.9) 50%);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 60px -20px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 10;
}

.pricing-card.featured:hover {
  box-shadow: 0 0 80px -15px rgba(59, 130, 246, 0.5);
  border-color: rgba(59, 130, 246, 0.7);
}

/* --- PLAN CTA BUTTONS --- */
.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.plan-cta.outline {
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: white;
  background: transparent;
}

.plan-cta.outline:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.6);
}

.plan-cta.filled {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.plan-cta.filled:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* --- SOCIAL CARDS --- */
.social-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover {
  transform: translateY(-8px);
}

/* --- FLOATING CARDS --- */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card.delay-300 {
  animation-delay: 0.3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- CHART BARS --- */
.chart-bar {
  animation: chart-grow 0.6s ease-out forwards;
  transform-origin: bottom;
}

@keyframes chart-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* --- NAV LINK --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
