/* Custom styles for CCPS RBPS Master Platform */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --secondary: #0f172a;
  --accent: #10b981;
  --risk-red: #ef4444;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Smooth scrolling for the whole document */
html { scroll-behavior: smooth; }

/* Consistent focus rings for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

/* Utility: visually hidden but accessible */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Red Highlight for RISK */
.text-risk {
  color: #ef4444;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

/* 3D Embossed Card Styling */
.card-3d {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-3d:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -3px rgba(2, 132, 199, 0.08);
  border-color: #bae6fd;
}

.card-3d:hover::before {
  opacity: 1;
}

/* Architectural Colonnade Styling for 4 Pillars */
.temple-container {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 1.75rem;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.6);
  position: relative;
  overflow: hidden;
}

.arch-pediment {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.9);
  text-align: center;
  position: relative;
}

.arch-column {
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 40%, #ffffff 60%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.25), inset 1px 0 2px rgba(255, 255, 255, 0.9), inset -1px 0 2px rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.arch-column:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -8px rgba(2, 132, 199, 0.35);
  border-color: #38bdf8;
}

.arch-base {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 2px solid #94a3b8;
  border-radius: 0.5rem;
  height: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Heat Map Matrix Styling */
.heat-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.heat-cell:hover {
  transform: scale(1.18);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.score-4 { background-color: #059669; color: #ffffff; }
.score-3 { background-color: #0284c7; color: #ffffff; }
.score-2 { background-color: #f59e0b; color: #ffffff; }
.score-1 { background-color: #dc2626; color: #ffffff; }
.score-empty { background-color: #e2e8f0; color: #94a3b8; }

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Print Styles */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body { background: #ffffff !important; color: #000000 !important; }
  table { font-size: 9px !important; page-break-inside: auto; }
  thead { display: table-header-group; }
  tr { page-break-inside: avoid; }
  th, td { padding: 4px 6px !important; border-color: #cbd5e1 !important; }
}
