/* ==========================================================================
   pages/eeat.css — E-E-A-T analyzer page (v2.1)
   Replaces inline-styled markup with BEM classes.
   ========================================================================== */

.eeat-title {
  font-family: var(--fh);
  font-size: 21px;
  font-weight: 800;
}

.eeat-subtitle {
  font-size: 13px;
  color: var(--text-m);
}

/* === Overall score + dimensions === */

.eeat-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--rl);
  padding: 24px;
  align-items: center;
}

.eeat-overview__score {
  text-align: center;
  padding-right: 20px;
  border-right: 0.5px solid var(--border);
}

.eeat-overview__num {
  font-family: var(--fh);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.eeat-overview__lbl {
  font-size: 13px;
  color: var(--text-m);
  margin-top: 4px;
}

.eeat-overview__grade {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 700;
}

.eeat-dim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.eeat-dim {
  background: var(--surface2);
  border-radius: var(--r);
  padding: 14px;
}

.eeat-dim__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.eeat-dim__icon { font-size: 16px; }

.eeat-dim__lbl {
  font-size: 13px;
  font-weight: 600;
}

.eeat-dim__score {
  margin-left: auto;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
}

.eeat-dim__bar {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
}

.eeat-dim__bar-fill {
  display: block;
  height: 100%;
  width: var(--bar-width, 0%);
  border-radius: 3px;
  transition: width 0.8s;
}

.eeat-dim__desc {
  font-size: 11px;
  color: var(--text-d);
  margin-top: 6px;
}

/* === Section spacer === */

.eeat-section {
  margin-bottom: 16px;
}

/* === v2.1: schema/FAQ detection summary === */

.eeat-detected {
  background: var(--surface2);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eeat-detected__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-m);
}

.eeat-detected__lbl {
  font-weight: 700;
  color: var(--text);
  min-width: 70px;
}

.eeat-detected__icon {
  font-size: 14px;
}

.eeat-detected__icon--ok   { color: var(--green); }
.eeat-detected__icon--miss { color: var(--red); }

.eeat-detected__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.eeat-detected__count {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text-d);
  margin-left: auto;
}

.eeat-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-family: var(--fm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eeat-pill--ok {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.eeat-pill--miss {
  background: var(--surface3);
  color: var(--text-d);
}

/* === Per-signal rows === */

.eeat-sig {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}

.eeat-sig:last-of-type { border-bottom: 0; }

.eeat-sig__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.eeat-sig__icon--ok      { background: var(--green);    color: #000; }
.eeat-sig__icon--miss    { background: var(--red-dim);  color: var(--red); }
.eeat-sig__icon--partial { background: var(--amber-dim); color: var(--amber); }

.eeat-sig__body {
  flex: 1;
  min-width: 0;
}

.eeat-sig__name {
  font-size: 13px;
  font-weight: 500;
}

.eeat-sig__detail {
  font-size: 11px;
  color: var(--text-d);
}

.eeat-sig__status {
  font-size: 10px;
  text-transform: capitalize;
}

.eeat-sig__pts {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--green);
}

/* === Action plan === */

.eeat-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
}

.eeat-plan:last-of-type { border-bottom: 0; }

.eeat-plan__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.eeat-plan__num--hi  { background: var(--red); }
.eeat-plan__num--mid { background: var(--amber); }
.eeat-plan__num--lo  { background: var(--accent2); }

.eeat-plan__body {
  flex: 1;
  min-width: 0;
}

.eeat-plan__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.eeat-plan__reason {
  font-size: 11.5px;
  color: var(--text-m);
  line-height: 1.5;
}

.eeat-plan__impact {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.eeat-plan__effort {
  font-size: 11px;
  color: var(--text-d);
  white-space: nowrap;
}

.eeat-plan__time {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text-d);
  white-space: nowrap;
}
