/*!
 * AI Snippet SEO Helper — Admin Styles
 * Version: 1.0.12
 * Modern UI for metabox, editor & list table
 */

/* ========== METABOX WRAPPER ========== */
.aish-box {
  padding: 4px 0;
}

/* ========== GENERATE BUTTON ========== */
.aish-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, .25);
  text-shadow: none;
}
.aish-generate-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
  transform: translateY(-1px);
  color: #fff !important;
}
.aish-generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(37, 99, 235, .2);
}
.aish-generate-btn:disabled,
.aish-generate-btn[disabled] {
  opacity: .65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Done state */
.aish-generate-btn.button-secondary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(5, 150, 105, .25);
  border: none !important;
}
.aish-generate-btn.button-secondary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* ========== STATUS TEXT ========== */
.aish-status {
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

/* Prevent duplicate status in metabox */
#poststuff .inside .aish-status {
  display: none !important;
}

/* ========== SCORE BADGE (metabox + list) ========== */
.aish-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
  transition: all .2s ease;
}

/* Score box in side metabox */
#aish-score-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
#aish-score-box .aish-score-badge {
  display: inline-flex;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* ========== SERP PREVIEW BOX ========== */
.rank-math-metabox-group .aish-preview-box,
.aish-preview-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  margin-top: 14px;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.aish-preview-title {
  color: #1a0dab;
  font-size: 18px;
  margin: 0 0 4px;
  line-height: 1.3;
  font-weight: 400;
}
.aish-preview-url {
  color: #006621;
  font-size: 14px;
  margin: 0 0 4px;
  word-wrap: break-word;
}
.aish-preview-desc {
  color: #545454;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ========== FOCUS FIX ========== */
input[type="text"]:focus,
textarea:focus {
  outline: 2px solid #3b82f6 !important;
  outline-offset: -1px;
}

/* ========== LIST TABLE SCORE COLUMN ========== */
.column-aish_scorecol {
  width: 140px;
}
.column-aish_scorecol .aish-score-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========== ANIMATIONS ========== */
@keyframes aish-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.aish-generate-btn:disabled {
  animation: aish-pulse 1.5s ease-in-out infinite;
}
