/* ============================================================================
   STARTUP DROPDOWN PROMO STYLES
   ============================================================================ */

/* Promo container - spans 2 columns */
.startup-dropdown-promo {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(67, 121, 255, 0.04) 0%,
    rgba(139, 92, 246, 0.04) 100%
  );
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(67, 121, 255, 0.1);
  min-height: 280px;
}

[data-theme="dark"] .startup-dropdown-promo {
  background: linear-gradient(
    135deg,
    rgba(67, 121, 255, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  border-color: rgba(67, 121, 255, 0.15);
}

[data-theme="creamy"] .startup-dropdown-promo {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.04) 0%,
    rgba(6, 182, 212, 0.04) 100%
  );
  border-color: rgba(14, 165, 233, 0.1);
}

/* Header */
.startup-promo-header {
  margin-bottom: 1rem;
}

.startup-promo-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary, #4379ff);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="creamy"] .startup-promo-title {
  color: #0ea5e9;
}

.startup-promo-title i {
  font-size: 0.75rem;
}

.startup-promo-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

/* ============================================================================
   RAINBOW GLOW BORDER ANIMATION
   ============================================================================ */
.startup-promo-rainbow-glow {
  display: block;
  padding: 2px;
  position: relative;
  border-radius: 12px;
  flex: 1;
  display: flex;
}

/* Outer glow effect */
.startup-promo-rainbow-glow::before {
  content: "";
  display: block;
  position: absolute;
  width: 200%;
  right: -50%;
  bottom: -50%;
  top: -50%;
  background-position: center center;
  background-image: conic-gradient(
    from 0deg at 50% 50%,
    transparent 50%,
    #fff845,
    #1cc98c,
    #24cbde,
    #57a9f7,
    #bd52f9,
    #ebb347
  );
  animation: startupRainbowGlowRotate 4s linear infinite;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

/* Card wrapper with rotating border */
.startup-promo-card-wrapper {
  padding: 2px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  flex: 1;
  display: flex;
}

/* Rotating rainbow border */
.startup-promo-card-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  width: 200%;
  right: -50%;
  bottom: -50%;
  top: -50%;
  background-position: center center;
  background-image: conic-gradient(
    from 0deg at 50% 50%,
    transparent 50%,
    #fff845,
    #1cc98c,
    #24cbde,
    #57a9f7,
    #bd52f9,
    #ebb347
  );
  animation: startupRainbowRotate 4s linear infinite;
}

/* Keyframes for rainbow rotation */
@keyframes startupRainbowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes startupRainbowGlowRotate {
  0% {
    transform: rotate(0deg) scale(0.3);
  }
  50% {
    transform: rotate(180deg) scale(0.3);
  }
  100% {
    transform: rotate(360deg) scale(0.3);
  }
}

/* Discount Card */
.startup-promo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card, #fff);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

[data-theme="dark"] .startup-promo-card {
  background: #1e293b;
}

[data-theme="creamy"] .startup-promo-card {
  background: #fffdfb;
}

/* Discount text container */
.startup-promo-discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

/* Animated gradient text for 50% */
.startup-promo-percent {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(
    90deg,
    var(--text-primary, #1e293b) 0%,
    var(--text-primary, #1e293b) 40%,
    #4379ff 45%,
    #8b5cf6 50%,
    #ec4899 55%,
    var(--text-primary, #1e293b) 60%,
    var(--text-primary, #1e293b) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: startup-promo-gradient-sweep 4s ease-in-out infinite;
}

[data-theme="dark"] .startup-promo-percent {
  background: linear-gradient(
    90deg,
    #f1f5f9 0%,
    #f1f5f9 40%,
    #60a5fa 45%,
    #a78bfa 50%,
    #f472b6 55%,
    #f1f5f9 60%,
    #f1f5f9 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="creamy"] .startup-promo-percent {
  background: linear-gradient(
    90deg,
    #1a1a1a 0%,
    #1a1a1a 40%,
    #0ea5e9 45%,
    #06b6d4 50%,
    #14b8a6 55%,
    #1a1a1a 60%,
    #1a1a1a 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gradient sweep animation - matches startup hero */
@keyframes startup-promo-gradient-sweep {
  0% {
    background-position: 100% 0;
  }
  30% {
    background-position: 0% 0;
  }
  50% {
    background-position: 0% 0;
  }
  80% {
    background-position: 100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* OFF text */
.startup-promo-off {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  letter-spacing: 0.15em;
  margin-top: 0.125rem;
}

/* Subtext */
.startup-promo-subtext {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 1rem;
}

/* CTA Button */
.startup-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-primary, #4379ff);
  color: #fff !important;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  width: 100%;
}

.startup-promo-btn:hover {
  background: var(--color-primary-dark, #2b5fe0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 121, 255, 0.35);
}

[data-theme="creamy"] .startup-promo-btn {
  background: #0ea5e9;
}

[data-theme="creamy"] .startup-promo-btn:hover {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.startup-promo-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.startup-promo-btn:hover i {
  transform: translateX(2px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .startup-promo-percent {
    animation: none;
    background: var(--color-primary, #4379ff);
    -webkit-background-clip: text;
    background-clip: text;
  }

  [data-theme="creamy"] .startup-promo-percent {
    background: #0ea5e9;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .startup-promo-rainbow-glow::before,
  .startup-promo-card-wrapper::before {
    animation: none;
  }
}

/* ============================================================================
   WORK CALLOUT PROMO STYLES
   ============================================================================ */

/* Callout container with image background */
.work-callout-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 260px;
  min-height: 200px;
  min-width: 260px;
  border-radius: 12px;
  margin-left: 1rem;
  overflow: hidden;
  background-color: #1e293b;
}

/* Background image */
.work-callout-promo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.work-callout-promo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient overlay for text readability */
.work-callout-promo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.7) 40%,
    rgba(15, 23, 42, 0.2) 70%,
    transparent 100%
  );
}

/* Chat bubble - "We are here to help" */
.work-callout-chat-bubble {
  position: absolute;
  top: 42px;
  right: 12px;
  z-index: 2;
  background: var(--bg-card, #fff);
  padding: 0.5rem 0.75rem;
  border-radius: 12px 12px 4px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 140px;
  animation: workBubbleFloat 3s ease-in-out infinite;
}

[data-theme="dark"] .work-callout-chat-bubble {
  background: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="creamy"] .work-callout-chat-bubble {
  background: #fffdfb;
}

.work-callout-chat-bubble-text {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

[data-theme="dark"] .work-callout-chat-bubble-text {
  color: #f1f5f9;
}

.work-callout-chat-bubble-text i {
  color: var(--color-primary, #4379ff);
  font-size: 0.75rem;
}

[data-theme="creamy"] .work-callout-chat-bubble-text i {
  color: #0ea5e9;
}

/* Floating animation for bubble */
@keyframes workBubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Content area */
.work-callout-promo-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Title */
.work-callout-promo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* Description */
.work-callout-promo-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

/* CTA Link with animated arrow */
.work-callout-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.work-callout-promo-cta:hover {
  color: var(--color-primary-light, #6b9aff);
}

[data-theme="creamy"] .work-callout-promo-cta:hover {
  color: #38bdf8;
}

/* Arrow icon with pulse animation */
.work-callout-promo-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  animation: workArrowPulse 1.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

/* Arrow pulse animation */
@keyframes workArrowPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* On hover, arrow moves further and stops pulsing */
.work-callout-promo-cta:hover .work-callout-promo-cta-arrow {
  animation: none;
  transform: translateX(6px);
}

/* Online indicator dot */
.work-callout-online-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
}

.work-callout-online-dot-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: workOnlinePulse 2s ease-in-out infinite;
}

@keyframes workOnlinePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

.work-callout-online-dot-text {
  font-size: 0.625rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .work-callout-chat-bubble {
    animation: none;
  }

  .work-callout-promo-cta-arrow {
    animation: none;
  }

  .work-callout-online-dot-indicator {
    animation: none;
  }
}
