/*
Theme Name: dap Status
Theme URI: https://davidalvarezp.com
Author: dap
Author URI: https://davidalvarezp.com
Description: Pantalla única de estado, con fondo animado de puntos y líneas conectadas. Sin loop de WordPress: toda ruta del sitio muestra esta misma pantalla estática.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dap-status
*/

/* =========================================================
   Un único tema oscuro, deliberado — no sigue el modo claro/
   oscuro del sistema, igual que el color de marca #050a07
   que ya usa el sitio.

   Capas, de atrás a adelante:
   1. <canvas id="network">  → red animada de puntos y líneas
   2. .scene                 → columna central: estado, etiqueta,
                                titular, subtexto, botón
   3. footer                 → copyright
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #050a07;
  --fg: #eafbf1;
  --muted: #6f9280;
  --accent: #3dffa8;
  --accent-soft: rgba(61, 255, 168, 0.14);

  --font-display: 'Unbounded', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  overflow: hidden;
}

/* ---------- 1) Red de puntos y líneas (canvas) ---------- */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* leve resplandor ambiental detrás de la red, para dar profundidad */
.glow {
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.glow-a { top: -22vmax; right: -18vmax; background: radial-gradient(circle, rgba(61,255,168,0.14), transparent 70%); }
.glow-b { bottom: -24vmax; left: -18vmax; background: radial-gradient(circle, rgba(61,255,168,0.07), transparent 70%); }

/* ---------- 2) Contenido central ---------- */
main.scene {
  position: relative;
  z-index: 1;
  height: 100vh;   /* respaldo para navegadores sin dvh */
  height: 100dvh;  /* altura real de pantalla, descuenta la barra del navegador en móvil */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(20px, 4vh, 56px);
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ocupa el espacio que quede entre el padding superior y el footer,
   y centra el bloque de texto+botón dentro de ese espacio */
.content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s cubic-bezier(.16,.8,.3,1) forwards;
}
.status-line { animation-delay: 0.1s; }
.tag         { animation-delay: 0.25s; }
.headline    { animation-delay: 0.4s; }
.subtext     { animation-delay: 0.58s; }
.cta         { animation-delay: 0.75s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,255,168,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(61,255,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,255,168,0); }
}

.tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 20px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.subtext {
  font-size: 15px;
  color: var(--muted);
  max-width: 32ch;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cta .arrow { display: inline-block; transition: transform 0.25s ease; }
.cta:hover, .cta:focus-visible {
  background: var(--fg);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px rgba(61,255,168,0.35);
  transform: translateY(-2px);
}
.cta:hover .arrow, .cta:focus-visible .arrow { transform: translate(3px, -3px); }

/* ---------- 3) Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  animation: rise 0.8s cubic-bezier(.16,.8,.3,1) forwards;
  animation-delay: 0.9s;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(61,255,168,0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer a:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .content > *, .site-footer { animation: none !important; opacity: 1 !important; transform: none !important; }
  .dot { animation: none !important; }
  .cta, .cta .arrow { transition: none !important; }
}
