/* LLMs.txt Generator – Admin Styles */

.llmstxt-wrap { max-width: 1100px; }

/* Header */
.llmstxt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 24px;
}
.llmstxt-header__logo svg { display: block; }
.llmstxt-header__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.llmstxt-header__sub { margin: 2px 0 0; color: #666; font-size: .9rem; }
.llmstxt-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.llmstxt-badge--pro  { background: linear-gradient(135deg,#1e3a5f,#2563eb); color: #fff; }
.llmstxt-badge--free { background: #f0f0f1; color: #2271b1; border: 1px solid #c3c4c7; }
.llmstxt-badge--free:hover { background: #2271b1; color: #fff; }

/* Layout */
.llmstxt-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .llmstxt-layout { grid-template-columns: 1fr; }
}

/* Card */
.llmstxt-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.llmstxt-card h2 { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid #f0f0f1; font-size: 1rem; }
.llmstxt-card h3 { margin-top: 0; font-size: .9rem; color: #1d2327; }
.llmstxt-card--pro  { border-color: #2563eb; background: #eff6ff; }
.llmstxt-card--upsell { border-color: #d97706; background: #fffbeb; }

/* Status */
.llmstxt-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.llmstxt-status__indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.llmstxt-status__indicator--ok   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.llmstxt-status__indicator--warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.llmstxt-status__info strong { display: block; }
.llmstxt-status__meta { font-size: .82rem; color: #666; }

/* Actions */
.llmstxt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.llmstxt-msg {
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 4px;
}
.llmstxt-msg--success { background: #dcfce7; color: #166534; }
.llmstxt-msg--error   { background: #fee2e2; color: #991b1b; }

/* Preview */
.llmstxt-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1d2327;
  color: #fff;
  border-radius: 4px 4px 0 0;
  font-size: .82rem;
  margin-top: 16px;
}
.llmstxt-preview-bar .button-link { color: #9aa0aa; }
.llmstxt-preview-bar .button-link:hover { color: #fff; }
.llmstxt-preview {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .78rem;
  line-height: 1.6;
  padding: 16px;
  margin: 0;
  border-radius: 0 0 4px 4px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Fields */
.llmstxt-hr { border: none; border-top: 1px solid #f0f0f1; margin: 20px 0; }
.llmstxt-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .85rem; }
.llmstxt-field-group { margin-bottom: 16px; }
.llmstxt-key-row { display: flex; gap: 8px; align-items: center; }
.llmstxt-key-status { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; }

/* Radio group */
.llmstxt-radio-group { display: flex; flex-direction: column; gap: 8px; }
.llmstxt-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.llmstxt-radio input { margin-top: 2px; flex-shrink: 0; }
.llmstxt-radio--active { border-color: #2271b1; background: #f0f6fc; }
.llmstxt-radio__label { display: flex; flex-direction: column; }
.llmstxt-radio__label strong { font-size: .9rem; }
.llmstxt-radio__label small { color: #666; font-size: .8rem; margin-top: 2px; }

/* Checkboxes */
.llmstxt-checkboxes { display: flex; flex-direction: column; gap: 10px; }
.llmstxt-checkboxes label { display: flex; align-items: baseline; gap: 8px; cursor: pointer; font-size: .85rem; }
.llmstxt-sub-field { margin-left: 4px; color: #666; font-size: .82rem; }
.llmstxt-sub-field input { margin-left: 4px; }

/* Upsell */
.llmstxt-feature-list { margin: 10px 0; padding: 0; list-style: none; }
.llmstxt-feature-list li { font-size: .85rem; padding: 4px 0; color: #374151; }
.llmstxt-upsell-btn { width: 100%; justify-content: center; margin-top: 12px; text-align: center; }

/* URL list — v1.5.3: clear file labels + full path visible (no more ellipsis cut) */
.llmstxt-url-list { display: flex; flex-direction: column; gap: 12px; }
.llmstxt-url-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #f6f7f7;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.llmstxt-url-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.llmstxt-url-item__label {
  font-size: .92rem;
  font-weight: 600;
  color: #1d2327;
}
.llmstxt-url-item__btn {
  font-size: .78rem !important;
  padding: 2px 10px !important;
  height: auto !important;
  line-height: 1.7 !important;
}
.llmstxt-url-item__desc {
  margin: 2px 0 4px;
  font-size: .78rem;
  color: #646970;
  line-height: 1.4;
}
.llmstxt-url-item__path {
  display: block;
  font-size: .72rem;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px 8px;
  word-break: break-all;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

/* Links */
.llmstxt-links { margin: 0; padding: 0; list-style: none; }
.llmstxt-links li { padding: 5px 0; border-bottom: 1px solid #f0f0f1; }
.llmstxt-links li:last-child { border-bottom: none; }
.llmstxt-links a { font-size: .85rem; text-decoration: none; }
.llmstxt-links a:hover { text-decoration: underline; }

/* ── v1.3.0: tier metadata + overview ───────────────────────────────────────── */
.llmstxt-tier-meta {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(96, 165, 250, .08);
  border-left: 3px solid #60a5fa;
  border-radius: 4px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.6;
}
.llmstxt-tier-overview {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.9;
}
.llmstxt-tier-overview .llmstxt-tier-row {
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}
.llmstxt-tier-overview .llmstxt-tier-row:last-child { border-bottom: 0; }
.llmstxt-tier-overview .llmstxt-tier-row strong { color: #0f172a; }

/* ── v1.5.3: Hero card for generator (primary plugin function) ──────────────── */
.llmstxt-card--hero {
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #f0f6fc 0%, #eff6ff 100%);
  padding: 24px 28px;
}
.llmstxt-card--hero h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom-color: rgba(37,99,235,.15);
  margin-bottom: 16px;
}
.llmstxt-card--hero .llmstxt-status { margin-bottom: 18px; }
.llmstxt-card--hero .llmstxt-status__info strong { font-size: 1.05rem; }
.llmstxt-card--hero .llmstxt-actions .button-primary {
  font-size: 1rem;
  padding: 6px 22px;
  height: auto;
  line-height: 1.6;
}

/* Bottom-Refresh card (v1.5.3): so users don't have to scroll up to refresh score */
.llmstxt-card--bottom-refresh {
  background: #f8fafc;
  border-color: #e2e8f0;
  padding: 14px 20px;
}
.llmstxt-bottom-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.llmstxt-bottom-refresh > div { display: flex; flex-direction: column; gap: 2px; }
.llmstxt-bottom-refresh strong { font-size: .95rem; color: #1d2327; }
.llmstxt-bottom-refresh .description { font-size: .82rem; color: #646970; }
.llmstxt-bottom-refresh__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: .92rem !important;
  padding: 4px 16px !important;
  height: auto !important;
  line-height: 1.7 !important;
}
.llmstxt-bottom-refresh__btn .dashicons { font-size: 16px; width: 16px; height: 16px; line-height: 1; }
.llmstxt-bottom-refresh__btn.is-spinning .dashicons { animation: lvc-spin 1s linear infinite; }
.llmstxt-bottom-refresh__btn:disabled,
.llmstxt-bottom-refresh__btn.is-spinning { opacity: .8; cursor: wait; }