/**
 * About assistant chatbot — compact premium panel.
 */

.ar-about-chat {
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-about-chat__panel {
  max-width: 40rem;
  margin-inline: auto;
  border-radius: 1.15rem;
  border: 1px solid rgba(161, 34, 115, 0.22);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(161, 34, 115, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(8, 2, 18, 0.4);
  overflow: hidden;
}

.ar-about-chat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-about-chat__head-ico {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: #e8d48b;
  background: linear-gradient(145deg, rgba(161, 34, 115, 0.5), rgba(161, 34, 115, 0.7));
  border: 1px solid rgba(232, 212, 139, 0.35);
}

.ar-about-chat__head-ico .ar-about-ico {
  width: 1.25rem;
  height: 1.25rem;
  animation: ar-about-ico-pulse 2.4s ease-in-out infinite;
}

.ar-about-chat__head strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.ar-about-chat__head span {
  display: block;
  color: rgba(250, 249, 252, 0.55);
  font-size: 0.75rem;
}

.ar-about-chat__log {
  height: min(320px, 42vh);
  overflow-y: auto;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}

.ar-about-chat__row {
  display: flex;
}

.ar-about-chat__row--user {
  justify-content: flex-start;
}

.ar-about-chat__row--bot {
  justify-content: flex-end;
}

.ar-about-chat__bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.ar-about-chat__row--user .ar-about-chat__bubble {
  background: rgba(161, 34, 115, 0.28);
  border: 1px solid rgba(161, 34, 115, 0.4);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.ar-about-chat__row--bot .ar-about-chat__bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(250, 249, 252, 0.9);
  border-bottom-left-radius: 0.3rem;
}

.ar-about-chat__bubble--typing {
  opacity: 0.7;
  font-size: 0.82rem;
}

.ar-about-chat__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.05rem 0.75rem;
}

.ar-about-chat__chip {
  appearance: none;
  border: 1px solid rgba(161, 34, 115, 0.35);
  background: rgba(161, 34, 115, 0.25);
  color: #e8d48b;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ar-about-chat__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(161, 34, 115, 0.65);
  box-shadow: 0 0 14px rgba(161, 34, 115, 0.3);
}

.ar-about-chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.05rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-about-chat__form input {
  flex: 1;
  min-width: 0;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.ar-about-chat__form input:focus {
  outline: none;
  border-color: rgba(161, 34, 115, 0.55);
  box-shadow: 0 0 0 3px rgba(161, 34, 115, 0.18);
}

.ar-about-chat__form button {
  appearance: none;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a0a2e;
  background: linear-gradient(135deg, #e8d48b, #c9a227);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ar-about-chat__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(201, 162, 39, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .ar-about-chat__head-ico .ar-about-ico,
  .ar-about-chat__chip {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
