/*
Theme Name: SuperTecnoDroid Theme
Theme URI: https://supertecnodroid.com
Author: Walter Rosero
Description: Tema minimalista tech 100% responsive con modo oscuro, bloques IDE y sistema de compartir.
Version: 2.0.0
Text Domain: supertecnodroid
*/

/* ==========================================================
   SUPERTECNODROID — ESTILOS GLOBALES
   ========================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Fondo de cuadrícula de puntos */
.hero-dot-grid {
  background-image: radial-gradient(rgba(100, 116, 139, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dark .hero-dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Ocultar scrollbar en filtros horizontales */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Compensar navbar fijo en anclas */
html { scroll-padding-top: 4.25rem; }

/* Numeración de líneas para bloques IDE */
.ide-code-lines { counter-reset: line; }
.ide-code-lines .code-line {
  display: block;
  padding-left: 2.75rem;
  position: relative;
  min-height: 1.45em;
}
.ide-code-lines .code-line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 2rem;
  text-align: right;
  color: #475569;
  user-select: none;
  font-size: 0.72rem;
}

/* Scrollbar estilizada del IDE */
.ide-scrollbar::-webkit-scrollbar { height: 7px; width: 7px; }
.ide-scrollbar::-webkit-scrollbar-track { background: #080D1A; border-radius: 9999px; }
.ide-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #2563EB, #10B981);
  border-radius: 9999px;
}
.ide-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #3B82F6, #34D399);
}

/* Tooltip flotante */
#std-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
#std-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Paginación nativa WP (page-numbers) */
.page-numbers {
  display: flex;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}
.page-numbers li a,
.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #334155;
  transition: all 0.2s ease;
}
.dark .page-numbers li a,
.dark .page-numbers li span {
  border-color: #1E293B;
  background-color: #111827;
  color: #CBD5E1;
}
.page-numbers li a:hover { border-color: #2563EB; color: #2563EB; }
.page-numbers li span.current {
  background-color: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}


/* COLORES OFICIALES DE PRISM.JS - TEMA SUPERTECNODROID */
code[class*="language-"], pre[class*="language-"] {
  color: #E2E8F0 !important;
  text-shadow: none !important;
}
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #64748B !important; }
.token.punctuation { color: #94A3B8 !important; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #F472B6 !important; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #FCD34D !important; }
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #38BDF8 !important; }
.token.atrule, .token.attr-value, .token.keyword { color: #34D399 !important; }
.token.function, .token.class-name { color: #60A5FA !important; }
.token.regex, .token.important, .token.variable { color: #F59E0B !important; }
pre[class*=language-] {
    margin: 0 !important;
}
:not(pre)>code[class*=language-],pre[class*=language-] {
    background: none !important;
}