/* QuickGigs — report & dispute bottom sheets (self-contained) */

.qg-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5, 0, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.qg-report-overlay.open {
  display: flex;
  animation: qgReportFadeIn 0.28s ease;
}

@keyframes qgReportFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes qgSheetSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.qg-report-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0a38 0%, #120628 38%, #0e021f 100%);
  border: 0.5px solid rgba(200, 168, 233, 0.2);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  animation: qgSheetSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light .qg-report-sheet {
  background: linear-gradient(180deg, #fff 0%, #faf8ff 45%, #f5f0ff 100%);
  border-color: #e8e2ff;
  box-shadow: 0 -16px 48px rgba(107, 63, 160, 0.12);
}

.qg-report-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(200, 168, 233, 0.35);
  margin: 10px auto 0;
  flex-shrink: 0;
}

.qg-report-header {
  position: relative;
  padding: 8px 22px 16px;
  text-align: center;
  flex-shrink: 0;
}

.qg-report-header-glow {
  position: absolute;
  inset: -40px 20% auto;
  height: 120px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.22), transparent 70%);
  pointer-events: none;
}

.qg-dispute-overlay .qg-report-header-glow {
  background: radial-gradient(circle, rgba(155, 111, 196, 0.35), transparent 70%);
}

.qg-report-close {
  position: absolute;
  top: 8px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0.5px solid rgba(200, 168, 233, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.qg-report-close:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.12);
}

body.light .qg-report-close {
  background: #f8f7ff;
  border-color: #e8e2ff;
  color: #6b7280;
}

.qg-report-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f87171;
  margin-bottom: 4px;
}

.qg-dispute-overlay .qg-report-kicker {
  color: #c8a8e9;
}

body.light .qg-report-kicker { color: #dc2626; }
body.light .qg-dispute-overlay .qg-report-kicker { color: #6b3fa0; }

.qg-report-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.2;
}

body.light .qg-report-title { color: #2d1b4e; }

.qg-report-sub {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 auto;
  max-width: 340px;
}

body.light .qg-report-sub { color: #5a5a72; }

.qg-report-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
  -webkit-overflow-scrolling: touch;
}

.qg-report-target {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.1);
  border: 0.5px solid rgba(248, 113, 113, 0.22);
  margin-bottom: 16px;
}

body.light .qg-report-target {
  background: #fef2f2;
  border-color: #fecaca;
}

.qg-dispute-overlay .qg-report-target {
  background: rgba(107, 63, 160, 0.14);
  border-color: rgba(155, 111, 196, 0.28);
}

body.light .qg-dispute-overlay .qg-report-target {
  background: #f5f0ff;
  border-color: #ddd6fe;
}

.qg-report-target-icon { font-size: 22px; flex-shrink: 0; }
.qg-report-target-text { min-width: 0; text-align: left; }

.qg-report-target-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:rgba(255,255,255,0.62);
  margin-bottom: 2px;
}

.qg-report-target-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.light .qg-report-target-label { color:#6b6580; }
body.light .qg-report-target-text strong { color: #2d1b4e; }

.qg-report-field { margin-bottom: 16px; }

.qg-report-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color:rgba(255,255,255,0.62);
  margin-bottom: 10px;
}

body.light .qg-report-label { color:#6b6580; }

.qg-report-optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  opacity: 0.75;
}

.qg-report-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 380px) {
  .qg-report-reasons { grid-template-columns: 1fr; }
}

.qg-report-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(200, 168, 233, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}

.qg-report-reason:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 168, 233, 0.35);
}

.qg-report-reason.is-selected {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

body.light .qg-report-reason {
  background: #fff;
  border-color: #e8e2ff;
  color: #5a5a72;
}

body.light .qg-report-reason.is-selected {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

.qg-dispute-overlay .qg-report-reason.is-selected {
  border-color: rgba(155, 111, 196, 0.5);
  background: rgba(107, 63, 160, 0.18);
  color: #c8a8e9;
}

body.light .qg-dispute-overlay .qg-report-reason.is-selected {
  background: #ede9ff;
  border-color: #9b6fc4;
  color: #6b3fa0;
}

.qg-report-reason-icon { font-size: 16px; flex-shrink: 0; }
.qg-report-textarea-wrap { position: relative; }

.qg-report-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 14px 14px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  border: 0.5px solid rgba(200, 168, 233, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  outline: none;
  resize: none;
  min-height: 112px;
}

.qg-report-textarea:focus {
  border-color: #9b6fc4;
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}

body.light .qg-report-textarea {
  background: #f8f7ff;
  border-color: #e8e2ff;
  color: #2d1b4e;
}

.qg-report-char {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  color:rgba(255,255,255,0.62);
  pointer-events: none;
}

.qg-report-char.is-near { color: #fbbf24; }
.qg-report-char.is-over { color: #f87171; }

.qg-report-footer,
.qg-report-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
  border-top: 0.5px solid rgba(200, 168, 233, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

body.light .qg-report-footer,
body.light .qg-report-actions {
  background: rgba(255, 255, 255, 0.65);
  border-top-color: #ece8ff;
}

.qg-report-cancel {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 0.5px solid rgba(200, 168, 233, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

body.light .qg-report-cancel {
  background: #fff;
  border-color: #e8e2ff;
  color: #6b7280;
}

.qg-report-submit {
  flex: 2;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
}

.qg-dispute-overlay .qg-report-submit {
  background: linear-gradient(135deg, #6b3fa0, #9b6fc4);
  box-shadow: 0 8px 24px rgba(107, 63, 160, 0.35);
}

.qg-report-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.qg-dispute-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(200, 168, 233, 0.14);
}

body.light .qg-dispute-steps {
  background: #fff;
  border-color: #ece8ff;
}

.qg-dispute-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.qg-dispute-step strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}

body.light .qg-dispute-step strong { color: #2d1b4e; }
.qg-dispute-step p { margin: 0; }

.qg-dispute-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: rgba(107, 63, 160, 0.25);
  color: #c8a8e9;
}

.qg-dispute-note {
  font-size: 11px;
  line-height: 1.55;
  color:rgba(255,255,255,0.62);
  margin: 0 0 12px;
}

@media (min-width: 640px) {
  .qg-report-overlay {
    align-items: center;
    padding: 24px;
  }

  .qg-report-sheet {
    border-radius: 26px;
    border-bottom: 0.5px solid rgba(200, 168, 233, 0.2);
    max-height: min(88vh, 720px);
  }
}
