/*
 * ScratchersParadise — Report a problem widget styles.
 *
 * Deliberately quiet. This is a bug-report path, not an engagement prompt,
 * so it must not compete with Save/Compare for attention. The trigger is a
 * plain underlined text link; the expanded form is a compact card with a
 * neutral border.
 *
 * Scoped under .sp-modal-body (and the fallback .game-detail-panel) so
 * these styles never leak into game cards on the hub grid.
 */

.sp-modal-body .sp-report-problem-wrap,
.game-detail-panel .sp-report-problem-wrap {
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  text-align: center;
}

.sp-modal-body .sp-report-problem-trigger,
.game-detail-panel .sp-report-problem-trigger {
  background: none;
  border: none;
  padding: 6px 10px;
  color: #5B6770;
  font-size: 0.8125rem;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  line-height: 1.4;
}

.sp-modal-body .sp-report-problem-trigger:hover,
.sp-modal-body .sp-report-problem-trigger:focus-visible,
.game-detail-panel .sp-report-problem-trigger:hover,
.game-detail-panel .sp-report-problem-trigger:focus-visible {
  color: #1A1A1A;
  outline: none;
}

/* Expanded form */
.sp-modal-body .sp-report-problem-open,
.game-detail-panel .sp-report-problem-open {
  text-align: left;
}

.sp-modal-body .sp-report-problem-form,
.game-detail-panel .sp-report-problem-form {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 14px 16px;
}

.sp-modal-body .sp-report-problem-title,
.game-detail-panel .sp-report-problem-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 2px;
}

.sp-modal-body .sp-report-problem-subtitle,
.game-detail-panel .sp-report-problem-subtitle {
  font-size: 0.75rem;
  color: #5B6770;
  margin-bottom: 10px;
}

.sp-modal-body .sp-report-problem-reasons,
.game-detail-panel .sp-report-problem-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.sp-modal-body .sp-report-problem-reason,
.game-detail-panel .sp-report-problem-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #1A1A1A;
  cursor: pointer;
  line-height: 1.35;
}

.sp-modal-body .sp-report-problem-reason:hover,
.game-detail-panel .sp-report-problem-reason:hover {
  background: #EBEBEB;
}

.sp-modal-body .sp-report-problem-reason input[type="radio"],
.game-detail-panel .sp-report-problem-reason input[type="radio"] {
  flex-shrink: 0;
  accent-color: #004986;
  width: 16px;
  height: 16px;
  margin: 0;
}

.sp-modal-body .sp-report-problem-note,
.game-detail-panel .sp-report-problem-note {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #D6D6D6;
  border-radius: 6px;
  background: #FFF;
  font-family: inherit;
  font-size: 0.85rem;
  color: #1A1A1A;
  resize: vertical;
  box-sizing: border-box;
}

.sp-modal-body .sp-report-problem-note::placeholder,
.game-detail-panel .sp-report-problem-note::placeholder {
  color: #999;
}

.sp-modal-body .sp-report-problem-note:focus,
.game-detail-panel .sp-report-problem-note:focus {
  outline: none;
  border-color: #004986;
  box-shadow: 0 0 0 2px rgba(0, 73, 134, 0.15);
}

.sp-modal-body .sp-report-problem-error,
.game-detail-panel .sp-report-problem-error {
  margin: 8px 0 0;
  padding: 6px 10px;
  background: #FEE;
  border: 1px solid #F5B5B5;
  border-radius: 6px;
  color: #B23A3A;
  font-size: 0.8rem;
}

.sp-modal-body .sp-report-problem-actions,
.game-detail-panel .sp-report-problem-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.sp-modal-body .sp-report-problem-cancel,
.game-detail-panel .sp-report-problem-cancel {
  background: transparent;
  border: 1px solid #D6D6D6;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #5B6770;
  cursor: pointer;
}

.sp-modal-body .sp-report-problem-cancel:hover,
.game-detail-panel .sp-report-problem-cancel:hover {
  background: #EBEBEB;
  color: #1A1A1A;
}

.sp-modal-body .sp-report-problem-submit,
.game-detail-panel .sp-report-problem-submit {
  background: #004986;
  border: 1px solid #004986;
  border-radius: 6px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
}

.sp-modal-body .sp-report-problem-submit:hover:not([disabled]),
.game-detail-panel .sp-report-problem-submit:hover:not([disabled]) {
  background: #003D70;
  border-color: #003D70;
}

.sp-modal-body .sp-report-problem-submit[disabled],
.game-detail-panel .sp-report-problem-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Thank-you card */
.sp-modal-body .sp-report-problem-thanks,
.game-detail-panel .sp-report-problem-thanks {
  background: #E7F4EA;
  border: 1px solid #B5DBC1;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.sp-modal-body .sp-report-problem-thanks-title,
.game-detail-panel .sp-report-problem-thanks-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E7B36;
  margin-bottom: 2px;
}

.sp-modal-body .sp-report-problem-thanks-body,
.game-detail-panel .sp-report-problem-thanks-body {
  font-size: 0.85rem;
  color: #1A1A1A;
}
