/*
 Theme Name: Alberto Escorcia — Hacker Intelligence
 Theme URI: https://albertoescorcia.com
 Description: Child theme for Alberto Escorcia — Black/green intelligence aesthetic
 Author: Alberto Escorcia
 Author URI: https://albertoescorcia.com
 Template: 2.6.6
 Version: 1.0.0
 Text Domain: alberto-escorcia
*/

/* ═══════════════════════════════════════════════════════════════
   VARIABLES — BLACK/GREEN HACKER INTELLIGENCE PALETTE
═══════════════════════════════════════════════════════════════ */
:root {
  --black:       #000000;
  --black-soft:  #080808;
  --black-panel: #0d0d0d;
  --black-card:  #111111;
  --black-border:#1a1a1a;
  --green:       #00ff41;
  --green-dim:   #00cc33;
  --green-muted: #007a1e;
  --green-glow:  rgba(0,255,65,0.15);
  --green-glow2: rgba(0,255,65,0.06);
  --white:       #f0f0f0;
  --grey:        #888888;
  --grey-dim:    #444444;
  --font-mono:   'Share Tech Mono', 'Courier New', monospace;
  --font-display:'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE FONTS IMPORT
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET & BASE
═══════════════════════════════════════════════════════════════ */
html, body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
}

body {
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,255,65,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0,255,65,0.03) 0%, transparent 50%);
  min-height: 100vh;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--white) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 4rem) !important; font-weight: 700 !important; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem) !important; font-weight: 600 !important; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem) !important; }

p, li, td { color: #c8c8c8 !important; line-height: 1.7 !important; }

a {
  color: var(--green) !important;
  text-decoration: none !important;
  transition: color 0.2s, text-shadow 0.2s !important;
}
a:hover {
  color: #fff !important;
  text-shadow: 0 0 8px var(--green) !important;
}

code, pre, .mono {
  font-family: var(--font-mono) !important;
  color: var(--green) !important;
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  border-left: 3px solid var(--green-dim) !important;
  padding: 0.2em 0.5em !important;
  font-size: 0.9em !important;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
#masthead,
.site-header,
.navbar,
nav,
.nav-wrap,
.menu-wrap {
  background: rgba(0,0,0,0.97) !important;
  border-bottom: 1px solid var(--black-border) !important;
  box-shadow: 0 0 20px rgba(0,255,65,0.05) !important;
}

.site-title a,
.site-branding a {
  color: var(--green) !important;
  font-family: var(--font-mono) !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.1em !important;
}

.site-title a::before {
  content: '> ';
  color: var(--green-dim);
  opacity: 0.7;
}

nav ul li a,
.nav-menu li a,
.main-navigation a {
  color: var(--grey) !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s, background 0.2s !important;
}

nav ul li a:hover,
.nav-menu li a:hover,
.main-navigation a:hover,
nav ul li.current-menu-item > a {
  color: var(--green) !important;
  background: var(--green-glow2) !important;
  text-shadow: 0 0 6px rgba(0,255,65,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO / HEADER AREA — HOMEPAGE
═══════════════════════════════════════════════════════════════ */
.site-hero,
.hero-section,
.header-image,
.wp-custom-header,
.orbital-header-image {
  background: var(--black-soft) !important;
  border-bottom: 1px solid var(--black-border) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Hero profile layout */
.hero-inner,
.header-image-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 4rem !important;
  padding: 5rem 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Profile photo */
.hero-photo,
.profile-photo,
.site-logo img,
.custom-logo {
  width: 220px !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  border: 2px solid var(--green-dim) !important;
  box-shadow:
    0 0 30px rgba(0,255,65,0.2),
    0 0 60px rgba(0,255,65,0.08),
    inset 0 0 20px rgba(0,0,0,0.5) !important;
  filter: contrast(1.05) !important;
  flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE HERO CUSTOM SECTION
═══════════════════════════════════════════════════════════════ */
.ae-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.ae-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--green-dim), transparent);
  opacity: 0.3;
}

.ae-hero-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 2px solid var(--green-dim);
  border-radius: 3px;
  box-shadow:
    0 0 40px rgba(0,255,65,0.15),
    0 0 80px rgba(0,255,65,0.06);
  position: relative;
}

.ae-hero-photo-wrap {
  position: relative;
}

.ae-hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--green-muted);
  border-radius: 3px;
  opacity: 0.4;
  animation: frame-pulse 3s ease-in-out infinite;
}

@keyframes frame-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

.ae-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ae-hero-label {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.ae-hero-label::before { content: '// '; opacity: 0.5; }

.ae-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
}

.ae-hero-name span {
  color: var(--green);
}

.ae-hero-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green-dim);
  letter-spacing: 0.08em;
}

.ae-hero-bio {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
  max-width: 560px;
  border-left: 2px solid var(--black-border);
  padding-left: 1rem;
}

.ae-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ae-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green-dim);
  border: 1px solid var(--green-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  background: var(--green-glow2);
  text-transform: uppercase;
}

.ae-hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.ae-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ae-stat-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--green);
  font-weight: bold;
}

.ae-stat-label {
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ═══════════════════════════════════════════════════════════════
   EXPERTISE GRID
═══════════════════════════════════════════════════════════════ */
.ae-expertise {
  background: var(--black-panel);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  padding: 3rem 2rem;
}

.ae-expertise-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ae-section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ae-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--black-border);
}

.ae-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--black-border);
  border: 1px solid var(--black-border);
}

.ae-grid-item {
  background: var(--black-card);
  padding: 1.5rem;
  position: relative;
  transition: background 0.3s;
}

.ae-grid-item:hover {
  background: var(--black-panel);
}

.ae-grid-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.ae-grid-item:hover::before {
  opacity: 1;
}

.ae-grid-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.ae-grid-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.ae-grid-desc {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA — LOGOS BAR
═══════════════════════════════════════════════════════════════ */
.ae-media {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ae-media-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.ae-media-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.ae-media-logo:hover {
  color: var(--green-dim);
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════════════════════════════ */
#content,
.site-content,
main {
  background: var(--black) !important;
}

.entry-content,
.post-content,
article {
  color: #c8c8c8 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS / POSTS
═══════════════════════════════════════════════════════════════ */
.post,
article,
.card,
.entry,
.blog-post {
  background: var(--black-card) !important;
  border: 1px solid var(--black-border) !important;
  border-radius: 0 !important;
  transition: border-color 0.3s, box-shadow 0.3s !important;
}

.post:hover,
article:hover {
  border-color: var(--green-muted) !important;
  box-shadow: 0 0 20px rgba(0,255,65,0.05) !important;
}

.entry-title a,
.post-title a {
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: color 0.2s !important;
}

.entry-title a:hover,
.post-title a:hover {
  color: var(--green) !important;
  text-shadow: none !important;
}

.entry-meta,
.post-meta,
.byline {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  color: var(--grey-dim) !important;
}

/* Category/tag badges */
.cat-links a,
.tag-links a,
.entry-footer a {
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  color: var(--green-dim) !important;
  border: 1px solid var(--green-muted) !important;
  padding: 0.15rem 0.4rem !important;
  background: var(--green-glow2) !important;
  margin-right: 0.3rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.sidebar,
#secondary,
aside {
  background: var(--black-panel) !important;
  border-left: 1px solid var(--black-border) !important;
}

.widget-title {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  color: var(--green-dim) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--black-border) !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.widget-title::before {
  content: '> ';
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.btn,
button,
input[type="submit"],
.wp-block-button__link,
.button {
  background: transparent !important;
  color: var(--green) !important;
  border: 1px solid var(--green-dim) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.button:hover {
  background: var(--green) !important;
  color: var(--black) !important;
  box-shadow: 0 0 20px rgba(0,255,65,0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS & SEARCH
═══════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  background: var(--black-card) !important;
  color: var(--white) !important;
  border: 1px solid var(--black-border) !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  padding: 0.5rem 0.75rem !important;
}

input:focus,
textarea:focus {
  border-color: var(--green-dim) !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(0,255,65,0.1) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#colophon,
.site-footer,
footer {
  background: var(--black-soft) !important;
  border-top: 1px solid var(--black-border) !important;
  color: var(--grey-dim) !important;
}

.site-info,
.footer-info {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  color: var(--grey-dim) !important;
  letter-spacing: 0.08em !important;
}

.site-info::before {
  content: '// ';
  color: var(--green-dim);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   SEPARATORS & DECORATIVE ELEMENTS
═══════════════════════════════════════════════════════════════ */
hr {
  border: none !important;
  border-top: 1px solid var(--black-border) !important;
}

blockquote {
  border-left: 3px solid var(--green-dim) !important;
  background: var(--black-card) !important;
  padding: 1rem 1.5rem !important;
  color: #aaa !important;
  font-style: italic !important;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--black-border); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--green-muted); }

/* ═══════════════════════════════════════════════════════════════
   CURSOR
═══════════════════════════════════════════════════════════════ */
* { cursor: default; }
a, button, [role="button"] { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   SELECTION
═══════════════════════════════════════════════════════════════ */
::selection {
  background: var(--green-dim);
  color: var(--black);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ae-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .ae-hero-photo-wrap { margin: 0 auto; }
  .ae-hero-tags { justify-content: center; }
  .ae-hero-stats { justify-content: center; }
  .ae-hero-bio { border-left: none; padding-left: 0; }
  .ae-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .ae-grid { grid-template-columns: 1fr; }
  .ae-hero-stats { flex-wrap: wrap; gap: 1rem; }
}
/* Fix — fondo negro en área de contenido */
.entry-content,
.entry-content *,
.post-content,
.site-main,
.content-area,
#primary,
.hentry,
.page-content,
.page,
.single .entry-content {
  background: #000000 !important;
  color: #c8c8c8 !important;
}

/* Fix — fondo negro en wrapper general */
.wrap,
.container,
.content-wrapper,
#page {
  background: #000000 !important;
}