/* ============================================
   INTELLIGENCE IS OVERRATED: SYSTEM LOG INTERVENTION
   Net Art Performance Component - CSS
   Author: Diego Baigorri
   Version: 1.0.4-block
   ============================================ */

/* --- MARQUEE SEPARATOR: SYSTEM ANOMALY --- */

h1.section-title {
  font-weight: 700;
  letter-spacing: -1px;
}
.intro-context {
  color: #666;
  font-style: italic;
  margin-bottom: 40px;
  border-left: 3px solid #eee;
  padding-left: 15px;
}

/* --- SECCIÓN PERFORMÁTICA: SYSTEM LOG INTERVENTION --- */

.marquee-separator {
  background: #000;
  color: #00ff41;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  margin-top: 3rem;
  z-index: 1; /* Inicial bajo */
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrolling 25s linear infinite;
}

@keyframes scrolling {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --- BOTÓN CON WAVEFORM INTEGRADO --- */
.execute-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  min-width: 240px;
  transition:
    background 0.3s,
    transform 0.2s;
  position: relative;
  pointer-events: none;
}

.execute-btn:hover {
  background: #222;
}

#btnText {
  pointer-events: initial;
}

.waves-container {
  display: none;
  align-items: center;
  gap: 5px;
}

.waveform-btn {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.bar {
  width: 2px;
  background: #00ff41;
  height: 100%;
  animation: pulse-btn 1s infinite ease-in-out;
  animation-play-state: paused;
}

.b1 {
  height: 60%;
  animation-delay: 0.1s;
}
.b2 {
  height: 100%;
  animation-delay: 0.3s;
}
.b3 {
  height: 80%;
  animation-delay: 0.2s;
}

@keyframes pulse-btn {
  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* --- Clases de Estado --- */
#btnText.error-style {
  color: #ff0000 !important;
  font-weight: bold;
  pointer-events: none;
}

@keyframes blink-error {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.system-tilt {
  animation: blink-error 0.3s steps(2, start) infinite;
  color: #ff0000 !important;
  font-weight: bold;
}

.manifesto-body {
  font-family: "Courier New", monospace;
  text-align: left;
}

.manifiesto-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* Ajustes de integración con WordPress */
.manifesto-section {
  position: relative;
  background: #f0f0f0;
  padding: 40px 30px;
  border-bottom: 2px solid #000;
  margin-bottom: 3rem;
}

.manifesto-header {
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  font-weight: 700;
  margin-bottom: 25px;
  color: #000;
}

p.statement-title,
p.statement-text {
  text-align: center;
  margin: 0;
}

.system-metadata {
  margin: 50px auto;
  max-width: 350px;
}

span#status-text {
  font-weight: bold;
}

.residue {
  position: fixed;
  opacity: 0.25;
  color: #ff0044;
  font-family: "Courier New", monospace;
  pointer-events: none;
  user-select: none;
  z-index: 10; /* Asegura que queden bajo el botón pero sobre el fondo */
}

/* --- Marquee errático --- */
.marquee-erratic {
  animation-duration: 10s !important; /* Más rápido */
}

.marquee-chaotic {
  animation: chaotic-scroll 5s linear infinite alternate !important;
  z-index: 10; /* Alto para tapar texto */
}

@keyframes chaotic-scroll {
  0% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(-50%) translateY(20px); /* Desplazamiento vertical para superponer */
  }
  100% {
    transform: translateX(-100%) translateY(-30px); /* Más caos */
  }
}

/* sistema colapsado */

body.system-collapsed h1,
body.system-collapsed h2 {
  position: relative;
  display: inline-block; /* Para que el bloque de censura se ajuste al ancho del texto */
  color: #000;
  user-select: none;
  transition: all 0.5s ease;
}

body.system-collapsed h1::after,
body.system-collapsed h2::after {
  content: "░ ▐▐ ░ ░▐ ░▐▐▐░▐ ░░ ░▐ ░ ░ ░ ░";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #000;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -2px;
}

body.system-collapsed p:not(.statement-text) {
  opacity: 0.4;
  filter: blur(0.5px);
  transition: opacity 2s ease;
}

body.system-collapsed a {
  color: #ff0044 !important;
  text-decoration: none;
  cursor: wait;
}

body.system-collapsed h4 {
  text-decoration: line-through;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

body.system-collapsed h4:nth-child(odd) {
  transform: rotate(-2deg);
}

body.system-collapsed h4:nth-child(even) {
  transform: rotate(5deg);
}

@media only screen and (max-device-width: 450px) {
  .manifesto-section {
    min-height: 100dvh;
    min-height: calc(var(--dvh, 1dvh) * 100 + 58px);
    padding: 20dvh 30px;
  }
}
