/* ============================================
   Player / Tester Report Form
   ============================================ */

.report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

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

.report-modal {
  background: var(--card);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-block-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  pointer-events: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s ease;
}

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

.report-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--primary);
  border-bottom: 3px solid var(--outline);
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px 16px;
}

.report-modal-header h2 {
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  line-height: 1.8;
  color: var(--text);
}

.report-modal-close {
  background: var(--gold-light);
  border: 2px solid var(--outline);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow-block);
  transition: transform var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.report-modal-close:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--outline);
}

.report-form {
  padding: 0 24px 24px;
}

.report-form .form-group {
  margin-bottom: 18px;
  position: relative;
}

.report-error-banner {
  display: none;
  background: rgba(230, 57, 70, 0.12);
  border: 3px solid var(--outline);
  color: var(--danger);
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.report-error-banner.visible {
  display: block;
}

.dropzone {
  display: block;
  border: 3px dashed var(--outline);
  background: rgba(255, 215, 0, 0.1);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  background: rgba(255, 215, 0, 0.22);
  border-color: var(--primary);
}

.dropzone-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.dropzone-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.dropzone-text strong {
  color: var(--text);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.report-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--outline);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.file-item i.file-type-icon {
  color: var(--primary);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  font-size: 0.875rem;
}

.report-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 3px solid rgba(61, 41, 20, 0.12);
}

.report-form-actions .btn {
  flex: 1;
}

.report-success {
  text-align: center;
  padding: 48px 24px 32px;
  display: none;
}

.report-success.visible {
  display: block;
}

.report-success i {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 16px;
}

.report-success h3 {
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.report-success p {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.report-success .report-id {
  display: inline-block;
  padding: 8px 14px;
  background: var(--gold-light);
  border: 3px solid var(--outline);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  margin: 12px 0 20px;
}

.report-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.report-attachment {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 160px;
}

.report-attachment img {
  display: block;
  max-width: 160px;
  max-height: 120px;
  object-fit: cover;
}

.report-attachment a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.table-status.reviewed {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

.table-status.resolved {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

@media (max-width: 640px) {
  .report-form-actions {
    flex-direction: column;
  }
}
