/* "Was this helpful?" page-feedback widget — docs.agencyg.de
 * Single horizontal bar at the bottom of every content page. */

.aai-feedback {
  margin: 64px auto 40px;
  max-width: 720px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.05), rgba(201, 162, 39, 0.015));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "Space Grotesk", "Inter", sans-serif;
}
.aai-feedback-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #f5f0e0);
  min-width: 200px;
}
.aai-feedback-title .em {
  color: #c9a227;
}
.aai-feedback-actions {
  display: flex;
  gap: 8px;
}
.aai-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(201, 162, 39, 0.05);
  color: rgba(245, 240, 224, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(.2, 1.2, .3, 1);
}
.aai-feedback-btn:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.45);
  color: #f5f0e0;
  transform: translateY(-1px);
}
.aai-feedback-btn:active { transform: scale(0.95); }
.aai-feedback-btn svg { width: 16px; height: 16px; }
.aai-feedback-btn.is-positive:hover { border-color: rgba(39, 201, 63, 0.6); color: #6fd47a; }
.aai-feedback-btn.is-negative:hover { border-color: rgba(255, 107, 95, 0.6); color: #ff8f85; }

/* Thank-you state replaces the whole bar */
.aai-feedback.is-submitted {
  background: linear-gradient(180deg, rgba(39, 201, 63, 0.06), rgba(39, 201, 63, 0.015));
  border-color: rgba(39, 201, 63, 0.3);
}
.aai-feedback.is-submitted-negative {
  background: linear-gradient(180deg, rgba(255, 189, 46, 0.05), rgba(255, 189, 46, 0.01));
  border-color: rgba(255, 189, 46, 0.3);
}
.aai-feedback-thanks {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text, #f5f0e0);
  font-size: 13.5px;
  flex: 1;
}
.aai-feedback.is-submitted .aai-feedback-thanks,
.aai-feedback.is-submitted-negative .aai-feedback-thanks {
  display: flex;
}
.aai-feedback.is-submitted .aai-feedback-title,
.aai-feedback.is-submitted .aai-feedback-actions,
.aai-feedback.is-submitted .aai-feedback-comment,
.aai-feedback.is-submitted-negative .aai-feedback-title,
.aai-feedback.is-submitted-negative .aai-feedback-actions,
.aai-feedback.is-submitted-negative .aai-feedback-comment {
  display: none;
}

/* Expand for a quick comment field when negative */
.aai-feedback-comment {
  display: none;
  width: 100%;
  margin-top: 6px;
  flex-direction: column;
  gap: 8px;
}
.aai-feedback.is-asking-negative .aai-feedback-comment {
  display: flex;
}
.aai-feedback-comment textarea {
  width: 100%;
  min-height: 60px;
  max-height: 140px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text, #f5f0e0);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.aai-feedback-comment textarea:focus {
  border-color: #c9a227;
}
.aai-feedback-comment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.aai-feedback-send {
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #ffe49a, #c9a227);
  color: #0a0800;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.15s;
}
.aai-feedback-send:hover { filter: brightness(1.1); transform: scale(1.03); }
.aai-feedback-send:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 560px) {
  .aai-feedback {
    padding: 16px;
    gap: 12px;
    margin: 48px 16px 32px;
  }
  .aai-feedback-title { min-width: 0; width: 100%; }
  .aai-feedback-actions { width: 100%; justify-content: flex-end; }
}
