/* Secret Dossier Section */

.secret-dossier {
  padding: 60px 40px;
  background: #ffe600;
  color: #111;
  overflow: hidden;
  border-top: 5px solid #000;
  border-bottom: 5px solid #000;
}

.secret-dossier .dossier-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.secret-dossier .issue-number {
  border: 4px solid #000;
  background: #fff;
  padding: 10px 16px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 6px 6px 0 #000;
}

.secret-dossier .classified-stamp {
  border: 4px solid #000;
  background: #ff2a2a;
  color: #fff;
  padding: 10px 22px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 1px;
  box-shadow: 7px 7px 0 #000;
  transform: rotate(-7deg);
  transition: transform 300ms ease;
}

.secret-dossier .dossier-title {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 10px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.secret-dossier .dossier-subtitle {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 35px auto;
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  border: 4px dashed #000;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 18px;
}

.secret-dossier .dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.secret-dossier .dossier-card {
  background: #fff;
  border: 5px solid #000;
  padding: 22px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.12);
  transition: transform 250ms ease, box-shadow 250ms ease;
  position: relative;
}

.secret-dossier .dossier-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 26, 26, 0.35);
  pointer-events: none;
}

.secret-dossier .dossier-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.18);
}

.secret-dossier .dossier-label {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #ff1a1a;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.secret-dossier .dossier-value {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
}

.secret-dossier .dossier-full {
  grid-column: 1 / -1;
}

/* FIXED: SECTION IS ALWAYS VISIBLE */

.reveal-up {
  opacity: 1;
  transform: translateY(0);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional filler */

.dossier-space-filler {
  display: none;
}

/* Stamp hover */

.secret-dossier:hover .classified-stamp {
  transform: rotate(-4deg);
}

/* Mobile */

@media (max-width: 768px) {

  .secret-dossier {
    padding: 70px 22px;
  }

  .secret-dossier .dossier-title {
    font-size: 2.4rem;
  }

  .secret-dossier .dossier-subtitle {
    font-size: 1rem;
  }

}

/* ==========================
   SYSTEM STATUS (ADDED)
========================== */

.system-status-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}

.system-stat{
  border: 4px solid #000;
  background: rgba(255,255,255,0.78);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.18);
  padding: 14px 14px 12px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.system-stat:hover{
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.22);
}

.system-stat-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.system-stat-name{
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ff1a1a;
  text-transform: uppercase;
}

.system-stat-percent{
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #000;
  background: #fff;
  border: 3px solid #000;
  padding: 6px 10px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.25);
}

.system-progress{
  border: 4px solid #000;
  background: #fff;
  padding: 6px;
  height: 35px;
  box-shadow: inset 0 0 0 3px rgba(255, 214, 0, 0.15);
}

.system-progress-bar{
    height:100%;
    width: 0;

    transition: width 1.5s ease;
  background: linear-gradient(90deg, #ff0000 0%, #fcef02 70%, #37ff00 100%);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.system-progress-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.08), rgba(0,0,0,0.08) 10px, transparent 10px, transparent 20px);
  opacity: 0.6;
}

/* Reveal animation (works with your existing .reveal-up / .is-visible pattern) */
.system-stat{
  opacity: 0.98;
  transform: translateY(10px);
}

.system-stat .system-progress-bar{
    transition: width 8.2s ease;
    width: 0%;
}
/* When the container card becomes visible */
#system-status-card.reveal-up.is-visible .system-stat{
  transform: translateY(0);
}

/* Fill ONLY when visible */
#system-status-card.reveal-up.is-visible .system-stat .system-progress-bar{
  width: var(--p, 0%);
}

/* Ensure bars start empty until reveal triggers */
#system-status-card .system-progress-bar{
  width: 0%;
}

/* Only fill once the reveal class is present */
#system-status-card.reveal-up.is-visible .system-stat .system-progress-bar{
  width: var(--p, 0%);
}

.system-progress-bar{
    width:10%;
}
/* Mobile */
@media (max-width: 520px){
  .system-status-grid{ grid-template-columns: 1fr; }
}

