/* ==========================================================================
   KURAGEWEB v1.7.6 - MASTER STABLE (UNIFIED BOX SYSTEM + FX)
   ========================================================================== */

:root {
  --bg-color: #1e1e2e;s
  --bg-darker: #181825;
  --text-color: #cdd6f4;
  --accent-color: #89b4fa;
  --border-color: #313244;
  --pink: #f5c2e7;
  --green: #a6e3a1;
  --peach: #fab387;
  --lavender: #b4befe;
  --yellow: #f9e2af;
  --font-main: 'JetBrains Mono', 'Fira Code', monospace;
}

/* 1. LAYOUT BASE */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  margin: 0;
  padding: 2rem 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#global-header, main, #global-footer {
  width: 95%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#global-header, section, #global-footer {
  border-bottom: 1px solid var(--border-color);
/*  background-color: var(--bg-darker);*/
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

/* 2. HEADER & JELLYFISH */
#global-header {
  display: flex !important;
  align-items: center;
  gap: 3rem;
}

.jellyfish-ascii {
  white-space: pre;
  line-height: 1.3;
  font-size: 12px;
  color: var(--pink);
  animation: floatJelly 4s ease-in-out infinite, glowJelly 2.5s ease-in-out infinite alternate;
}

@keyframes floatJelly { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowJelly { from { filter: drop-shadow(0 0 2px var(--pink)); opacity: 0.8; } to { filter: drop-shadow(0 0 10px var(--pink)); opacity: 1; } }

/* 3. TIPOGRAFÍA & LINKS */
h1, h2, h3 { font-weight: normal; margin: 0; }
h2 { color: var(--accent-color); }
h2::before { content: "> "; color: var(--pink); }

a { color: var(--accent-color); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--green); background: rgba(166, 227, 161, 0.1); }

/* 4. BLOG (Semantic Void) */
.blog-item {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid transparent;
  border-bottom-color: var(--border-color);
  transition: all 0.3s ease;
}
.blog-item:hover {
  border-color: var(--border-color);
  background: rgba(255,255,255,0.02);
}
.blog-title a { color: var(--pink) !important; font-size: 1.5rem; }

/* 5. LOGS (Neural Drift) */
.log-entry { border-left: 2px solid var(--pink); padding-left: 1.5rem; margin-bottom: 2.5rem; position: relative; }
.log-entry::before {
  content: "";
  position: absolute; top: 0; left: -5px;
  width: 8px; height: 8px;
  background-color: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pink);
}

.clickable-tag { cursor: pointer; color: var(--accent-color); padding: 0 4px; border-radius: 3px; transition: 0.2s; }
.spoiler {
  background-color: var(--border-color); color: transparent !important;
  text-shadow: 0 0 8px rgba(205, 214, 244, 0.5); cursor: pointer;
  transition: all 0.4s ease; border-radius: 3px; padding: 0 2px;
}
.spoiler:hover { background-color: transparent; color: var(--text-color) !important; text-shadow: none; }

/* 6. ARTIFACT MANIFEST (WOK) */
.wok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  .wok img { height: 100px; border-radius: 4px; }
}

/* 7. FOOTER */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  width: 100%;
}

.footer-left, .footer-center, .footer-right { flex: 1; font-size: 0.75rem; }
.footer-center { display: flex; gap: 15px; justify-content: center; }
.footer-right { text-align: right; color: var(--peach); opacity: 0.8; }
.footer-status { color: var(--green); font-weight: bold; }

.flicker-text { animation: statusFlicker 3s linear infinite; }
@keyframes statusFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.3; }
}

/* 8. RESPONSIVE ENGINE */
@media (min-width: 1024px) { #global-header, main, #global-footer { width: 70%; } }
@media (max-width: 768px) {
  #global-header, section, #global-footer, main { width: 97% !important; padding: 0; gap: 1rem; }
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { text-align: center; }
  #global-header{ gap:.5rem; padding:0; padding-bottom: 30px;}
  .jellyfish-ascii{padding:0;  }
  .post-content {text-align: justify;overflow: hidden}
}
@media (max-width: 600px) {
  .blog-content-wrapper { flex-direction: column-reverse; gap: 1rem; }
  .blog-aside-media { width: 100%; height: 160px; clip-path: none; }
}

/* 9. MEDIA ELEMENTS (General) */
.log-entry img, .log-entry video {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
  border-radius: 4px;
}

/* 10. BLOG DATA BLOCK (Thumbnails + CRT FX) */
/* --- BLOG QUOTES: DATA_FRAGMENT STYLE --- */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, rgba(49, 50, 68, 0.4) 0%, rgba(30, 30, 46, 0) 100%);
  border-left: 3px solid var(--pink);
  position: relative;
  font-style: italic;
  color: var(--text-color);
  line-height: 1.8;
}

/* El "Badge" de la parte superior */
blockquote::before {
  content: "SOURCE_STRING // CITA";
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--bg-darker);
  color: var(--pink);
  font-size: 0.65rem;
  font-weight: bold;
  padding: 0 8px;
  border: 1px solid var(--pink);
  font-style: normal;
  letter-spacing: 1px;
}

/* El adorno de esquina inferior (HUD style) */
blockquote::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-right: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

/* Resalte para las comillas o texto importante dentro */
blockquote strong {
  color: var(--yellow);
  text-shadow: 0 0 5px rgba(249, 226, 175, 0.3);
}
.blog-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 1rem;
}

.blog-text { flex: 1; }

.blog-aside-media {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  overflow: hidden;
}

/* Efecto Scanlines (Monitor Antiguo) */
.blog-aside-media::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
  linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  z-index: 2;
  pointer-events: none;
}

.blog-aside-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(100%) contrast(110%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-item:hover .blog-aside-media img {
  opacity: 1;
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.08);
}

/* Glitch Overlay Reactivo */
.blog-item:hover .blog-aside-media::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--pink);
  opacity: 0.05;
  animation: glitch-fx 0.15s infinite;
  z-index: 3;
}

@keyframes glitch-fx {
  0% { transform: translate(0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0); }
}

/* --- ANIMACIÓN DE CARGA DE TÍTULO --- */
.blog-title a {
  color: var(--pink) !important;
  font-size: 1.5rem;
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  animation: titleReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Efecto de parpadeo de datos al aparecer */
@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateX(-15px);
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--green);
  }
  50% {
    opacity: 0.5;
    text-shadow: none;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 8px rgba(245, 194, 231, 0.3);
  }
}

/* Delay escalonado para que los títulos carguen uno tras otro */
.blog-item:nth-child(1) .blog-title a { animation-delay: 0.1s; }
.blog-item:nth-child(2) .blog-title a { animation-delay: 0.2s; }
.blog-item:nth-child(3) .blog-title a { animation-delay: 0.3s; }

/* --- POST PAGE TITLE: PINK DATA REVEAL --- */
.full-post h1 {
  color: var(--pink);
  font-size: 2.2rem;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;

  /* Estado inicial antes de la animación */
  opacity: 0;
  transform: translateY(5px);

  /* Animación de entrada */
  animation: postTitleLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

/* El efecto de la línea de carga debajo del título */
.full-post h1::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: lineExpand 0.6s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes postTitleLoad {
  0% {
    opacity: 0;
    transform: translateY(10px);
    /* Glitch de colores inicial (Aberración Cromática) */
    text-shadow: 3px 0 var(--accent-color), -3px 0 var(--green);
  }
  20% {
    opacity: 0.5;
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--green);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 12px rgba(245, 194, 231, 0.4);
  }
}

@keyframes lineExpand {
  to { width: 100%; }
}

/*cursor*/
/* Bloque Rosa Corto (Normal) */
html, body {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB4PSI0IiB5PSIyIiB3aWR0aD0iOCIgaGVpZ2h0PSIxMiIgZmlsbD0iI2Y1YzJlNyIgc3R5bGU9ImZpbHRlcjpkcm9wLXNoYWRvdygwIDAgMnB4ICNmNWMyZTcpIi8+PC9zdmc+"), auto !important;
}

/* 2. Estado Activo (Hover): Mismo Bloque, Verde Corto (8x12px) + Glow Potente | Hotspot: Centro Exacto (4 6) */
a,
button,
.clickable-tag,
.spoiler,
.blog-aside-media,
input[type="submit"] {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB4PSI0IiB5PSIyIiB3aWR0aD0iOCIgaGVpZ2h0PSIxMiIgZmlsbD0iI2E2ZTNhMSIgc3R5bGU9ImZpbHRlcjpkcm9wLXNoYWRvdygwIDAgM3B4ICNhNmUzYTEpIi8+PC9zdmc+"), pointer !important;
}