/* Signal Score Calculator Interactive Component */

.sig-calc {
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  margin: 2rem 0;
  background: var(--card-bg, #1a1a2e);
  overflow: hidden;
  padding: 1.25rem;
}

.sig-calc__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #fff);
  margin-bottom: 1rem;
}

.sig-calc__section {
  margin-bottom: 1.25rem;
}

.sig-calc__section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sig-calc__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.sig-calc__label-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 130px;
}

.sig-calc__label {
  font-size: 0.8rem;
  color: var(--text-primary, #fff);
  min-width: 90px;
}

.sig-calc__weight {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
}

.sig-calc__slider {
  flex: 1;
  height: 4px;
  min-width: 80px;
}

.sig-calc__value {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--text-primary, #fff);
  min-width: 36px;
  text-align: right;
}

.sig-calc__results {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sig-calc__score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.sig-calc__score-label {
  font-size: 0.85rem;
  color: var(--text-muted, #999);
}

.sig-calc__score-value {
  font-family: var(--font-mono, monospace);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.2s;
}

.sig-calc__route {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.sig-route--auto {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sig-route--inbox {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sig-route--skip {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sig-calc__bar-wrap {
  margin-top: 0.5rem;
}

.sig-calc__bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: visible;
}

.sig-calc__bar-fill {
  height: 100%;
  background: linear-gradient(to right, #ef4444, #f59e0b 55%, #10b981);
  border-radius: 4px;
  transition: width 0.2s;
}

.sig-calc__threshold {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.sig-calc__threshold-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #666);
  white-space: nowrap;
}

.sig-calc__reset {
  display: block;
  width: 100%;
  padding: 0.4rem;
  border: 1px solid var(--border-color, #333);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #999);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sig-calc__reset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #fff);
}

@media (max-width: 600px) {
  .sig-calc {
    padding: 0.75rem;
  }

  .sig-calc__label-wrap {
    min-width: 100px;
  }

  .sig-calc__label {
    min-width: 70px;
    font-size: 0.75rem;
  }

  .sig-calc__score-value {
    font-size: 1.25rem;
  }
}
