/* =====================================================================
   HOLOGRAPHIC MICROSOFT COMPLIANCE GRID — Interface Stylesheet
   ===================================================================== */
:root {
  --cyan: #46f0ff;
  --cyan-soft: #b8fbff;
  --teal: #1be3c8;
  --azure: #3aa0ff;
  --m365: #ff8a3a;
  --security: #ffcf5a;
  --data: #9a6bff;
  --warn: #ffcf5a;
  --good: #4dffa6;
  --glass: rgba(8, 26, 46, 0.46);
  --glass-line: rgba(96, 224, 255, 0.32);
  --glow: 0 0 14px rgba(70, 240, 255, 0.55);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%; width: 100%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #07182b 0%, #030a14 55%, #01040a 100%);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  user-select: none; -webkit-user-select: none;
}

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; }
#scene:active { cursor: grabbing; }

#screen-fx { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom,
    rgba(70,240,255,0.045) 0px, rgba(70,240,255,0.045) 1px,
    transparent 2px, transparent 3px);
  mix-blend-mode: screen; opacity: 0.5;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(0,0,0,0.62) 100%);
}

.panel {
  position: fixed; z-index: 10;
  background: linear-gradient(160deg, var(--glass), rgba(4,16,28,0.55));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--glow), inset 0 0 22px rgba(70,240,255,0.08);
  border-radius: 12px;
}

/* ---------- Top bar ---------- */
#topbar {
  top: 14px; left: 14px; right: 14px; height: 58px;
  display: flex; align-items: center; gap: 22px; padding: 0 20px;
}
.title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: 3px;
  font-size: 17px; color: #eafdff; text-shadow: var(--glow);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.title .glyph { font-size: 20px; color: var(--cyan); }
.status { flex: 1; font-size: 13px; letter-spacing: 1.5px; color: var(--cyan); opacity: 0.85; text-align: center; }
.author { font-size: 11px; letter-spacing: 2px; color: var(--teal); opacity: 0.8; white-space: nowrap; }

/* ---------- Legend panel (left) ---------- */
#legend {
  top: 86px; left: 14px; width: 250px; padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.block-h {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2.5px;
  color: var(--teal); margin-bottom: 9px;
  border-bottom: 1px solid rgba(70,240,255,0.18); padding-bottom: 5px;
}
.legend-rows { display: flex; flex-direction: column; gap: 4px; }
.legend-row {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--cyan-soft); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1px; padding: 7px 9px;
  border-radius: 7px; cursor: pointer; text-align: left; width: 100%;
  box-shadow: none; transition: background 0.15s, border 0.15s;
}
.legend-row:hover { background: rgba(70,240,255,0.08); transform: none; }
.legend-row.active { background: rgba(70,240,255,0.14); border-color: var(--glass-line); }
.legend-row small { margin-left: auto; opacity: 0.6; font-size: 11px; }
.dot { width: 12px; height: 12px; border-radius: 3px; box-shadow: 0 0 8px currentColor; flex: none; }
.dot.all { background: var(--cyan); color: var(--cyan); }
.dot.azure { background: var(--azure); color: var(--azure); }
.dot.m365 { background: var(--m365); color: var(--m365); }
.dot.security { background: var(--security); color: var(--security); }
.dot.data { background: var(--data); color: var(--data); }

.rules { font-size: 12px; line-height: 1.6; opacity: 0.88; }
.rules b { color: var(--cyan); }

.controls { display: flex; flex-direction: column; gap: 10px; }
.toggle {
  font-size: 12px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; color: var(--cyan-soft);
}
.toggle input { accent-color: var(--cyan); width: 15px; height: 15px; }

/* ---------- Info / dossier panel (right) ---------- */
.info-panel {
  top: 86px; right: 14px; bottom: 14px; width: 360px;
  padding: 20px 22px; overflow-y: auto;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
}
.info-panel.open { transform: translateX(0); opacity: 1; }
.info-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none; color: var(--cyan);
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: none;
  padding: 0; width: 30px; height: 30px;
}
.info-close:hover { color: #fff; transform: none; }
.info-domain {
  display: inline-block;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 3px;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  border: 1px solid currentColor;
}
.info-domain.azure { color: var(--azure); text-shadow: 0 0 10px rgba(58,160,255,0.6); }
.info-domain.m365 { color: var(--m365); text-shadow: 0 0 10px rgba(255,138,58,0.6); }
.info-domain.security { color: var(--security); text-shadow: 0 0 10px rgba(255,207,90,0.6); }
.info-domain.data { color: var(--data); text-shadow: 0 0 10px rgba(154,107,255,0.6); }
.info-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: 1px; margin: 0 0 4px;
  color: #eafdff; text-shadow: var(--glow);
}
.info-tagline { font-size: 12px; color: var(--teal); letter-spacing: 1px; margin-bottom: 12px; }

.verify-badge {
  display: inline-block; font-size: 10px; letter-spacing: 1.5px;
  padding: 5px 11px; border-radius: 6px; margin-bottom: 16px;
  border: 1px solid currentColor; font-family: var(--font-display);
}
.verify-badge.verified { color: var(--good); text-shadow: 0 0 10px rgba(77,255,166,0.5); }
.verify-badge.reference { color: var(--warn); text-shadow: 0 0 10px rgba(255,207,90,0.45); }

.info-section { margin-bottom: 18px; }
.info-h {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2.5px;
  color: var(--teal); margin-bottom: 8px;
  border-bottom: 1px solid rgba(70,240,255,0.16); padding-bottom: 4px;
}
.info-section p { font-size: 13px; line-height: 1.6; margin: 0; opacity: 0.92; }

.cert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-tag {
  font-size: 11px; letter-spacing: 0.5px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(70,240,255,0.08);
  border: 1px solid rgba(70,240,255,0.28);
  color: var(--cyan-soft);
  box-shadow: 0 0 8px rgba(70,240,255,0.12);
}

.info-link {
  font-size: 12px; color: var(--cyan); word-break: break-all;
  text-decoration: none; border-bottom: 1px dashed rgba(70,240,255,0.4);
}
.info-link:hover { color: #fff; }

.info-disclaimer {
  margin-top: 14px; font-size: 10px; line-height: 1.5;
  opacity: 0.55; letter-spacing: 0.3px; font-style: italic;
}

/* ---------- Hint ---------- */
.hint {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  font-size: 11px; letter-spacing: 1.5px; color: var(--cyan); opacity: 0.6;
  background: rgba(3,12,22,0.5); padding: 8px 16px; border-radius: 8px;
  border: 1px solid rgba(70,240,255,0.14); white-space: nowrap;
}

.hidden { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  #legend { display: none; }
  .info-panel { width: calc(100% - 28px); top: 78px; }
  .title { font-size: 12px; letter-spacing: 1px; }
  .author { display: none; }
  .hint { font-size: 9px; }
}
