/* Astrology App — 06 Top AI-powered */

@keyframes cw-astrology-ai-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes cw-astrology-ai-dot {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.cw-astrology-ai {
  background: #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  border-top: 1px solid rgba(243, 239, 231, 0.08);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-astrology-ai__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cw-astrology-ai__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.cw-astrology-ai__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #b7a6f5;
}

.cw-astrology-ai__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-astrology-ai__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #b7a6f5;
}

.cw-astrology-ai__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.75);
}

.cw-astrology-ai__intro p {
  margin: 0;
}

.cw-astrology-ai__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.cw-astrology-ai__why {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-astrology-ai__why-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.03em;
}

.cw-astrology-ai__why-title-em {
  color: #b7a6f5;
}

.cw-astrology-ai__why-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(243, 239, 231, 0.12);
}

.cw-astrology-ai__why-item {
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 231, 0.12);
  background: transparent;
  color: #f3efe7;
  text-align: left;
  padding: 16px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  transition: background 0.2s;
  width: 100%;
  font: inherit;
}

.cw-astrology-ai__why-item.is-active {
  background: rgba(183, 166, 245, 0.1);
}

.cw-astrology-ai__why-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(243, 239, 231, 0.4);
  padding-top: 3px;
}

.cw-astrology-ai__why-item.is-active .cw-astrology-ai__why-no {
  color: #b7a6f5;
}

.cw-astrology-ai__why-item-title {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #f3efe7;
}

.cw-astrology-ai__why-item.is-active .cw-astrology-ai__why-item-title {
  color: #b7a6f5;
}

.cw-astrology-ai__why-desc {
  grid-column: 2;
  font-size: 14px;
  color: rgba(243, 239, 231, 0.65);
}

.cw-astrology-ai__why-item:focus-visible {
  outline: 2px solid #b7a6f5;
  outline-offset: 2px;
}

.cw-astrology-ai__chat-panel {
  border-radius: 28px;
  background: #1e1b18;
  border: 1px solid rgba(243, 239, 231, 0.1);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 440px;
}

.cw-astrology-ai__chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 239, 231, 0.08);
}

.cw-astrology-ai__chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #b7a6f5;
  color: #141210;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  flex: none;
}

.cw-astrology-ai__chat-name {
  font-weight: 700;
  font-size: 14.5px;
}

.cw-astrology-ai__chat-status {
  font-size: 12px;
  color: #7cf5c8;
}

.cw-astrology-ai__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: 300px;
  padding-right: 4px;
}

.cw-astrology-ai__bubble {
  max-width: 84%;
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.5;
  animation: cw-astrology-ai-in 0.3s ease both;
}

.cw-astrology-ai__bubble--bot {
  align-self: flex-start;
  background: rgba(243, 239, 231, 0.08);
  color: #f3efe7;
}

.cw-astrology-ai__bubble--user {
  align-self: flex-end;
  background: #b7a6f5;
  color: #141210;
}

.cw-astrology-ai__typing {
  align-self: flex-start;
  background: rgba(243, 239, 231, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 4px;
}

.cw-astrology-ai__typing[hidden] {
  display: none !important;
}

.cw-astrology-ai__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7a6f5;
  animation: cw-astrology-ai-dot 1s infinite;
}

.cw-astrology-ai__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.cw-astrology-ai__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.cw-astrology-ai__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-astrology-ai__prompt {
  border: 1px solid rgba(183, 166, 245, 0.4);
  background: transparent;
  color: #cfc4f6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.cw-astrology-ai__prompt:hover,
.cw-astrology-ai__prompt:focus-visible {
  background: #b7a6f5;
  color: #141210;
}

.cw-astrology-ai__prompt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
