/* ==========================================================================
   SUJUD NOIR DESIGN SYSTEM — Wireframe Background & Technical Elements
   ========================================================================== */

/* Page-wide subtle terminal wireframe grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grid);
  background-color: var(--app-bg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 35%, black 45%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 45%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
}

/* Subtle corner crosshair decorations */
.wireframe-crosshair {
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 5;
}
.wireframe-crosshair::before,
.wireframe-crosshair::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
}
.wireframe-crosshair::before {
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
}
.wireframe-crosshair::after {
  top: 0;
  left: 4px;
  width: 1px;
  height: 9px;
}
.wireframe-crosshair.tl { top: -4px; left: -4px; }
.wireframe-crosshair.tr { top: -4px; right: -4px; }
.wireframe-crosshair.bl { bottom: -4px; left: -4px; }
.wireframe-crosshair.br { bottom: -4px; right: -4px; }

/* Grid overlay for containers */
.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--app-border-subtle) 1px, transparent 1px),
                    linear-gradient(90deg, var(--app-border-subtle) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.35;
}

/* Top Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent-primary);
  z-index: 9999;
  width: 0%;
  transition: width 80ms linear;
}

/* Blinking terminal cursor */
.cursor,
.term-cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  vertical-align: text-bottom;
  background: var(--accent-primary);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Status indicator dot */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--tiny);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--status-jamaah);
  border-radius: var(--radius-round);
  display: inline-block;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor,
  .term-cursor,
  .status-dot {
    animation: none;
  }
}
