/* ============================================================
   Shared report modal styles (utils/reportModal.js)
   Extracted from ProductDetail/details.css so the marketplace,
   category and service-category pages can reuse the modal.
   ============================================================ */

body.report-modal-open {
  overflow: hidden;
}

.report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 20, 36, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.report-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.report-modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(2, 20, 36, 0.35);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.report-modal-overlay.active .report-modal {
  transform: translateY(0) scale(1);
}

.report-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 39, 66, 0.08);
  color: var(--blue-800, #0f2742);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.report-modal-close:hover {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
  transform: rotate(90deg);
}

.report-modal h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-900, #08203a);
  margin-bottom: 4px;
  padding-right: 34px;
}

.report-modal h3 .btn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
  margin-right: 6px;
  vertical-align: -3px;
}

.report-modal h3 .btn-ic .ic {
  width: 15px;
  height: 15px;
}

.report-modal-sub {
  font-size: 1.25rem;
  color: #718096;
  margin-bottom: 14px;
}

.report-reasons {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 39, 66, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--blue-900, #08203a);
}

.report-reason:hover {
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.05);
}

.report-reason:has(input:checked) {
  border-color: var(--orange-500, var(--brand-orange-600, var(--brand-orange-600)));
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.report-reason input {
  accent-color: var(--orange-500, var(--brand-orange-600, var(--brand-orange-600)));
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.report-details {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(15, 39, 66, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1.3rem;
  font-family: "Poppins", sans-serif;
  color: var(--blue-900, #08203a);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-details:focus {
  border-color: var(--orange-500, var(--brand-orange-600, var(--brand-orange-600)));
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

.report-details.report-error {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
  animation: reportShake 0.3s ease;
}

@keyframes reportShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Live blocked-word warning under the details box */
.report-block-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #b42318;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.35);
  padding: 4px 12px;
  border-radius: 8px;
  margin-top: 8px;
  animation: warn-pop 0.18s ease-out;
}

.report-block-warn .ic {
  flex-shrink: 0;
}

@keyframes warn-pop {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.report-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.report-cancel,
.report-submit {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.report-cancel {
  background: rgba(15, 39, 66, 0.08);
  color: var(--blue-800, #0f2742);
}

.report-cancel:hover {
  background: rgba(15, 39, 66, 0.14);
}

.report-submit {
  background: linear-gradient(45deg, #e11d48, var(--orange-500, var(--brand-orange-600, var(--brand-orange-600))));
  color: var(--white);
}

.report-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.3);
  filter: brightness(1.05);
}

.report-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

@media (max-width: 480px) {
  .report-modal {
    padding: 18px;
  }

  .report-modal-actions {
    flex-direction: column-reverse;
  }
}

/* ============ Dark mode ============ */
[data-theme="dark"] .report-modal {
  background: #0d2135;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .report-modal h3 {
  color: #eef5ff;
}

[data-theme="dark"] .report-modal-sub {
  color: var(--neutral-400, var(--neutral-400));
}

[data-theme="dark"] .report-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--neutral-300, var(--neutral-300));
}

[data-theme="dark"] .report-reason {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--neutral-200, var(--neutral-200));
}

[data-theme="dark"] .report-reason:hover {
  background: rgba(255, 106, 0, 0.08);
}

[data-theme="dark"] .report-details {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--neutral-200, var(--neutral-200));
}

[data-theme="dark"] .report-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--neutral-300, var(--neutral-300));
}

[data-theme="dark"] .report-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
}
