/**
 * INFONÓICO: Category Personalities Stylesheet
 * High-Fidelity UI/UX Tailored Aesthetics for Each Editorial Category
 * File: assets/css/category-personalities.css
 */

/* ==========================================================================
   COMMON UTILITIES & WIDGET CONTAINERS
   ========================================================================== */
.cat-personality-widget {
  width: 100%;
  max-width: 380px;
  background: rgba(9, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  font-family: monospace;
}

.widget-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(4, 7, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 8.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.widget-stage {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.widget-bottom-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(4, 7, 10, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #7b8e96;
}

/* ==========================================================================
   1. WAR.GOV / UFO: PENTAGON DECLASSIFIED FOIA VAULT
   ========================================================================== */
.cat-theme-war-gov-ufo {
  --cat-accent: #38d9d9;
}

.cat-theme-war-gov-ufo .vault-hero-environment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(56, 217, 217, 0.02) 28px,
    rgba(56, 217, 217, 0.02) 29px
  );
  pointer-events: none;
}

/* DOD Classified Document Widget */
.widget-war-gov .dod-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1.5px solid #38d9d9;
  border-radius: 4px;
  color: #38d9d9;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(56, 217, 217, 0.06);
  transform: rotate(-1.5deg);
  width: fit-content;
}

.widget-war-gov .redacted-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-war-gov .redacted-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  color: #9cb0b8;
}

.widget-war-gov .redacted-bar {
  display: inline-block;
  background: #202b33;
  color: transparent;
  padding: 1px 6px;
  border-radius: 2px;
  user-select: none;
}

.widget-war-gov .foia-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 8px;
  color: #8aa0a8;
}

.cat-theme-war-gov-ufo .cat-card:hover {
  border-color: #38d9d9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 217, 217, 0.2);
}

/* ==========================================================================
   2. UFOLOGÍA: AEROESPACIAL / FLIR TARGET TRACKING
   ========================================================================== */
.cat-theme-ufologia {
  --cat-accent: #38d9d9;
}

.widget-ufologia .flir-target-scope {
  position: relative;
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 217, 217, 0.08) 0%, rgba(3, 7, 10, 0.9) 70%);
  border: 1px solid rgba(56, 217, 217, 0.25);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-ufologia .flir-cross-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(56, 217, 217, 0.3);
}

.widget-ufologia .flir-cross-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(56, 217, 217, 0.3);
}

.widget-ufologia .flir-reticle-ring {
  width: 84px;
  height: 84px;
  border: 1.5px dashed rgba(56, 217, 217, 0.6);
  border-radius: 50%;
  animation: flir-rotate 16s linear infinite;
}

@keyframes flir-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.widget-ufologia .flir-uap-target {
  position: absolute;
  width: 12px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #38d9d9, 0 0 20px #38d9d9;
  animation: flir-jitter 3s infinite ease-in-out alternate;
}

@keyframes flir-jitter {
  0% { transform: translate(-8px, -4px); }
  50% { transform: translate(12px, 8px); }
  100% { transform: translate(4px, -10px); }
}

.widget-ufologia .flir-telemetry-row {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: #38d9d9;
  font-weight: 700;
}

/* ==========================================================================
   3. ALERTAS: EMERGENCY BROADCAST SYSTEM (EAS) / DEFCON
   ========================================================================== */
.cat-theme-alertas {
  --cat-accent: #ff5a4e;
}

.cat-theme-alertas .cat-hero-badge .cat-beacon {
  background: #ff5a4e;
  box-shadow: 0 0 12px #ff5a4e;
  animation: alert-beacon-fast 0.9s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes alert-beacon-fast {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0.9); }
  70% { box-shadow: 0 0 0 10px rgba(255, 90, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); }
}

.widget-alertas .alert-defcon-matrix {
  display: flex;
  gap: 6px;
  width: 100%;
}

.widget-alertas .defcon-box {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  color: #63757e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-alertas .defcon-box.active-2 {
  background: rgba(255, 90, 78, 0.18);
  color: #ff5a4e;
  border-color: #ff5a4e;
  box-shadow: 0 0 14px rgba(255, 90, 78, 0.35);
}

.widget-alertas .alert-ticker-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 90, 78, 0.08);
  border: 1px solid rgba(255, 90, 78, 0.25);
  border-radius: 4px;
  font-size: 9px;
  color: #ff7d73;
}

.widget-alertas .pulse-light {
  width: 8px;
  height: 8px;
  background: #ff5a4e;
  border-radius: 50%;
  animation: alert-flash 0.8s infinite alternate;
}

@keyframes alert-flash {
  from { opacity: 0.3; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px #ff5a4e; }
}

/* ==========================================================================
   4. CONSPIRACIONES: CIA BLACK OPS / DOSSIER CLASIFICADO
   ========================================================================== */
.cat-theme-conspiraciones {
  --cat-accent: #e28989;
}

.widget-conspiraciones .cia-stamp-box {
  border: 2px solid #e28989;
  padding: 8px 12px;
  text-align: center;
  color: #e28989;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(226, 137, 137, 0.08);
  transform: rotate(2deg);
  width: fit-content;
  margin: 0 auto;
}

.widget-conspiraciones .audio-spool-monitor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px;
  background: rgba(6, 9, 12, 0.95);
  border: 1px solid rgba(226, 137, 137, 0.2);
  border-radius: 6px;
}

.widget-conspiraciones .tape-spool {
  width: 44px;
  height: 44px;
  border: 2px solid #e28989;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tape-turn 4s linear infinite;
}

@keyframes tape-turn {
  to { transform: rotate(360deg); }
}

.widget-conspiraciones .spool-hole {
  width: 10px;
  height: 10px;
  background: #e28989;
  border-radius: 50%;
}

.widget-conspiraciones .cable-quote {
  font-size: 8.5px;
  line-height: 1.5;
  color: #c9b3b3;
  font-style: italic;
  padding-left: 10px;
  border-left: 2px solid #e28989;
}

/* ==========================================================================
   5. MISTERIOS DE INTERNET: TERMINAL CRIPTOGRÁFICO / CRT
   ========================================================================== */
.cat-theme-misterios-internet {
  --cat-accent: #5bb7e6;
}

.widget-internet .crt-screen {
  background: #02070c;
  border: 1px solid #5bb7e6;
  border-radius: 6px;
  padding: 14px;
  box-shadow: inset 0 0 20px rgba(91, 183, 230, 0.15), 0 0 15px rgba(91, 183, 230, 0.1);
  position: relative;
  overflow: hidden;
}

.widget-internet .crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 4px
  );
  pointer-events: none;
}

.widget-internet .crt-freq-bar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: #5bb7e6;
  margin-bottom: 10px;
}

.widget-internet .audio-waterfall {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 38px;
  margin-bottom: 12px;
}

.widget-internet .waterfall-bar {
  flex: 1;
  background: #5bb7e6;
  border-radius: 1px;
  animation: waterfall-dance 1.4s infinite alternate ease-in-out;
}

.widget-internet .waterfall-bar:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.widget-internet .waterfall-bar:nth-child(3) { animation-delay: 0.3s; height: 90%; }
.widget-internet .waterfall-bar:nth-child(4) { animation-delay: 0.2s; height: 40%; }
.widget-internet .waterfall-bar:nth-child(5) { animation-delay: 0.4s; height: 80%; }
.widget-internet .waterfall-bar:nth-child(6) { animation-delay: 0.15s; height: 100%; }
.widget-internet .waterfall-bar:nth-child(7) { animation-delay: 0.35s; height: 50%; }
.widget-internet .waterfall-bar:nth-child(8) { animation-delay: 0.25s; height: 75%; }

@keyframes waterfall-dance {
  from { transform: scaleY(0.4); opacity: 0.6; }
  to { transform: scaleY(1); opacity: 1; }
}

.widget-internet .hex-dump {
  font-size: 7.5px;
  color: #6daecc;
  line-height: 1.4;
  letter-spacing: 1px;
}

/* ==========================================================================
   6. CASOS SIN RESOLVER: FORENSIC COLD CASE EVIDENCE BOARD
   ========================================================================== */
.cat-theme-misterios {
  --cat-accent: #5ed4d4;
}

.widget-casos .case-pin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(94, 212, 212, 0.12);
  border: 1px solid rgba(94, 212, 212, 0.35);
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #5ed4d4;
  width: fit-content;
}

.widget-casos .evidence-tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-casos .evidence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 8px;
  color: #9cb0b8;
}

.widget-casos .evidence-tag-badge {
  color: #5ed4d4;
  font-weight: 700;
}

/* ==========================================================================
   7. CIENCIA EXTRAÑA: LABORATORIO ASTROFÍSICO & MATRIZ CUÁNTICA
   ========================================================================== */
.cat-theme-fenomenos-extranos {
  --cat-accent: #45c5c5;
}

.widget-ciencia .spectroscopy-graph {
  width: 100%;
  height: 110px;
  background: rgba(4, 9, 13, 0.95);
  border: 1px solid rgba(69, 197, 197, 0.3);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.widget-ciencia .wave-canvas {
  width: 100%;
  height: 60px;
  background-image: radial-gradient(circle at 50% 50%, rgba(69, 197, 197, 0.15) 0%, transparent 70%);
}

.widget-ciencia .quantum-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 8px;
}

.widget-ciencia .q-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.widget-ciencia .q-stat-val {
  color: #45c5c5;
  font-weight: 700;
  font-size: 10px;
}

/* ==========================================================================
   8. HISTORIA OCULTA: ARQUEOLOGÍA & CUADERNO DE EXPEDICIÓN
   ========================================================================== */
.cat-theme-enigmas-historicos {
  --cat-accent: #dfc187;
}

.widget-historia .ancient-compass-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgba(14, 12, 8, 0.9);
  border: 1px solid rgba(223, 193, 135, 0.3);
  border-radius: 6px;
}

.widget-historia .compass-ring {
  width: 60px;
  height: 60px;
  border: 1.5px solid #dfc187;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-historia .compass-needle {
  position: absolute;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, #dfc187 50%, rgba(223, 193, 135, 0.3) 50%);
  transform: rotate(34deg);
}

.widget-historia .archaeo-data-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8px;
  color: #c4b59b;
}

.widget-historia .stratum-badge {
  color: #dfc187;
  font-weight: 800;
  font-size: 9.5px;
}

/* ==========================================================================
   9. PARANORMAL: GABINETE PSICOFÓNICO / MONITOR EVP
   ========================================================================== */
.cat-theme-paranormal {
  --cat-accent: #a994e6;
}

.widget-paranormal .evp-oscilloscope {
  width: 100%;
  height: 120px;
  background: #06040a;
  border: 1px solid #a994e6;
  border-radius: 6px;
  box-shadow: inset 0 0 15px rgba(169, 148, 230, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.widget-paranormal .evp-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(169, 148, 230, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 148, 230, 0.08) 1px, transparent 1px);
  background-size: 15px 15px;
}

.widget-paranormal .evp-soundwave-svg {
  width: 100%;
  height: 50px;
  z-index: 2;
}

.widget-paranormal .evp-soundwave-svg path {
  stroke: #a994e6;
  stroke-width: 1.5;
  fill: none;
  animation: evp-pulse 1.8s infinite alternate;
}

@keyframes evp-pulse {
  from { filter: drop-shadow(0 0 2px #a994e6); }
  to { filter: drop-shadow(0 0 8px #a994e6); }
}

.widget-paranormal .evp-telemetry {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a994e6;
  font-weight: 700;
}

/* ==========================================================================
   10. CREEPYPASTA: CINTA VHS MALDITA / TERROR ANALÓGICO
   ========================================================================== */
.cat-theme-creepypasta {
  --cat-accent: #c56464;
}

.widget-creepypasta .vhs-monitor {
  background: #080303;
  border: 1px solid #c56464;
  border-radius: 6px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(197, 100, 100, 0.15);
}

.widget-creepypasta .vhs-rec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.widget-creepypasta .rec-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c56464;
  box-shadow: 0 0 10px #c56464;
  animation: vhs-rec-blink 1s infinite alternate;
}

@keyframes vhs-rec-blink {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.widget-creepypasta .vhs-timecode {
  font-size: 12px;
  letter-spacing: 2px;
  color: #c56464;
  margin-bottom: 14px;
}

.widget-creepypasta .vhs-warning-box {
  padding: 8px 10px;
  background: rgba(197, 100, 100, 0.12);
  border: 1px dashed rgba(197, 100, 100, 0.4);
  font-size: 7.5px;
  color: #e09494;
  line-height: 1.4;
  letter-spacing: 1px;
}

/* ==========================================================================
   11. SINGLE CPT DOSSIER THEMATIC IDENTITY (single-infonico_story.php)
   ========================================================================== */

/* Barra Temática Arquitectónica Superior del Expediente */
.cat-dossier-thematic-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(var(--cat-accent-rgb, 56, 217, 217), 0.08);
  border: 1px solid rgba(var(--cat-accent-rgb, 56, 217, 217), 0.35);
  border-radius: 6px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.thematic-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thematic-banner-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thematic-kicker {
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffffff;
}

.thematic-sub {
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--cat-accent, #38d9d9);
  text-transform: uppercase;
}

.thematic-banner-stamp {
  font-family: monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cat-accent, #38d9d9);
  padding: 5px 12px;
  border: 1.5px solid var(--cat-accent, #38d9d9);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Marca de Agua Monumental Temática en el Hero */
.cat-dossier-watermark {
  position: absolute;
  right: 4%;
  top: 18%;
  font-family: var(--sans);
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--cat-accent, #38d9d9);
  opacity: 0.045;
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
  line-height: 1;
}

/* Insignia Temática en el Marco de la Imagen Principal */
.cat-figure-thematic-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  font-family: monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  background: rgba(6, 10, 14, 0.92);
  border: 1px solid var(--cat-accent, #38d9d9);
  color: var(--cat-accent, #38d9d9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Personalidad en la Barra Lateral HUD Sticky */
.cat-theme-war-gov-ufo .sidebar-hud-deck {
  border-color: rgba(56, 217, 217, 0.3);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 217, 217, 0.08);
}

.cat-theme-conspiraciones .sidebar-hud-deck {
  border-color: rgba(226, 137, 137, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 137, 137, 0.1);
}

.cat-theme-misterios-internet .sidebar-hud-deck {
  border-color: rgba(91, 183, 230, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(91, 183, 230, 0.12);
}

.cat-theme-creepypasta .sidebar-hud-deck {
  border-color: rgba(197, 100, 100, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(197, 100, 100, 0.15);
}

.cat-theme-creepypasta .dossier-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.cat-theme-alertas .sidebar-hud-deck {
  border-color: rgba(255, 90, 78, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 90, 78, 0.12);
}

.cat-theme-paranormal .sidebar-hud-deck {
  border-color: rgba(169, 148, 230, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(169, 148, 230, 0.1);
}

.cat-theme-fenomenos-extranos .sidebar-hud-deck {
  border-color: rgba(69, 197, 197, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(69, 197, 197, 0.1);
}

.cat-theme-enigmas-historicos .sidebar-hud-deck {
  border-color: rgba(223, 193, 135, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 193, 135, 0.1);
}

.cat-theme-misterios .sidebar-hud-deck {
  border-color: rgba(94, 212, 212, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(94, 212, 212, 0.1);
}

