/* bondi driver — main.css
   estetica fanzine / ubu.com / myantiaircraftfriend
   sin cajas, sin tarjetas de ia, 100% vanilla
*/

:root {
  --bg: #f6f5f0;
  --text: #141414;
  --accent: #6b1414;
  --dim: #606060;
  --faint: #d5d3cb;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-mono: "Courier New", Courier, monospace;
}

[data-theme="obscuro"] {
  --bg: #060606;
  --text: #b0b0b0;
  --accent: #9e1f1f;
  --dim: #555555;
  --faint: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Modo obscuro: grano y scanlines analogicas sutiles */
[data-theme="obscuro"] body {
  text-shadow: 0.5px 0 rgba(255, 0, 0, 0.25), -0.5px 0 rgba(0, 200, 200, 0.25);
}

[data-theme="obscuro"] body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 9999;
}

/* Enlaces crudos estilo fanzine */
a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  background-color: var(--text);
  color: var(--bg);
  text-decoration: none;
}

/* Contenedor abierto sin bordes laterales */
.container {
  max-width: 780px;
  margin: 32px auto 60px auto;
  padding: 0 24px;
}

/* Encabezado asimetrico estilo Julie / myantiaircraftfriend */
.raw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}

.raw-brand {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: normal;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.raw-brand span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  display: block;
  margin-top: 4px;
  letter-spacing: 1px;
}

.raw-nav {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 3px;
  font-size: 12px;
}

.raw-nav a {
  text-decoration: underline;
}

.raw-nav a.active {
  font-weight: bold;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 0;
  text-align: right;
  text-decoration: underline;
  margin-top: 4px;
}

.theme-toggle-btn:hover {
  color: var(--accent);
}

/* Tira visual cruda (canvas de arboles con camara digital) */
.raw-visual-strip {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  background-color: #000000;
  margin: 20px 0 28px 0;
}

.raw-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.7;
}

.raw-canvas-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.retro-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  vertical-align: middle;
  background-color: #ffffff;
  animation: blink 0.8s infinite;
}

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

/* Manifiesto y textos directos sobre papel (estilo editorial fanzine) */
.raw-manifesto {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  margin: 24px 0 32px 0;
  max-width: 660px;
  color: var(--text);
}

.raw-manifesto::first-letter {
  font-size: 24px;
  font-weight: bold;
}

/* Marcadores de contenido / placeholders crudos */
.raw-marker {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 20px 0 6px 0;
}

.raw-marker::before {
  content: ":: ";
  color: var(--accent);
}

/* Directorio ubu / lista tipografica */
.raw-index-list {
  list-style: none;
  margin: 16px 0 36px 0;
}

.raw-index-list li {
  padding: 4px 0;
  font-size: 13px;
}

.raw-index-list a {
  font-weight: bold;
}

/* Chat desestructurado estilo consola de terminal abierta */
.raw-chat {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px dashed var(--faint);
}

.raw-chat-log {
  margin: 12px 0;
  max-height: 200px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
}

.raw-chat-msg {
  margin-bottom: 4px;
  word-break: break-word;
}

.raw-chat-msg-user {
  color: var(--accent);
  font-weight: bold;
}

.raw-chat-msg-time {
  color: var(--dim);
  font-size: 10px;
  margin-left: 6px;
}

.raw-chat-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: baseline;
}

.raw-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 0;
  outline: none;
}

.raw-input-user {
  width: 110px;
}

.raw-input-comment {
  flex: 1;
  min-width: 180px;
}

.raw-submit-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 3px 6px;
}

.raw-submit-btn:hover {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

/* Reproductor crudo sin cajas */
.raw-player {
  margin: 20px 0 32px 0;
  font-size: 13px;
}

.raw-player-status {
  color: var(--dim);
  font-size: 11px;
  margin-top: 4px;
}

.raw-player-controls {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.raw-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.raw-btn:hover {
  color: var(--accent);
}

/* Videos e imagenes directas sobre el flujo */
.raw-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000000;
  margin: 12px 0 24px 0;
}

.raw-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.raw-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 16px 0 32px 0;
}

.raw-gallery-item {
  font-size: 11px;
  color: var(--dim);
}

.raw-gallery-item img {
  width: 100%;
  display: block;
  margin-bottom: 4px;
  filter: grayscale(100%);
}

/* Shows en lista abierta tipo cartel de recital */
.raw-shows-list {
  margin: 16px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raw-show-row {
  display: flex;
  gap: 24px;
  font-size: 13px;
  align-items: baseline;
}

.raw-show-date {
  width: 60px;
  color: var(--dim);
  font-size: 12px;
}

.raw-show-venue {
  flex: 1;
}

/* EPK estructurado en texto directo */
.raw-epk-section {
  margin: 20px 0;
}

.raw-epk-section h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: normal;
}

.raw-epk-list {
  list-style: none;
  font-size: 13px;
  margin-bottom: 16px;
}

.raw-epk-list li {
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
  max-width: 420px;
}

.raw-epk-list .role {
  color: var(--dim);
}

/* Enlace a lost media oculto hasta activar obscuro */
.raw-lost-link {
  display: none;
  margin-top: 20px;
  font-size: 12px;
}

[data-theme="obscuro"] .raw-lost-link {
  display: block;
  color: var(--accent);
}

/* Pie de pagina */
.raw-footer {
  margin-top: 48px;
  padding-top: 14px;
  font-size: 11px;
  color: var(--dim);
}

@media (max-width: 600px) {
  .raw-header {
    flex-direction: column;
  }
  .raw-nav {
    text-align: left;
    margin-top: 8px;
  }
  .theme-toggle-btn {
    text-align: left;
  }
  .container {
    padding: 0 16px;
  }
  .raw-show-row {
    gap: 12px;
  }
}