
i {
  color: #97ed27;
  font-family: "Jacquard 12", system-ui;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 2px;
}

/* -------------------- SPACE DASHBOARD / KOMET-4 MISSION CONTROL -------------------- */

.space-dashboard {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 15px;
}

.space-panel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding: 18px;
  background : #162b47;
}

.space-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 100% 4px;
  opacity: .45;
}

.iss-panel,
.apod-panel {
  grid-column: span 2;
}

.boxtitle,
.maintitle {
  text-shadow:
    0 0 6px rgba(171,235,165,.45),
    0 0 12px rgba(171,235,165,.18);
  letter-spacing: 2px;
}

.terminal-status {
  position: relative;
  overflow: hidden;
  font-family: "MS Gothic", "Courier New", monospace;
  text-align: right;
  color: #abeba5;
  margin-bottom: 14px;
  text-transform: uppercase;

}

.terminal-status::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
}

@keyframes scan {
  to { left: 100%; }
}

/* -------------------- CARTE ISS -------------------- */

.iss-map {
  position: relative;
  width: 100%;
  height: 240px;
  margin-bottom: 18px;
  border: 1px solid rgba(171,235,165,.55);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(rgba(171,235,165,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171,235,165,.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(171,235,165,.15), transparent 55%),
    url("https://upload.wikimedia.org/wikipedia/commons/8/83/Equirectangular_projection_SW.jpg") center/cover;
  background-size: 40px 40px, 40px 40px, 100% 100%, cover;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,.75),
    0 0 18px rgba(171,235,165,.12);
}

.iss-map::before {
  content: "LIVE ORBIT MAP";
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  font: 13px "MS Gothic", "Courier New", monospace;
  color: #abeba5;
  background: rgba(18,21,25,.7);
  border: 1px solid rgba(171,235,165,.45);
  padding: 3px 8px;
}

.iss-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 45%, rgba(0,0,0,.42) 100%);
  pointer-events: none;
}

.iss-map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 10% 20%, 10% 20%;
  pointer-events: none;
}

#iss-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  font-size: 24px;
  filter:
    drop-shadow(0 0 5px #abeba5)
    drop-shadow(0 0 12px #abeba5);
  transition: left 1s linear, top 1s linear;
}

#iss-marker::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(171,235,165,.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseISS 1.8s infinite;
}

@keyframes pulseISS {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}

/* -------------------- ISS PANEL -------------------- */

.iss-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.iss-window {
  position: relative;
  flex-shrink: 0;
}

.iss-window::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
}

.iss-window img {
  position: relative;
  width: 100%;
  display: block;
  z-index: 2;
}

@keyframes radar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.iss-layout .data-grid {
  flex: 1;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.data-grid p,
.clock-line,
.space-list li {
  position: relative;
  background: rgba(10,15,25,.72);
  border: 1px solid rgba(171,235,165,.35);
  border-left: 3px solid #abeba5;
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: .25s ease;
}

.data-grid p:hover,
.clock-line:hover,
.space-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(171,235,165,.18);
}

.data-grid b,
.clock-line b,
.space-list b {
  display: block;
  margin-top: 4px;
  color: #abeba5;
  font-family: "MS Gothic", "Courier New", monospace;
  font-size: 17px;
  text-shadow: 0 0 5px rgba(171,235,165,.55);
}

/* -------------------- LISTES -------------------- */

.space-list {
  list-style: none;
  padding: 0;
}

.space-list li::before {
  content: "✦ ";
  color: #abeba5;
}

.status-list li::before {
  content: "";
}

.ok {
  color: #abeba5;
  text-shadow: 0 0 6px rgba(171,235,165,.8);
}

.dead {
  color: #777;
}

/* -------------------- APOD -------------------- */

.apod-card {
  background: rgba(10,15,25,.55);
  border: 1px solid rgba(171,235,165,.35);
  padding: 14px;
  border-radius: 6px;
}

.apod-title {
  font: 24px "MS Gothic", "Courier New", monospace;
  color: #abeba5;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(171,235,165,.4);
}

.apod-title::before {
  content: "📡 ";
}

.apod-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid #abeba5;
  margin: 12px 0;
  box-shadow: 0 0 18px rgba(171,235,165,.18);
}

.apod-text {
  font-size: 13px;
  line-height: 21px;
  text-align: justify;
}

/* -------------------- RESPONSIVE DASHBOARD -------------------- */

@media (max-width: 900px) {
  .space-dashboard {
    grid-template-columns: 1fr;
  }

  .iss-panel,
  .apod-panel {
    grid-column: span 1;
  }

  .iss-layout {
    flex-direction: column;
  }

  .iss-window {
    width: 100%;
    max-width: 320px;
    margin: auto;
  }

  .iss-map {
    height: 190px;
  }
}
