/* ==========================================================================
   HOME NEWS - ADMIN PENDING APPROVALS CSS
   File: assets/css/pending-approvals.css
   ========================================================================== */

/* Priority Badges */
.priority-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority-badge.urgent {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.priority-badge.normal {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.priority-badge.low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Extended Status Badges for Approvals */
.status-pill.changes-requested {
  background: #ffedd5;
  color: #c2410c;
}

.status-pill.ready-to-publish {
  background: #e0e7ff;
  color: #3730a3;
}

/* Toast Notifications */
.admin-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary-red);
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-toast.success {
  border-left-color: #16a34a;
}

.admin-toast.warning {
  border-left-color: #ea580c;
}

.admin-toast.danger {
  border-left-color: #dc2626;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modals System */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-backdrop.show {
  display: flex;
}

.admin-modal-card,
.modal-content {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
  box-sizing: border-box;
}

.admin-modal-card.modal-medium {
  max-width: 540px;
}

/* Dedicated Request Changes Modal (Max 560px on desktop) */
.admin-modal-card.modal-changes-custom {
  max-width: 560px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-header h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--primary-red);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  box-sizing: border-box;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Modal Form Vertical Controls & Styling */
.modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
}

.modal-body .form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #172033;
  margin: 0;
}

.modal-body .form-label-required::after {
  content: " *";
  color: var(--primary-red);
}

.modal-body .form-select {
  display: block;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 10px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-body .form-select:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.modal-body .form-textarea {
  display: block;
  width: 100%;
  min-height: 130px;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-body .form-textarea::placeholder {
  color: #94a3b8;
}

.modal-body .form-textarea:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.modal-body .form-textarea.has-error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.modal-body .form-textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.form-validation-msg {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
  display: none;
  margin-top: 4px;
}

.form-validation-msg.active {
  display: block;
}

/* Article Information Card inside Modal */
.modal-article-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.modal-article-info-headline {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.modal-article-info-meta {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-revision-pending {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

/* Review Modal Internal Components */
.review-article-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.review-headline {
  font-family: var(--font-headline);
  font-size: 1.45rem;
  color: #0f172a;
  margin: 10px 0 12px 0;
}

.review-meta-strip {
  display: flex;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.review-lead-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.review-content-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-line;
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.editor-feedback-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .modal-backdrop {
    padding: 12px;
  }
  .admin-modal-card {
    max-height: 94vh;
  }
  .modal-body {
    padding: 18px 16px;
  }
  .modal-header {
    padding: 16px 18px;
  }
  .modal-footer {
    padding: 14px 18px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  .modal-footer .btn {
    width: 100%;
    height: 44px;
    justify-content: center;
  }
}
