/* ==========================================================================
   PEER REVIEW & EDITORIAL DOSSIER STYLESHEET
   Aesthetics: Academic Archival, Sharp Engineering, Exact #212529 Background
   ========================================================================== */

/* Section Container - Exact Match to Publications Section */
.peer-review-section {
  background: #212529 !important;
  color: #f8fafc;
  padding: 60px 0 70px 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 80px;
}

/* Category & Title Header */
.pr-dossier-tag {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pr-dossier-tag::before {
  content: "●";
  color: #10b981;
  font-size: 0.65rem;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pr-section-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 12px;
}

.pr-section-desc {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Archival Stats Metric Row */
.pr-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 32px 0 44px 0;
}

.pr-metric-cell {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.25s ease;
}

.pr-metric-cell:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(52, 211, 153, 0.4);
  border-left-color: #34d399;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pr-metric-val {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pr-metric-sub {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Dossier Cards - Sharp Technical Academic Layout */
.pr-card-dossier {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.pr-card-dossier:hover {
  border-color: #34d399;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(52, 211, 153, 0.15);
}

/* Dossier Top Bar (Catalog Code & Timestamp) */
.pr-dossier-topbar {
  background: #111827;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
}

.pr-doc-code {
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pr-doc-date {
  color: #94a3b8;
}

/* Card Visual Frame */
.pr-frame-box {
  position: relative;
  height: 210px;
  background: #090d16;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.pr-frame-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  filter: brightness(0.92) contrast(1.05);
}

.pr-card-dossier:hover .pr-frame-box img {
  transform: scale(1.04);
  filter: brightness(1);
}

.pr-frame-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.pr-frame-box:hover .pr-frame-overlay {
  opacity: 1;
}

.pr-inspect-trigger {
  background: #10b981;
  color: #061e14;
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Dossier Content Body */
.pr-dossier-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pr-publisher-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

.pr-journal-heading {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Metadata Chips (Sharp Rectangular Tech Badges) */
.pr-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.pr-tech-tag {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.tag-q1 {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.tag-q2 {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  color: #60a5fa;
}

.tag-metric {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.tag-publisher {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.pr-brief-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pr-kw-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.pr-kw-item {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 3px;
}

/* Dossier Action Trigger */
.btn-dossier-inspect {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-subheading, 'Inter', sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-dossier-inspect:hover {
  background: #10b981;
  border-color: #10b981;
  color: #061e14;
  font-weight: 700;
}

/* Bottom Archival Standard Strip */
.pr-standards-dossier {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  margin-top: 36px;
}

.pr-standards-header {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-standards-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.5;
}

.pr-spec-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 12px 14px;
  height: 100%;
}

.pr-spec-title {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pr-spec-detail {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Modal Custom Styling - Architectural & Sharp */
.modal-pr-content {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-pr-header {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
}

.modal-pr-body {
  padding: 20px;
  background: #0f172a;
}

.modal-pr-footer {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
}

.pr-cert-full-view {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020617;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pr-meta-table {
  width: 100%;
  font-size: 0.84rem;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0;
}

.pr-meta-table tr td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pr-meta-table tr:last-child td {
  border-bottom: none;
}

.pr-meta-label {
  font-family: var(--font-code, 'JetBrains Mono', monospace);
  color: #94a3b8;
  width: 32%;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pr-meta-value {
  color: #ffffff;
  font-weight: 500;
}
