/**
 * ═══════════════════════════════════════════════════════════════
 * 🎨 ARTICLE MINI-CANVAS STYLES
 * ═══════════════════════════════════════════════════════════════
 */

.article-mini-canvas-container {
  margin: 32px 0;
  font-family: inherit;
}

.amc-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.amc-header {
  margin-bottom: 14px;
}

.amc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.amc-icon {
  font-size: 20px;
}

.amc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.amc-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.amc-canvas-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}

.amc-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.amc-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
  user-select: none;
}

.amc-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.amc-btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.amc-btn-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.amc-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.amc-point-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
}

.amc-pulse {
  width: 8px;
  height: 8px;
  background: #0ea5e9;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: amcPulse 1.8s infinite;
}

@keyframes amcPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.amc-analyze-btn {
  padding: 8px 18px;
  background: #cbd5e1;
  color: #64748b;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.amc-analyze-btn.is-ready {
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.amc-analyze-btn.is-ready:hover {
  background: #115e59;
  transform: translateY(-1px);
}

.amc-result-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  animation: amcSlideDown 0.3s ease-out;
}

@keyframes amcSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.amc-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.amc-result-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.amc-result-metric-name {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.amc-result-desc {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.5;
  margin: 0 0 6px 0;
}

.amc-result-advice {
  font-size: 0.9rem;
  color: #0f766e;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.amc-result-actions {
  margin-top: 12px;
}

.amc-result-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  background: #0f766e;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
}

.amc-result-cta-btn:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.amc-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
