/* /public/css/aicost-ask-avatarva-hero.css
   Hero "Ask AvatarVA" search component — for home-v4.ejs top.
   Scoped under .aav-hero. */

.aav-hero {
  background: transparent;
  border-bottom: 0;
  padding: 36px 16px 44px;
}

/* Compact mode — embedded inside another hero. No background, no border, tighter padding. */
.aav-hero-compact {
  background: transparent;
  border-bottom: 0;
  padding: 0 0 8px;
}
.aav-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.aav-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #00b894;
  background: rgba(44,122,79,.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.aav-hero-eyebrow-dot {
  width: 7px; height: 7px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(251,191,36,.6);
  animation: aav-pulse 2.2s infinite;
}
@keyframes aav-pulse {
  0% { box-shadow: 0 0 0 0 rgba(251,191,36,.55); }
  70% { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
}

.aav-hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  line-height: 1.18;
}
.aav-hero-sub {
  font-size: 15px;
  color: #6e6e73;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* Form / field */
.aav-hero-form { margin: 0; }
.aav-hero-field {
  position: relative;
  background: #fff;
  border: 2px solid #d2d2d7;
  border-radius: 16px;
  padding: 12px 12px 12px 16px;
  display: flex; align-items: flex-end; gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.aav-hero-field:focus-within {
  border-color: #00b894;
  box-shadow: 0 6px 22px rgba(44,122,79,.16);
}

.aav-hero-input {
  flex: 1;
  border: 0; outline: none;
  font-family: inherit;
  font-size: 16px;
  color: #1d1d1f;
  line-height: 1.5;
  resize: none;
  background: transparent;
  padding: 4px 0;
  min-height: 48px;       /* ≈ 2 lines */
  transition: opacity 0.2s ease;  /* for animated-placeholder fade */
}
.aav-hero-input::placeholder {
  color: #86868b;
  opacity: 1;
}

.aav-hero-submit {
  flex: 0 0 auto;
  background: #00b894;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.aav-hero-submit:hover:not(:disabled) {
  background: #008d71;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44,122,79,.32);
}
.aav-hero-submit:active:not(:disabled) { transform: translateY(0); }
.aav-hero-submit:disabled {
  background: #b0b0b5;
  cursor: not-allowed;
  opacity: .7;
}
.aav-hero-submit-arrow { font-size: 16px; }

.aav-hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.aav-hero-chip {
  background: #fff;
  border: 1px solid #d2d2d7;
  color: #424245;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.aav-hero-chip:hover {
  border-color: #00b894;
  color: #00b894;
  background: #f5fbf7;
}

/* Answer panel */
.aav-hero-answer {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  overflow: hidden;
  animation: aav-rise .25s cubic-bezier(.2,.7,.3,1);
  text-align: left;
}
.aav-hero-answer[hidden] { display: none; }
@keyframes aav-rise {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.aav-hero-answer-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 100%);
  border-bottom: 0;
}
.aav-hero-answer-icon { font-size: 18px; }
.aav-hero-answer-title {
  flex: 1;
  font-weight: 700; font-size: 14px; color: #1d1d1f;
}
.aav-hero-answer-close {
  background: none; border: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 20px; line-height: 1; color: #86868b;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.aav-hero-answer-close:hover { background: #d2d2d7; color: #1d1d1f; }
.aav-hero-answer-body {
  padding: 16px 20px;
  font-size: 14.5px; line-height: 1.6; color: #1d1d1f;
}
.aav-hero-answer-body p { margin: 0 0 12px; }
.aav-hero-answer-body p:last-child { margin-bottom: 0; }
.aav-hero-answer-body a {
  color: #00b894;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
  border-bottom: 1px solid rgba(44,122,79,.25);
  transition: border-color .15s, background .15s;
}
.aav-hero-answer-body a:hover {
  border-bottom-color: #00b894;
  background: rgba(44,122,79,.06);
}

/* Link cards rendered from response */
.aav-hero-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  margin: 8px 0;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.aav-hero-card:hover {
  border-color: #00b894;
  background: #f5fbf7;
  transform: translateX(2px);
}
.aav-hero-card-icon {
  font-size: 22px; line-height: 1;
  flex: 0 0 28px; padding-top: 2px;
}
.aav-hero-card-body { flex: 1; min-width: 0; }
.aav-hero-card-title {
  font-weight: 700; font-size: 14.5px;
  color: #1d1d1f;
  margin-bottom: 2px;
}
.aav-hero-card-desc {
  font-size: 13px; color: #6e6e73;
  line-height: 1.45;
}
.aav-hero-card-url {
  display: block;
  font-size: 11.5px; color: #00b894;
  margin-top: 4px;
  word-break: break-all;
}

.aav-hero-answer-followup {
  padding: 10px 20px 14px;
  font-size: 12.5px;
  color: #86868b;
  border-top: 1px solid #d2d2d7;
  background: #fbfbfd;
}
.aav-hero-answer-followup a {
  color: #00b894; font-weight: 700;
  text-decoration: none;
}
.aav-hero-answer-followup a:hover { text-decoration: underline; }

/* Loading state */
.aav-hero-answer-loading {
  display: flex; align-items: center; gap: 8px;
  color: #86868b;
  font-size: 13.5px;
}
.aav-hero-answer-loading-dots {
  display: inline-flex; gap: 4px;
}
.aav-hero-answer-loading-dots span {
  width: 6px; height: 6px;
  background: #a1a1a6; border-radius: 50%;
  animation: aav-bounce 1.3s infinite ease-in-out;
}
.aav-hero-answer-loading-dots span:nth-child(2) { animation-delay: .15s; }
.aav-hero-answer-loading-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes aav-bounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* Mobile */
@media (max-width: 600px) {
  .aav-hero { padding: 24px 12px 32px; }
  .aav-hero-title { font-size: 24px; }
  .aav-hero-sub { font-size: 14px; }
  .aav-hero-field { flex-direction: column; align-items: stretch; padding: 12px; }
  .aav-hero-submit { width: 100%; justify-content: center; }
  .aav-hero-input { font-size: 15px; min-height: 72px; }
  /* 2 chips per row instead of 4 stacked — halves vertical space */
  .aav-hero-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
  }
  .aav-hero-chip {
    padding: 6px 10px;
    font-size: 11.5px;
    line-height: 1.25;
  }
}
