/* ==================== Chat 1-1 Feature Intro Promo ==================== */
/* Mirrors the Flutter FeatureIntroModal (anonymous mode):
   - Indigo gradient #191970 → #8B7BAB backdrop, Philosopher heading
   - Gold metallic title + auto-width pill CTA (no hover ripple)
   - Celestial sparkle decoration scattered behind content
   - Close X positioned slightly outside the card (clipping disabled). */

.chat-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: chatPromoFadeIn 0.3s ease;
}

.chat-promo-overlay.fade-out {
  animation: chatPromoFadeOut 0.2s ease forwards;
}

@keyframes chatPromoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chatPromoFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.chat-promo-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 24px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #191970 0%, #8B7BAB 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #FFFFFF;
  /* Allow the close button to overflow without being clipped, matching
     the Flutter Stack(clipBehavior: Clip.none) fix. */
  overflow: visible;
}

/* Close X — sits flush in the top-right corner of the gradient card. */
.chat-promo-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-promo-close:hover {
  color: #FFFFFF;
}

.chat-promo-close .material-icons-outlined {
  font-size: 22px;
  line-height: 1;
}

/* Ambient sparkle decorations. position: absolute relative to the card
   matches the 3 Positioned _Sparkle widgets in the Flutter version. */
.chat-promo-sparkle {
  position: absolute;
  color: #FAE7B5;
  pointer-events: none;
  display: inline-flex;
}

.chat-promo-sparkle .material-icons-outlined {
  line-height: 1;
}

.chat-promo-sparkle--s1 {
  top: 80px;
  left: 24px;
  opacity: 0.45;
}
.chat-promo-sparkle--s1 .material-icons-outlined { font-size: 12px; }

.chat-promo-sparkle--s2 {
  bottom: 110px;
  right: 20px;
  opacity: 0.55;
}
.chat-promo-sparkle--s2 .material-icons-outlined { font-size: 14px; }

.chat-promo-sparkle--s3 {
  bottom: 32px;
  right: 32px;
  opacity: 0.75;
}
.chat-promo-sparkle--s3 .material-icons-outlined { font-size: 18px; }

.chat-promo-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

/* Gold metallic title — gradient filled via background-clip: text.
   Mirrors the Flutter ShaderMask(blendMode: srcIn) gold gradient. */
.chat-promo-heading {
  font-family: 'Philosopher', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #FAE7B5 0%, #C89A3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 12px rgba(250, 231, 181, 0.4);
}

.chat-promo-body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.chat-promo-emphasis {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0 0 24px;
}

.chat-promo-emphasis b {
  font-weight: 700;
}

/* Gold gradient pill CTA — auto-width (inline-block), brightest in the
   middle for a metallic-coin look. No hover effect (matches the Flutter
   GestureDetector replacement of InkWell). */
.chat-promo-cta {
  display: inline-block;
  margin: 0 auto;
  padding: 8px 28px;
  background: linear-gradient(
    90deg,
    #C89A3E 0%,
    #FAE7B5 50%,
    #C89A3E 100%
  );
  color: #1A1A4D;
  border: none;
  border-radius: 28px;
  font-family: 'Philosopher', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(250, 231, 181, 0.35);
}

/* Explicitly disable hover state — no opacity flicker, no color shift. */
.chat-promo-cta:hover,
.chat-promo-cta:focus {
  background: linear-gradient(
    90deg,
    #C89A3E 0%,
    #FAE7B5 50%,
    #C89A3E 100%
  );
  color: #1A1A4D;
  outline: none;
}

.chat-promo-login {
  margin-top: 12px;
  padding: 4px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
}

.chat-promo-login b {
  font-weight: 700;
}

/* Mobile */
@media (max-width: 480px) {
  .chat-promo-overlay {
    padding: 16px;
  }
  .chat-promo-card {
    padding: 20px 20px 24px;
  }
  .chat-promo-heading {
    font-size: 24px;
  }
}
