/**
 * Readability Panel Styles - Premium Blue/Orange Design 2025
 */

.prorank-readability-panel {
  padding: 0;
  background: #fff;
}

/* Loading State */
.prorank-readability-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
}

/* Error State */
.prorank-readability-error {
  margin: 0;
}

/* Results Container */
.prorank-readability-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Score Container - Blue gradient background */
.prorank-readability-score-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

/* Circular Score Badge */
.prorank-readability-score-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.prorank-readability-score-badge--success {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.prorank-readability-score-badge--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.prorank-readability-score-badge--error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Score Info */
.prorank-readability-score-info {
  flex: 1;
  min-width: 0;
}

.prorank-readability-score-title {
  margin: 0 0 2px 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #3b82f6;
}

.prorank-readability-level-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.prorank-readability-grade-text {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* Stats Row */
.prorank-readability-stats-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}

.prorank-readability-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.prorank-readability-stat-label {
  color: #3b82f6;
}

.prorank-readability-stat-value {
  font-weight: 600;
  color: #1e293b;
}

/* Help/Warning Box */
.prorank-readability-help {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.prorank-readability-help--success {
  background: #ecfdf5;
  border-left-color: #3b82f6;
}

.prorank-readability-help-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #92400e;
}

.prorank-readability-help--success .prorank-readability-help-icon {
  color: #065f46;
}

.prorank-readability-help-content {
  flex: 1;
  min-width: 0;
}

.prorank-readability-help-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #78350f;
}

.prorank-readability-help--success .prorank-readability-help-text {
  color: #065f46;
}

/* AI Button - Blue Gradient */
.prorank-ai-suggestions-button {
  margin-top: 10px;
  padding: 8px 14px !important;
  font-size: 12px !important;
  height: auto !important;
  min-height: 32px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.prorank-ai-suggestions-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Empty State */
.prorank-readability-empty {
  text-align: center;
  padding: 28px 16px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
}

.prorank-readability-empty p {
  margin: 0;
  font-size: 13px;
}

/* No Content Notice */
.prorank-readability-no-content {
  margin: 0;
  font-size: 13px;
}

/* AI Readability Modal */
.prorank-ai-readability-modal {
  max-width: 600px;
}

.prorank-ai-readability-modal .components-modal__content {
  padding: 16px;
}

.prorank-ai-modal-content {
  min-height: 150px;
}

.prorank-ai-loading {
  text-align: center;
  padding: 32px 0;
}

.prorank-ai-loading p {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.prorank-ai-description {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 13px;
}

/* AI Suggestion Cards */
.prorank-ai-suggestion-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.prorank-ai-suggestion-card:last-child {
  margin-bottom: 0;
}

.prorank-ai-suggestion-card .components-card__body {
  padding: 14px;
}

.prorank-ai-original,
.prorank-ai-rewritten {
  width: 100%;
}

.prorank-ai-original strong,
.prorank-ai-rewritten strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #3b82f6;
}

.prorank-ai-text-original {
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.prorank-ai-text-suggested {
  margin: 0;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #065f46;
}

.prorank-ai-arrow {
  display: block;
  margin: 6px auto;
  color: #94a3b8;
  width: 18px;
  height: 18px;
}

/* Copy button - Blue accent */
.prorank-ai-suggestion-card .components-button.is-tertiary {
  color: #3b82f6;
  font-size: 12px;
  padding: 6px 10px;
  height: auto;
  min-height: 28px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prorank-ai-suggestion-card .components-button.is-tertiary:hover {
  color: #2563eb;
  background: #eff6ff;
}

.prorank-ai-suggestion-card .components-button.is-tertiary svg {
  width: 14px;
  height: 14px;
}
