/* GEO AI Assistant ------------------------------------------------ */

.geo-ai-assistant {
  margin-bottom: 20px;
  overflow: hidden;
}

.geo-ai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.geo-ai-provider-status {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 11px;
  background: #f7fafb;
  border: 1px solid #dce6ea;
  border-radius: 10px;
}

.geo-ai-provider-status > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c79a42;
}

.geo-ai-provider-status.is-ready > span {
  background: #38a56b;
  box-shadow: 0 0 0 4px rgba(56, 165, 107, .1);
}

.geo-ai-provider-status strong,
.geo-ai-provider-status small {
  display: block;
}

.geo-ai-provider-status strong {
  color: #263f4c;
  font: 600 .62rem "Work Sans", sans-serif;
}

.geo-ai-provider-status small {
  margin-top: 2px;
  color: #87979e;
  font: 500 .52rem "Work Sans", sans-serif;
}

.geo-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.geo-ai-generate-all {
  margin-right: 4px;
}

.geo-ai-status {
  margin: 12px 0 0;
  color: #75878f;
  font: 400 .6rem/1.5 "Work Sans", sans-serif;
}

.geo-ai-assistant.has-error .geo-ai-status {
  color: #a94d4d;
}

.geo-ai-results {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e9ec;
}

.geo-ai-review-card {
  margin-bottom: 14px;
  padding: 14px 15px;
  color: #fff;
  background: linear-gradient(135deg, #032e4d, #054d7f);
  border-radius: 11px;
}

.geo-ai-review-card .admin-section-kicker {
  color: #71d1ed;
}

.geo-ai-review-card > p:last-child {
  margin: 5px 0 0;
  color: rgba(255,255,255,.8);
  font: 400 .64rem/1.6 "Work Sans", sans-serif;
}

.geo-ai-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.geo-ai-results-grid > section {
  min-width: 0;
  padding: 14px;
  background: #f8fafb;
  border: 1px solid #e0e8eb;
  border-radius: 10px;
}

.geo-ai-results-grid > section h3 {
  margin: 0 0 9px;
  color: #032e4d;
  font: 600 .7rem "Barlow", sans-serif;
}

.geo-ai-suggestion-card {
  margin-top: 7px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e9ec;
  border-radius: 8px;
}

.geo-ai-suggestion-card:first-child {
  margin-top: 0;
}

.geo-ai-suggestion-card strong,
.geo-ai-suggestion-card small,
.geo-ai-suggestion-card code,
.geo-ai-suggestion-card p {
  display: block;
  overflow-wrap: anywhere;
}

.geo-ai-suggestion-card strong {
  color: #263f4c;
  font: 600 .61rem/1.45 "Work Sans", sans-serif;
}

.geo-ai-suggestion-card p {
  margin: 4px 0 0;
  color: #687d86;
  font: 400 .57rem/1.5 "Work Sans", sans-serif;
}

.geo-ai-suggestion-card small {
  margin-top: 4px;
  color: #8b9aa0;
  font: 400 .52rem/1.45 "Work Sans", sans-serif;
}

.geo-ai-suggestion-card code {
  margin-top: 4px;
  color: #054d7f;
  background: #eef4f6;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: .52rem;
}

.geo-ai-empty {
  margin: 0;
  color: #94a1a6;
  font: 400 .56rem "Work Sans", sans-serif;
}

.geo-ai-field-updated {
  border-color: #4faaca !important;
  box-shadow: 0 0 0 3px rgba(4, 160, 221, .1) !important;
  transition: box-shadow .15s ease;
}

.geo-ai-config-warning code {
  font-weight: 600;
}

@media screen and (max-width: 900px) {
  .geo-ai-header {
    flex-direction: column;
  }

  .geo-ai-results-grid {
    grid-template-columns: 1fr;
  }
}
