/* ── Report widget — floating button + modal ─────────────────────────────── */

.report-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(18,18,26,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  padding: 0;
}

.report-fab:hover,
.report-fab:focus-visible {
  border-color: rgba(196,163,90,0.5);
  color: rgba(196,163,90,0.9);
  transform: scale(1.08);
  outline: none;
}

.report-fab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Modal overlay ────────────────────────────────────────────────────── */

.report-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

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

@media (min-width: 480px) {
  .report-overlay {
    align-items: center;
    padding: 0;
  }
}

/* ── Modal card ───────────────────────────────────────────────────────── */

.report-modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface, #12121a);
  border: 1px solid var(--border, #1e1e2e);
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
}

@media (min-width: 480px) {
  .report-modal {
    border-radius: 12px;
    transform: translateY(12px) scale(0.97);
  }
}

.report-overlay.open .report-modal {
  transform: none;
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.report-modal-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text, #e8e6e1);
  margin: 0;
}

.report-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.report-close:hover { color: rgba(255,255,255,0.7); }

/* ── Category pills ───────────────────────────────────────────────────── */

.report-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.report-cat {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: var(--font-sans, inherit);
  line-height: 1.4;
}

.report-cat:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.report-cat.selected {
  border-color: var(--accent, #c4a35a);
  color: var(--accent, #c4a35a);
  background: rgba(196,163,90,0.08);
}

/* ── Textarea ─────────────────────────────────────────────────────────── */

.report-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--text, #e8e6e1);
  font-family: var(--font-sans, inherit);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.6rem 0.75rem;
  resize: none;
  transition: border-color 0.15s;
  min-height: 72px;
  margin-bottom: 1rem;
}

.report-textarea:focus {
  outline: none;
  border-color: rgba(196,163,90,0.4);
}

.report-textarea::placeholder { color: rgba(255,255,255,0.25); }

/* ── Actions ──────────────────────────────────────────────────────────── */

.report-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.report-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans, inherit);
  transition: border-color 0.15s, color 0.15s;
}

.report-btn-cancel:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}

.report-btn-send {
  background: var(--accent, #c4a35a);
  border: none;
  color: #0a0a0f;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans, inherit);
  transition: opacity 0.15s;
}

.report-btn-send:hover { opacity: 0.85; }
.report-btn-send:disabled { opacity: 0.4; cursor: default; }

/* ── Success state ────────────────────────────────────────────────────── */

.report-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.report-success-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.report-success-text {
  font-size: 0.9rem;
  color: var(--text, #e8e6e1);
  margin: 0;
}

.report-success-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0.25rem 0 0;
}
