/* ============================================================
   projects.css — Page-specific styles for projects.html
   Sithean.Space — dark HUD / terminal aesthetic
============================================================ */

/* ============================================================
   SECTION HEADER — "ACTIVE PROCESSES"
============================================================ */
.sectionHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #330044;
  border-left: 4px solid #7a00aa;
  position: relative;
  overflow: hidden;
}

.sectionHeader::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(to left, rgba(122,0,170,0.12), transparent);
  pointer-events: none;
}

.sectionHeader .shLabel {
  font-size: 10px;
  letter-spacing: 3px;
  color: #7a00aa;
  text-transform: uppercase;
}

.sectionHeader .shTitle {
  font-size: 14px;
  color: #d4c8ff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #aa66ff;
}

.sectionHeader .shCount {
  margin-left: auto;
  font-size: 10px;
  color: #5544aa;
  letter-spacing: 1.5px;
}

/* Pulsing "live" dot beside section header */
.sectionHeader .shDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #33ff88;
  flex-shrink: 0;
  animation: projPulse 1.6s ease-in-out infinite;
}

@keyframes projPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51,255,136,0.7); opacity: 1; }
  50%       { box-shadow: 0 0 0 5px rgba(51,255,136,0); opacity: 0.7; }
}

/* ============================================================
   STATUS KEY BAR
============================================================ */
.statusBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #1e0030;
  font-size: 10px;
  color: #5544aa;
  letter-spacing: 1.5px;
}

.statusBar .sKey {
  color: #7766aa;
  margin-right: 4px;
}

/* ============================================================
   STATUS BADGES
============================================================ */
.status {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  border: 1px solid;
  text-transform: uppercase;
  position: relative;
}

.status.wip {
  color: #ffcc44;
  border-color: #aa8800;
  background: rgba(100, 70, 0, 0.3);
}

.status.done {
  color: #66ff99;
  border-color: #008844;
  background: rgba(0, 60, 30, 0.3);
}

.status.planned {
  color: #88aaff;
  border-color: #334499;
  background: rgba(20, 30, 80, 0.3);
}

.status.abandoned {
  color: #ff7755;
  border-color: #881100;
  background: rgba(60, 10, 0, 0.3);
}

/* Blinking dot for WIP */
.status.wip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffcc44;
  margin-right: 6px;
  vertical-align: middle;
  animation: wipBlink 1.2s step-end infinite;
}

@keyframes wipBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; }
}

/* ============================================================
   PROJECT GRID
============================================================ */
.projectGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 560px) {
  .projectGrid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROJECT CARD
============================================================ */
.projectCard {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #440066;
  border-top: 3px solid #7a00aa;
  padding: 16px 18px 14px 18px;
  transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

/* Subtle corner glyph */
.projectCard::after {
  content: '//';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  color: #2a0040;
  letter-spacing: 2px;
  pointer-events: none;
}

.projectCard:hover {
  box-shadow: 0 0 18px rgba(150, 0, 255, 0.3);
  border-color: #9900cc;
  background: rgba(15, 0, 25, 0.6);
}

/* Card top-bar: id label */
.cardId {
  font-size: 9px;
  color: #3a0055;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.projectCard h3 {
  color: #cc99ff;
  font-size: 13px;
  margin: 0 0 8px 0;
  letter-spacing: 1.5px;
  border: none;
  padding: 0;
  text-shadow: 0 0 8px rgba(180, 100, 255, 0.4);
}

.projectCard p {
  font-size: 12px;
  color: #9988bb;
  line-height: 1.75;
  margin-bottom: 12px;
}

/* Tag row */
.cardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

/* ============================================================
   TELEMETRY ROW — system uptime display
============================================================ */
.uptimeRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #330044;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.uptimeCell {
  padding: 12px 16px;
  border-right: 1px solid #220033;
  text-align: center;
}

.uptimeCell:last-child {
  border-right: none;
}

.uptimeCellLabel {
  font-size: 9px;
  color: #4a3a66;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.uptimeCellValue {
  font-size: 15px;
  color: #cc99ff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(150, 80, 255, 0.5);
}

.uptimeCellValue.green {
  color: #33ff88;
  text-shadow: 0 0 10px rgba(51, 255, 136, 0.4);
}

/* ============================================================
   MORE COMING — bottom placeholder
============================================================ */
.projectsMore {
  text-align: center;
  padding: 28px 20px;
  border: 1px dashed #2a0040;
  color: #4a3a66;
  font-size: 11px;
  letter-spacing: 2.5px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.projectsMore::before {
  content: 'SCANNING FOR NEW PROCESSES...';
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: #330044;
  margin-bottom: 10px;
}

.projectsMore .pgIcon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.35;
}
