/**
 * Messaging Section — Blade Styles
 * Works for: homepage/sections/messaging-section.php
 * Shared base styles are in: homepage/homepage-components.css
 */

/* MESSAGING SECTION - Subtle background tint */
.messaging-section {
  background: #fff;
}

/* MESSAGING SECTION - Label pill colour */
.messaging-section .fs-label {
  color: var(--color-primary);
  background: var(--color-primary-tint);
}

/* MESSAGING SECTION - Icon circle colour */
.messaging-section .fs-feature__icon {
  background: var(--color-primary);
}

/* MESSAGING SECTION - Visual card icon bg */
.messaging-section .fs-visual__icon {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

/* MESSAGING SECTION - Sent bubble colour
   Works for: .fs-bubble--out in messaging visual card */
.messaging-section .fs-bubble--out {
  background: var(--color-primary);
}

/* ── Messaging chat animation ────────────────────────────── */

/* Hidden state before appear */
.fs-bubble--hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
}

/* Appear animation trigger */
.fs-bubble--appear {
  animation: bubbleAppear 0.35s var(--ease-settle) forwards;
}

@keyframes bubbleAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typing indicator bubble — 3 dots */
.fs-bubble--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  min-width: 52px;
}

.fs-bubble--typing-in {
  background: var(--color-bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.fs-bubble--typing-out {
  background: var(--color-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.fs-bubble--typing span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: typingDot 1.1s ease-in-out infinite;
}

.fs-bubble--typing-in span { color: var(--color-text-body); }
.fs-bubble--typing-out span { color: rgba(255,255,255,0.8); }

.fs-bubble--typing span:nth-child(2) { animation-delay: 0.18s; }
.fs-bubble--typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%            { opacity: 1;    transform: translateY(-4px); }
}
