/*
  CirusDev incremental visual override (v1)
  Goal: modern technical palette without structural template changes.
*/

:root {
  --cdv-tech-accent: #0f62fe;
  --cdv-tech-accent-2: #00a3ff;
  --cdv-tech-bg-soft: #f5f9ff;
  --cdv-tech-border: #d9e6ff;
  --cdv-tech-text: #0f172a;
}

/* Keep layout intact, only tune color language */
:root,
body {
  --ghost-accent-color: var(--cdv-tech-accent);
  --background-color: #ffffff;
}

/* Subtle technical identity for the top area */
.gh-header.is-classic {
  position: relative;
  overflow: hidden;
}

.gh-header.is-classic.has-image .gh-header-image {
  filter: none;
}

.gh-header.is-classic.has-image::after {
  display: none;
}

.gh-header.is-classic .gh-header-inner {
  position: relative;
  z-index: 2;
  color: #f8fbff;
}

/* Navigation and footer stay clean, just sharper contrast */
.gh-navigation,
.gh-footer {
  color: var(--cdv-tech-text);
}

.gh-navigation {
  border-bottom: 1px solid var(--cdv-tech-border);
}

.gh-navigation .gh-button,
.gh-form .gh-button,
.gh-about .gh-button {
  background: linear-gradient(90deg, var(--cdv-tech-accent), var(--cdv-tech-accent-2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(15, 98, 254, 0.25);
}

.gh-navigation .gh-button:hover,
.gh-form .gh-button:hover,
.gh-about .gh-button:hover {
  filter: brightness(1.03);
}

/* Cards: Liebling-like cleaner border and lift on hover */
.gh-card {
  border: 1px solid var(--cdv-tech-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

/* Inputs and pills aligned with new palette */
.gh-form {
  background-color: #ffffff;
  border: 1px solid var(--cdv-tech-border);
}

.gh-header .gh-form {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.gh-form-input::placeholder {
  color: #64748b;
}

.gh-article-tag,
.gh-card-tag,
.gh-container-title,
.gh-sidebar-title {
  color: var(--cdv-tech-accent);
}

/* Keep long pages readable */
.gh-content a {
  color: #0b57d0;
}

.gh-content a:hover {
  color: #003a9b;
}

@media (max-width: 767px) {
  .gh-header.is-classic.has-image .gh-header-image {
    object-position: left center; /* Enfoca el gato a la izquierda en dispositivos móviles */
  }

  .gh-card {
    border-radius: 10px;
    padding: 10px;
  }
}

/* Ajustes premium para la caja de suscripción en la cabecera clásica */
.gh-header.is-classic.has-image .gh-form {
  max-width: 400px;
  height: 48px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, height 0.3s ease;
}

.gh-header.is-classic.has-image .gh-form .gh-form-input {
  padding-inline: 20px;
  font-size: 1.5rem;
}

.gh-header.is-classic.has-image .gh-form .gh-button {
  height: 38px;
  min-width: 110px;
  font-size: 1.5rem;
  padding-inline: 16px;
}

/* Desplazamiento horizontal responsivo para evitar superponer el texto del banner */
@media (min-width: 992px) {
  .gh-header.is-classic.has-image .gh-form {
    transform: translateX(-100px);
  }
}

@media (min-width: 1200px) {
  .gh-header.is-classic.has-image .gh-form {
    transform: translateX(-160px);
  }
}

/* Animación sutil y continua del título en móviles (ondas de luz y brillo de datos cibernético) */
@keyframes cdv-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes cdv-text-pulse {
  0% {
    filter: drop-shadow(0 0 2px rgba(0, 163, 255, 0.15));
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(0, 163, 255, 0.65));
  }
}

@media (max-width: 767px) {
  .gh-navigation-logo.is-title {
    background: linear-gradient(90deg, #0f62fe, #00a3ff, #6366f1, #0f62fe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cdv-shimmer 6s ease infinite, cdv-text-pulse 3s ease-in-out infinite alternate;
    font-weight: 800;
    letter-spacing: -0.015em;
  }
}

/* Lienzo de la red de partículas neuronal interactiva */
.gh-header-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Permite clicks a través de las partículas */
}

/* Efecto de respiración de luz cibernética localizado sobre la cabeza del gato */
.gh-header.is-classic.has-image::after {
  content: "";
  display: block; /* Habilita el overlay respirante */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 42%, rgba(0, 163, 255, 0.22) 0%, rgba(15, 98, 254, 0.05) 25%, transparent 60%);
  mix-blend-mode: screen;
  z-index: 1;
  animation: cdv-cat-glow 8s ease-in-out infinite alternate;
}

@keyframes cdv-cat-glow {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 0.95;
  }
}

/* Liebling-like post detail spacing overrides */
.gh-article-header .gh-article-image {
  margin-top: 0;
  margin-bottom: 28px;
}
