/**
 * Generate with AI modal and its editor panel.
 *
 * The editor is not inside #daftplugAdmin, so these styles are hand written
 * rather than generated from Tailwind, and are namespaced instead of scoped.
 */

/* Standalone button injected at the top of the Post tab, above the summary. */
.generatify-generation-launcher {
  padding: 16px 16px 0;
}

.generatify-generation-launcher > .components-button {
  width: 100%;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  background: #155dfc;
  color: #fff;
  font-weight: 600;
}

.generatify-generation-launcher > .components-button:hover:not(:disabled) {
  background: #1247c9;
  color: #fff;
}

/**
 * One-click offer for whatever a written post is still missing, rendered at the
 * foot of the panel it fills in — the Tags, Categories and Featured image
 * panels. Separated from the control above it rather than boxed, so it reads as
 * part of that panel instead of a widget dropped into it.
 */
.generatify-suggestion {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.generatify-suggestion__action.components-button {
  width: 100%;
  justify-content: center;
}

.generatify-suggestion__hint {
  margin: 0 0 8px;
  color: #757575;
  font-size: 12px;
}

.generatify-suggestion__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.generatify-suggestion__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.generatify-suggestion__error {
  margin: 8px 0 0;
  color: #cc1818;
  font-size: 12px;
}

.generatify-generation-modal .components-modal__content {
  padding-bottom: 24px;
}

.generatify-generation-modal__section {
  margin-bottom: 24px;
}

.generatify-generation-modal__section:last-of-type {
  margin-bottom: 0;
}

.generatify-generation-modal__legend {
  margin: 0 0 10px;
  color: #757575;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.generatify-generation-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .generatify-generation-modal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The checkbox group reads as one control, so it gets a card of its own. */
.generatify-generation-modal__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.generatify-generation-modal__checks .components-base-control {
  margin-bottom: 0;
}

.generatify-generation-modal__checks .components-checkbox-control__label {
  line-height: 1.4;
}

.generatify-generation-modal__checks .components-base-control__help {
  margin: 4px 0 0 32px;
  font-size: 11px;
}

.generatify-generation-modal .components-notice {
  margin: 0 0 12px;
}

.generatify-generation-modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #757575;
  font-size: 12px;
}

.generatify-generation-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}
