/* =============================================================
   HARBINGER QUOTE — FEEDBACK MODAL
   Print-hidden UI for reporting issues to GitHub.
   ============================================================= */

@media print {
  #feedback-btn,
  #feedback-modal {
    display: none !important;
  }
}

#feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #0E89A2; /* Harbinger Teal */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 9998;
  transition: background 0.2s;
}

#feedback-btn:hover {
  background: #0c7691;
}

/* Native <dialog> element styles — design §2.2. */
#feedback-modal {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

#feedback-modal::backdrop {
  background: rgba(0,0,0,0.6);
}

.feedback-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.feedback-modal-content h2 {
  margin: 0 0 12px;
  /* Use the centrally-defined brand font stack from quote-generator.html :root --font-display.
     Falls back to Oswald then sans-serif if the variable is not defined (e.g. standalone use). */
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 24px;
  color: #000;
}

.feedback-modal-content p {
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #333;
}

.feedback-modal-content label {
  display: block;
  margin-bottom: 8px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.feedback-modal-content textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.feedback-modal-content textarea:focus {
  outline: none;
  border-color: #0E89A2;
}

.feedback-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.feedback-modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.feedback-modal-actions .btn-cancel {
  background: #e0e0e0;
  color: #333;
}

.feedback-modal-actions .btn-cancel:hover {
  background: #ccc;
}

.feedback-modal-actions .btn-submit {
  background: #0E89A2;
  color: #fff;
}

.feedback-modal-actions .btn-submit:hover {
  background: #0c7691;
}

.feedback-modal-actions .btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.feedback-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.feedback-toast.visible {
  opacity: 1;
}

.feedback-toast.success {
  background: #4caf50;
  color: #fff;
}

.feedback-toast.error {
  background: #f44336;
  color: #fff;
}
