/* ===================================================
   WatchTower.AI — Animação 1: ClaudIA em Ação
   Premium WhatsApp Pro Design
   =================================================== */

/* ===== SECTION WRAPPER ===== */
#claudia-demo {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#claudia-demo .section-bg-demo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 20% 50%, rgba(107,43,255,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 30%, rgba(46,139,255,0.07) 0%, transparent 65%);
}

#claudia-demo .section-divider-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107,43,255,0.3), transparent);
}

/* ===== LAYOUT ===== */
.claudia-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ===== LEFT COPY ===== */
.claudia-demo-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.claudia-demo-copy .section-title {
  text-align: left;
}

.claudia-demo-copy .section-subtitle {
  text-align: left;
}

.claudia-demo-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.claudia-demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.claudia-demo-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(107,43,255,0.25), rgba(46,139,255,0.15));
  border: 1px solid rgba(107,43,255,0.25);
  color: #8F5CFF;
}

.claudia-demo-feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.claudia-demo-feature-text span {
  font-size: 0.82rem;
  color: #8888AA;
  line-height: 1.5;
}

/* ===================================================
   PREMIUM PHONE MOCKUP — ClaudIA Chat
   =================================================== */

.claudia-chat-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glow behind phone */
.claudia-chat-mockup-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,43,255,0.25) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

/* Phone frame */
.claudia-chat-window {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 100%;
  background: #0D1117;
  border-radius: 36px;
  border: 1px solid transparent;
  background-clip: padding-box;
  outline: 1px solid rgba(107,43,255,0.35);
  outline-offset: 0;
  box-shadow:
    0 0 40px rgba(107,43,255,0.30),
    0 40px 90px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  height: 580px;
  display: flex;
  flex-direction: column;
}

/* ===== STATUS BAR ===== */
.claudia-status-bar {
  background: #0D1117;
  padding: 8px 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(107,43,255,0.12);
}

.claudia-status-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.claudia-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.claudia-status-icon {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0.85;
}

/* ===== CHAT HEADER ===== */
.claudia-chat-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 10px;
  background: #111827;
  border-bottom: 1px solid rgba(107,43,255,0.15);
  position: relative;
  flex-shrink: 0;
}

.claudia-avatar-lg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B2BFF, #2E8BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(107,43,255,0.55);
}

.claudia-chat-titlebar-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.claudia-chat-titlebar-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.claudia-chat-titlebar-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.claudia-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 6px rgba(37,211,102,0.8);
  animation: claudia-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes claudia-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(37,211,102,0.8); }
  50% { opacity: 0.7; box-shadow: 0 0 12px rgba(37,211,102,1); }
}

.claudia-chat-titlebar-status-text {
  font-size: 0.65rem;
  color: #25D366;
  font-weight: 500;
}

.claudia-chat-titlebar-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.claudia-chat-titlebar-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

/* ===== CHAT BODY ===== */
.claudia-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-behavior: smooth;
  background: #0D1117;
  position: relative;
}

/* Subtle dot grid wallpaper */
.claudia-chat-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(107,43,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.claudia-chat-body::-webkit-scrollbar {
  width: 0;
}

/* ===== TIMESTAMP CHIP ===== */
.claudia-timestamp {
  align-self: center;
  background: rgba(13,17,23,0.85);
  border: 1px solid rgba(107,43,255,0.18);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ===== MESSAGE ROWS ===== */
.claudia-msg {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(10px);
  animation: claudia-msg-in 0.35s ease forwards;
  position: relative;
  z-index: 1;
}

@keyframes claudia-msg-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* User messages — right */
.claudia-msg-user {
  flex-direction: row-reverse;
  align-items: flex-end;
}

.claudia-msg-user .claudia-bubble {
  background: linear-gradient(135deg, #6B2BFF, #2E8BFF);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 3px 14px rgba(107,43,255,0.35);
  position: relative;
}

/* Sent bubble tail (bottom-right) */
.claudia-msg-user .claudia-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5px;
  border-width: 0 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent #2E8BFF transparent;
}

/* Bot messages — left */
.claudia-msg-bot {
  flex-direction: row;
  align-items: flex-end;
}

.claudia-msg-bot .claudia-bubble {
  background: #1E2730;
  color: #E8EDF2;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(107,43,255,0.12);
  position: relative;
}

/* Received bubble tail (bottom-left) */
.claudia-msg-bot .claudia-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5px;
  border-width: 0 6px 6px 0;
  border-style: solid;
  border-color: transparent #1E2730 transparent transparent;
}

.claudia-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B2BFF, #2E8BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(107,43,255,0.4);
}

.claudia-bubble {
  max-width: 85%;
  padding: 8px 10px 6px;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ===== BUBBLE FOOTER (timestamp) ===== */
.claudia-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
}

.claudia-bubble-time {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.45);
}

.claudia-msg-bot .claudia-bubble-time {
  color: rgba(255,255,255,0.35);
}

.claudia-bubble-check {
  display: flex;
  align-items: center;
  color: #8FC4FF;
}

.claudia-bubble-check svg {
  width: 12px;
  height: 12px;
}

/* ===== DATA CARD INSIDE BUBBLE ===== */
.claudia-data-card {
  margin-top: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,43,255,0.22);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.claudia-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.claudia-data-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

.claudia-data-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.claudia-data-value-green { color: #4ADE80; }
.claudia-data-value-blue  { color: #60BFFF; }
.claudia-data-value-orange { color: #FF9A3C; }

/* Mini bar chart */
.claudia-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.claudia-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6B2BFF, #8F5CFF);
  opacity: 0;
  animation: claudia-bar-grow 0.5s ease forwards;
  transform-origin: bottom;
}

@keyframes claudia-bar-grow {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 1; transform: scaleY(1); }
}

/* ===== TYPING INDICATOR ===== */
.claudia-typing {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(8px);
  animation: claudia-msg-in 0.3s ease forwards;
  position: relative;
  z-index: 1;
}

.claudia-typing-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B2BFF, #2E8BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(107,43,255,0.4);
}

.claudia-typing-bubble {
  background: #1E2730;
  border: 1px solid rgba(107,43,255,0.12);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.claudia-typing-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5px;
  border-width: 0 6px 6px 0;
  border-style: solid;
  border-color: transparent #1E2730 transparent transparent;
}

.claudia-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: claudia-typing-bounce 1.2s ease infinite;
}

.claudia-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.claudia-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes claudia-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%  { transform: translateY(-5px); opacity: 1; }
}

/* ===== CHAT INPUT BAR ===== */
.claudia-chat-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111827;
  border-top: 1px solid rgba(107,43,255,0.15);
  flex-shrink: 0;
}

.claudia-input-mic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}

.claudia-input-mic svg {
  width: 16px;
  height: 16px;
}

.claudia-chat-inputfield {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,43,255,0.2);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 34px;
}

.claudia-input-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: #8F5CFF;
  margin-left: 1px;
  vertical-align: middle;
  animation: claudia-cursor-blink 0.8s step-end infinite;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.claudia-input-cursor.active {
  opacity: 1;
}

@keyframes claudia-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.claudia-input-text {
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 12px);
}

.claudia-chat-sendbtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6B2BFF, #2E8BFF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 0 14px rgba(107,43,255,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.claudia-chat-sendbtn.sending {
  animation: claudia-send-pop 0.3s ease;
}

@keyframes claudia-send-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .claudia-demo-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .claudia-chat-mockup-wrap {
    order: -1;
  }

  .claudia-chat-window {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .claudia-demo-copy .section-title,
  .claudia-demo-copy .section-subtitle {
    text-align: center;
  }

  .claudia-demo-copy {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .claudia-chat-window {
    max-width: 290px;
    height: 520px;
  }
}
