/* ─────────────────────────────────────────────────────────────────
   NegativeTen Rating System Styles — Direction A "Precision Blue"
   Three-slider user rating widget for film reviews
   ───────────────────────────────────────────────────────────────── */

.nt-user-rating-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(79, 142, 247, 0.05);
  border: 1px solid rgba(79, 142, 247, 0.15);
  border-radius: 8px;
}

.nt-rating-header {
  margin-bottom: 2rem;
}

.nt-rating-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0 0 0.5rem 0;
}

.nt-rating-header p {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin: 0;
}

/* Form container */
.nt-rating-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Individual rating field */
.nt-rating-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nt-rating-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}

.nt-rating-description {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

/* Range slider */
.nt-rating-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  border: 1px solid #333;
}

.nt-rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4f8ef7;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.nt-rating-slider::-webkit-slider-thumb:hover {
  background: #6aa3ff;
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.4);
}

.nt-rating-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #4f8ef7;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.nt-rating-slider::-moz-range-thumb:hover {
  background: #6aa3ff;
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.4);
}

.nt-rating-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.nt-rating-slider::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
}

/* Value display */
.nt-rating-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
}

.nt-slider-value {
  font-weight: 600;
  color: #4f8ef7;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: right;
  transition: color 0.2s;
}

.nt-slider-value.nt-updated {
  color: #6aa3ff;
}

/* Live slider color feedback for score values */
.nt-slider-value.score-pos {
  color: #34d399;
}

.nt-slider-value.score-neg {
  color: #f87171;
}

.nt-slider-value.score-zero {
  color: #6b7280;
}

/* Action buttons */
.nt-rating-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(79, 142, 247, 0.1);
}

.nt-rating-submit {
  padding: 0.75rem 1.5rem;
  background: #4f8ef7;
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nt-rating-submit:hover:not(:disabled) {
  background: #6aa3ff;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.3);
}

.nt-rating-submit:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Status messages */
.nt-rating-status {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: none;
}

.nt-rating-status:not(:empty) {
  display: inline-block;
}

.nt-rating-status.nt-success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.nt-rating-status.nt-error {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.nt-rating-status.nt-loading {
  background: rgba(79, 142, 247, 0.15);
  color: #4f8ef7;
  border: 1px solid rgba(79, 142, 247, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nt-user-rating-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .nt-rating-header h3 {
    font-size: 1.1rem;
  }

  .nt-rating-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nt-rating-submit {
    width: 100%;
  }
}