/* File: inc/report.css */
/* Description: Report modal + toast. Mobile-first. Uses existing :root vars from style.css. */

:root{
  --report-overlay: rgba(9, 20, 34, 0.48);
  --report-surface: rgba(255,255,255,0.92);
  --report-surface-2: rgba(255,255,255,0.78);
  --report-stroke: rgba(0,0,0,0.06);
  --report-shadow: 0 24px 70px rgba(0,0,0,0.18);
  --report-radius: 18px;
}

.report-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 6px;
  margin: 0;
  color: rgba(29,42,53,0.78);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.15s ease, background 0.15s ease;
}
.report-link:hover { filter: brightness(0.98); }
.report-link:active { background: rgba(0,0,0,0.04); }

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.report-modal.is-open { display: block; }

.report-modal__overlay{
  position: absolute;
  inset: 0;
  background: var(--report-overlay);
  backdrop-filter: blur(6px);
}

.report-modal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 24px));
  height: min(90svh, 720px);
  transform: translate(-50%, -50%);

  border-radius: var(--report-radius);
  background:
    radial-gradient(120% 150% at 20% 10%, rgba(255,255,255,0.98) 0%, var(--report-surface) 55%, var(--report-surface-2) 100%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--report-shadow);
  overflow: hidden;
}

.report-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px 14px;
}

.report-modal__title{
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(29,42,53,0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.report-modal__close{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.08s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.report-modal__close:hover { filter: brightness(0.99); }
.report-modal__close:active { transform: translateY(1px); }

.report-modal__close svg{
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.report-modal__body{
  padding: 8px 14px 14px 14px;
  height: calc(100% - 62px);
  overflow: auto;
}

.report-modal__hint{
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(29,42,53,0.72);
  line-height: 1.35;
}

.report-form{
  display: grid;
  gap: 12px;
}

.report-field .label{
  margin: 0 0 6px;
}

.report-control{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.95);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.report-control:focus{
  border-color: rgba(0,123,255,0.55);
  box-shadow: 0 0 0 4px rgba(0,123,255,0.14);
}
.report-control:active{ transform: translateY(0.5px); }

.report-textarea{
  min-height: 140px;
  resize: vertical;
}

.report-actions{
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.report-btn{
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary), #2b8cff);
  color: #fff;
  padding: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,123,255,0.20);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.report-btn:hover{ filter: brightness(0.99); }
.report-btn:active{ transform: translateY(1px); }
.report-btn:disabled{
  cursor: not-allowed;
  filter: grayscale(0.2) brightness(0.95);
  box-shadow: none;
  opacity: 0.9;
}

.report-error{
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecee;
  color: #5b1020;
  border: 1px solid rgba(114, 28, 36, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.report-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1100;
  display: none;
  width: min(560px, calc(100vw - 24px));
}
.report-toast.is-show{ display: block; }

.report-toast__inner{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(234, 247, 238, 0.92);
  border: 1px solid rgba(21, 87, 36, 0.18);
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}

.report-toast__icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(21, 87, 36, 0.12);
  border: 1px solid rgba(21, 87, 36, 0.20);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.report-toast__icon svg{
  width: 14px;
  height: 14px;
  color: rgba(21, 87, 36, 0.95);
}

.report-toast__text{
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 61, 30, 0.95);
  line-height: 1.25;
}

/* slightly tighter on very small screens */
@media (max-width: 360px){
  .report-modal__panel{ width: calc(100vw - 18px); }
  .report-modal__body{ padding: 8px 12px 12px 12px; }
}