/**
 * 🚩 Report Modal Styles
 * Clean, accessible, mobile-friendly
 */

/* ==================== MODAL CONTAINER ==================== */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.report-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== BACKDROP ==================== */
.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* ==================== CONTENT ==================== */
.report-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.report-modal.active .report-modal-content {
  transform: translateY(0);
}

/* ==================== CLOSE BUTTON ==================== */
.report-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
}

.report-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==================== HEADER ==================== */
.report-modal-header {
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.report-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.report-modal-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== FORM ==================== */
.report-form {
  padding: 24px;
}

.report-form-group {
  margin-bottom: 24px;
}

.report-form-group:last-of-type {
  margin-bottom: 0;
}

.report-form-label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.report-optional {
  font-weight: 400;
  color: #666;
}

/* ==================== REASON OPTIONS ==================== */
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-reason-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-reason-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.report-reason-option:has(input:checked) {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

.report-reason-option input[type="radio"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d4af37;
  cursor: pointer;
}

.report-reason-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-reason-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.report-reason-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

/* ==================== INPUT FIELDS ==================== */
.report-textarea,
.report-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.15s ease;
}

.report-textarea {
  resize: vertical;
  min-height: 80px;
}

.report-textarea:focus,
.report-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.report-textarea::placeholder,
.report-input::placeholder {
  color: #555;
}

.report-char-count {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
  color: #555;
}

.report-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
}

/* ==================== ACTIONS ==================== */
.report-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.report-btn-cancel,
.report-btn-submit {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #888;
}

.report-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.report-btn-submit {
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #000;
}

.report-btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #e8c547, #d4af37);
  transform: translateY(-1px);
}

.report-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== SUCCESS STATE ==================== */
.report-success {
  padding: 48px 24px;
  text-align: center;
}

.report-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
}

.report-success-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.report-success-message {
  margin: 0 0 28px;
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.report-btn-done {
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.report-btn-done:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==================== REPORT BUTTON TRIGGER ==================== */
.report-btn-trigger {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
  z-index: 10;
}

/* Show on hover of parent */
.vault-pack-card:hover .report-btn-trigger,
.vault-pack-artwork:hover .report-btn-trigger,
.pack-card:hover .report-btn-trigger {
  opacity: 1;
}

.report-btn-trigger:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 100, 100, 0.4);
  transform: scale(1.1);
}

/* ==================== TOAST FALLBACK ==================== */
.report-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10001;
}

.report-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.report-toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: #1a1212;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 480px) {
  .report-modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .report-modal-content {
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
  
  .report-modal.active .report-modal-content {
    transform: translateY(0);
  }
  
  .report-form-actions {
    flex-direction: column;
  }
  
  .report-btn-cancel {
    order: 2;
  }
  
  .report-btn-submit {
    order: 1;
  }
}

/* DMCA Notice */
.report-dmca-notice {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(0, 255, 245, 0.03);
  border: 1px solid rgba(0, 255, 245, 0.08);
  border-radius: 6px;
}
