/* Shared widget styles for the Backlink Quality Scorer — used on the blog post embed and the standalone /tools/ page */

.js-scorer {
  max-width: 460px;
  margin: 8px 0 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.25rem;
}
.js-scorer * { box-sizing: border-box; }

.js-scorer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.js-scorer-brand-name {
  color: #f4f7fb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.js-scorer-brand-name a {
  color: inherit;
  text-decoration: none;
}

.js-scorer-brand-name a:hover,
.js-scorer-brand-name a:focus-visible {
  color: #8fe39f;
}

.js-scorer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 14px;
}
.js-scorer-num {
  font-size: 40px;
  font-weight: 700;
  color: #f8fbff;
  line-height: 1;
  min-width: 60px;
}
.js-scorer-right { flex: 1; }
.js-scorer-verdict {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #c0cad4;
}
.js-scorer-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.js-scorer-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease, background 0.3s ease;
}
.js-scorer-hint {
  font-size: 11px;
  color: #8f9aa6;
}
.js-scorer-fail {
  display: none;
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ff9b9b;
  margin-bottom: 10px;
}
.js-scorer-section {
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.js-scorer-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9aa5b1;
  text-transform: uppercase;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.js-scorer-head.g { color: #8fe39f; }
.js-scorer-head.r { color: #ff9b9b; }
.js-scorer-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.js-scorer-item:last-child { border-bottom: none; }
.js-scorer-item:hover { background: rgba(255, 255, 255, 0.03); }
.js-scorer-cb {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: transparent;
  transition: 0.1s ease;
}
.js-scorer-cb.on-green { background: #8fe39f; border-color: #8fe39f; }
.js-scorer-cb.on-red { background: #ff6b6b; border-color: #ff6b6b; }
.js-scorer-cb.on-gate { background: #8fe39f; border-color: #8fe39f; }
.js-scorer-cb svg { display: none; }
.js-scorer-cb.on-green svg,
.js-scorer-cb.on-red svg,
.js-scorer-cb.on-gate svg { display: block; }
.js-scorer-label {
  font-size: 13px;
  font-weight: 500;
  color: #e3e9ef;
  flex: 1;
  line-height: 1.4;
}
.js-scorer-pts {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 26px;
  text-align: right;
}
.js-scorer-pts.g { color: #8fe39f; }
.js-scorer-pts.r { color: #ff9b9b; }

.js-scorer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.js-scorer-copy {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e3e9ef;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.js-scorer-copy:hover,
.js-scorer-copy:focus-visible {
  border-color: rgba(143, 227, 159, 0.5);
  color: #8fe39f;
}

.js-scorer-copy-status {
  font-size: 11px;
  color: #8fe39f;
}
