/* ---- SIDEBAR ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- CARD ---- */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 20px;
  border-radius: 2px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--cream);
  padding-bottom: 10px;
}

/* ---- SCORE RING ---- */
.score-ring {
  text-align: center;
  margin: 8px 0 16px;
}

.ring-svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--cream); stroke-width: 8; }
.ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease, stroke 0.5s; }

.score-label {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  display: block;
  margin-top: 8px;
}

.score-sublabel {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- STAT ROWS ---- */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 13px;
}

.stat-row:last-child { border-bottom: none; }

.stat-label { color: var(--muted); }

.stat-val {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 13px;
}

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.badge-human { background: #e0f2ec; color: #1a7a5e; }
.badge-ai    { background: #fdecea; color: #c0392b; }
.badge-mixed { background: #e8f4f8; color: #2a9d8f; }
.badge-low   { background: #e0f2ec; color: #1a7a5e; }
.badge-high  { background: #fdecea; color: #c0392b; }
.badge-med   { background: #e8f4f8; color: #2a9d8f; }

/* ---- BUTTONS ---- */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border-radius: 2px;
  margin-top: 4px;
}

.btn:hover { background: #2a2825; }
.btn:active { transform: scale(0.99); }
.btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

.btn-secondary {
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: var(--cream); }

/* ---- SIGNAL LIST ---- */
.signals-list {
  list-style: none;
  margin-top: 4px;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--cream);
  line-height: 1.5;
}

.signal-item:last-child { border-bottom: none; }

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.dot-red    { background: #c0392b; }
.dot-yellow { background: #2a9d8f; }
.dot-green  { background: #1a7a5e; }

/* ---- SPINNER ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- PLACEHOLDER ---- */
.result-placeholder {
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
}

.result-placeholder .icon { font-size: 32px; margin-bottom: 12px; }
.result-placeholder p { font-size: 13px; line-height: 1.6; }

/* ---- UPLOAD ZONE ---- */
.upload-zone {
  border: 2px dashed var(--border);
  background: #fafaf8;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.upload-zone:hover {
  border-color: var(--ink);
  background: #f5f5f0;
  color: var(--ink);
}

.upload-zone.dragover {
  border-color: #1a7a5e;
  background: #e6f0ed;
  color: #1a7a5e;
}

.upload-zone .upload-icon { font-size: 18px; }

.upload-zone .upload-meta {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}

.upload-zone input[type="file"] { display: none; }

/* ---- SIGNAL METERS ---- */
.signal-meter { margin: 8px 0; }

.signal-meter .meter-label {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.signal-meter .meter-track {
  height: 6px;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
}

.signal-meter .meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---- COMPOSITE SCORE BLOCK ---- */
.composite-score {
  background: linear-gradient(135deg, #fff 0%, #f8f6f1 100%);
  border: 1.5px solid var(--border);
  border-left: 4px solid #1a7a5e;
  padding: 16px 18px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.composite-score .breakdown {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.composite-score .breakdown span strong {
  color: var(--ink);
  font-weight: 600;
}
