/* =============================================
   iamEscri — main.css
   Hacker aesthetic: dark, neon green, mono fonts
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --bg: #080b0f;
  --bg2: #0d1117;
  --bg3: #111820;
  --surface: #131c27;
  --surface2: #1a2535;
  --border: #1e2d3d;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0,255,136,0.15);
  --green-glow2: rgba(0,255,136,0.05);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --red: #ff4757;
  --orange: #ff9f43;
  --blue: #4ecdc4;
  --purple: #a29bfe;
  --yellow: #ffd32a;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== SCANLINES ===== */
body::before {
  content: '';
  position: fixed;
  inset: 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;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.avatar-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 20px var(--green-glow);
  overflow: hidden;
  margin-bottom: 16px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.site-name {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
}

.site-tag {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1.5;
  border-left: 2px solid var(--green);
  padding-left: 8px;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 24px 0; }

.nav-section {
  padding: 0 24px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover { color: var(--text-dim); background: rgba(255,255,255,0.02); }
.nav-item.active { color: var(--green); background: var(--green-glow2); border-left-color: var(--green); }
.nav-item i { width: 16px; text-align: center; font-size: 14px; }

.nav-badge {
  margin-left: auto;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

.nav-item.active .nav-badge { background: var(--green-glow); color: var(--green); }

.recent-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 24px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.recent-sidebar-item:hover { color: var(--text-dim); background: rgba(255,255,255,0.02); border-left-color: var(--border); }
.recent-sidebar-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dim);
}
.recent-sidebar-meta { display: flex; justify-content: space-between; align-items: center; }
.recent-sidebar-cat {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
}
.cat--writeup  { color: #4ade80; background: rgba(74,222,128,0.08); }
.cat--blog     { color: #fb923c; background: rgba(251,146,60,0.08); }
.cat--defensive{ color: #60a5fa; background: rgba(96,165,250,0.08); }
.cat--projects { color: #a78bfa; background: rgba(167,139,250,0.08); }
.recent-sidebar-date { font-size: 10px; color: var(--text-muted); opacity: 0.6; }

.sidebar-contact {
  padding: 0 16px 14px;
}
.sidebar-contact .nav-section { margin-bottom: 8px; }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.contact-row:hover .c-val { color: var(--green); }
.c-prompt { color: var(--green); font-size: 11px; flex-shrink: 0; font-family: var(--font-mono); }
.c-key { color: var(--text-muted); font-size: 10px; font-family: var(--font-mono); min-width: 52px; flex-shrink: 0; }
.c-val { color: var(--text-dim); font-size: 10px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.social-links { display: flex; gap: 16px; margin-bottom: 16px; }
.social-links a { color: var(--text-muted); font-size: 16px; transition: color 0.2s; }
.social-links a:hover { color: var(--green); }

.status-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }

/* Mobile hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 14px; left: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
}

.overlay.show { display: block; }

/* ===== MAIN ===== */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(8,11,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.breadcrumb span { color: var(--green); }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-glow); }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-family: var(--font-mono); font-size: 12px; width: 180px; }
.search-bar i { font-size: 12px; }

/* ===== CONTENT ===== */
.content { padding: 40px; max-width: 1200px; }
.content:has(#section-home.active) { max-width: none; }
.content:has(#section-portfolio.active) { max-width: none; }
.content:has(#section-writeups.active) { max-width: none; }
.content:has(#section-blog.active) { max-width: none; }
.content:has(#section-defensive.active) { max-width: none; }
.content:has(#section-projects.active) { max-width: none; }

/* Sin max-width en páginas de post/writeup/proyecto/defensiva para que el grid ocupe todo */
.content:has(.post-layout) { max-width: none; }

/* ===== SECTIONS ===== */
.section { display: none; }
.section.active { display: block; }

.section-header { margin-bottom: 40px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-title .accent { color: var(--green); }
.section-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 560px; }

/* ===== HOME / DASHBOARD ===== */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.terminal-bar {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.terminal-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-left: 8px; }

.terminal-body { padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.t-line { display: flex; gap: 8px; }
.t-prompt { color: var(--green); }
.t-cmd { color: var(--text); }
.t-out { color: var(--text-dim); padding-left: 16px; }
.t-out.green { color: var(--green); }
.t-out.muted { color: var(--text-muted); }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--green); animation: blink 1s infinite; vertical-align: middle; margin-left: 4px; }
.t-file { color: var(--green); margin-right: 16px; display: inline-block; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stats-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .stats-grid--four { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover { border-color: var(--green); transform: translateY(-2px); }
.stat-number { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.stat-icon { font-size: 24px; margin-bottom: 12px; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* ===== HOME HERO GRID ===== */
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}
.home-hero-grid .hero-terminal { margin-bottom: 0; }

/* ===== HERO SIDE PANEL ===== */
.hero-side { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.hero-side .side-widget { flex: 1; }
.hero-side .avail-widget { flex: 0 0 auto; }

.side-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.side-widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dev items (cert/proyecto en desarrollo) */
.dev-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dev-item:last-child { border-bottom: none; padding-bottom: 0; }
.dev-item-icon { font-size: 24px; flex-shrink: 0; }
.dev-item-info { flex: 1; min-width: 0; }
.dev-item-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dev-item-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.dev-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(254,188,46,.1);
  color: #febc2e;
  border: 1px solid rgba(254,188,46,.25);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Stack tags */
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  color: var(--text-muted);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.stack-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,136,0.04);
}

/* Disponibilidad */
.avail-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(0,255,136,0.25) !important;
  text-align: center;
}
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.2)} }
.avail-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.avail-title { font-size: 13px; font-weight: 600; color: var(--green); }
.avail-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.avail-linkedin {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.avail-widget--link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.avail-widget--link:hover {
  border-color: rgba(0,255,136,0.5) !important;
  background: rgba(0,255,136,0.04);
}
.avail-widget--link:hover .avail-linkedin {
  background: rgba(0,255,136,0.1);
  border-color: rgba(0,255,136,0.6);
}

/* Terminal goals extras */
.t-comment { color: var(--text-muted); }
.t-ok { color: var(--green); margin-right: 6px; }
.t-pend { color: var(--text-muted); margin-right: 6px; }

/* 3-column home grid */
.home-grid--three { grid-template-columns: 1fr 1fr 1fr; }

/* ===== ROADMAP CERTS ===== */
.roadmap-list { display: flex; flex-direction: column; }
.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.roadmap-item:last-child { border-bottom: none; }
.roadmap-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.status-done .roadmap-dot { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.status-wip .roadmap-dot { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,.4); animation: pulse 2s infinite; }
.status-next .roadmap-dot { background: var(--border); }

.roadmap-info { flex: 1; min-width: 0; }
.roadmap-name { font-size: 12px; font-weight: 600; color: var(--text); }
.roadmap-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.roadmap-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.roadmap-badge.done { background: rgba(0,255,136,.1); color: var(--green); border: 1px solid rgba(0,255,136,.2); }
.roadmap-badge.wip  { background: rgba(254,188,46,.1); color: #febc2e; border: 1px solid rgba(254,188,46,.2); }
.roadmap-badge.next { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }


.home-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.home-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover .recent-title { color: var(--green); }

.recent-num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--border);
  font-weight: 700;
  min-width: 32px;
}
.recent-title { font-size: 13px; color: var(--text-dim); margin-bottom: 3px; font-weight: 500; }
.recent-date { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.platform-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
  flex-shrink: 0;
}
.pill-dockerlabs { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.pill-hackthebox { background: rgba(159,239,0,0.1); color: #9fef00; border: 1px solid rgba(159,239,0,0.2); }
.pill-tryhackme { background: rgba(136,45,45,0.2); color: #ff4757; border: 1px solid rgba(255,71,87,0.2); }
.pill-vulnyx { background: rgba(78,205,196,0.1); color: var(--blue); border: 1px solid rgba(78,205,196,0.2); }

/* ===== WRITEUPS ===== */
.platform-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.platform-tab:hover { border-color: var(--text-dim); color: var(--text); }
.platform-tab.active { background: var(--green-glow); border-color: var(--green); color: var(--green); }

.tab-count {
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
}

.platform-tab.active .tab-count { background: rgba(0,255,136,0.2); }

.writeups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.writeup-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.writeup-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.writeup-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,255,136,0.08); }
.writeup-card:hover::before { transform: scaleX(1); }
.writeup-card.hidden { display: none; }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.card-platform { font-size: 10px; }

.diff-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.diff-very-easy { background: rgba(78,205,196,0.1); color: var(--blue); border: 1px solid rgba(78,205,196,0.2); }
.diff-easy { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.diff-medium { background: rgba(255,159,67,0.1); color: var(--orange); border: 1px solid rgba(255,159,67,0.2); }
.diff-hard { background: rgba(255,71,87,0.1); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }
/* Etiquetas en español */
.diff-muy-facil { background: rgba(78,205,196,0.1); color: var(--blue); border: 1px solid rgba(78,205,196,0.2); }
.diff-facil { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.diff-medio { background: rgba(255,159,67,0.1); color: var(--orange); border: 1px solid rgba(255,159,67,0.2); }
.diff-dificil { background: rgba(255,71,87,0.1); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }

.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover {
  border-color: var(--green);
  color: var(--green);
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.tool-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.card-os { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* ===== PORTFOLIO ===== */
.portfolio-layout { display: grid; grid-template-columns: 340px 1fr; gap: 32px; }

.profile-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* Avatar más grande y con animación de pulso */
.profile-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 3px solid var(--green);
  box-shadow: 0 0 0 6px rgba(0,255,136,0.07), 0 0 40px var(--green-glow);
  margin: 0 auto 20px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
  animation: avatar-pulse 3s ease-in-out infinite;
}
@keyframes avatar-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(0,255,136,0.07), 0 0 40px var(--green-glow); }
  50%       { box-shadow: 0 0 0 10px rgba(0,255,136,0.12), 0 0 60px rgba(0,255,136,0.25); }
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.profile-handle { font-family: var(--font-mono); font-size: 13px; color: var(--green); margin-bottom: 8px; }

/* Badge disponible para trabajo */
.profile-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.profile-available::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.profile-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: left;
}
.bio-highlight {
  color: var(--green);
  font-weight: 600;
}
.bio-secondary {
  color: var(--text);
}

/* Stats con más peso visual */
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.p-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  transition: border-color 0.2s, background 0.2s;
}
.p-stat:hover { border-color: var(--green); background: rgba(0,255,136,0.04); }
.p-stat-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--green); line-height: 1; }
.p-stat-label { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.profile-socials { display: flex; justify-content: center; gap: 16px; }
.profile-socials a { color: var(--text-muted); font-size: 18px; transition: color 0.2s; }
.profile-socials a:hover { color: var(--green); }

.portfolio-right { display: flex; flex-direction: column; min-width: 0; }

/* Contacto en profile-card */
.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.profile-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.profile-contact-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,136,0.04);
}
.profile-contact-link i {
  font-size: 13px;
  width: 14px;
  text-align: center;
  color: var(--green);
}

/* Objetivos en portfolio-right */
.obj-list { display: flex; flex-direction: column; gap: 8px; }
.obj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: default;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.obj-item:hover {
  border-color: var(--green);
  background: rgba(0,255,136,0.04);
  transform: translateX(4px);
}
.obj-item:hover .obj-text { color: var(--text); }
.obj-item:hover .obj-dot { box-shadow: 0 0 8px var(--green-glow); }
.obj-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
  transition: box-shadow 0.2s, background 0.2s;
}
.obj-item.done .obj-dot { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.obj-item.done .obj-text { color: var(--text); }
.obj-item.pending .obj-dot { background: var(--border); }
.obj-item.done:hover { border-color: var(--green); }
.obj-item.done:hover .obj-dot { box-shadow: 0 0 12px var(--green-glow); }

.skills-section { margin-bottom: 36px; }
.skills-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skills-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Skill bars más gruesas y con número animado */
.skill-item {
  margin-bottom: 0;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(30,45,61,0.6);
  border-radius: 6px;
  transition: background 0.18s ease;
  cursor: default;
}
.skill-item:last-child { border-bottom: none; }
.skill-item:hover { background: rgba(0,255,136,0.04); }
.skill-item:hover .skill-name { color: var(--green); }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.skill-name { font-size: 14px; font-weight: 500; color: var(--text); transition: color 0.18s ease; }
.skill-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 5px;
  line-height: 1.5;
}
.skill-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.skill-badge--avanzado {
  background: rgba(0,255,136,0.10);
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.25);
}
.skill-badge--intermedio {
  background: rgba(255,140,0,0.10);
  color: #ff9a3c;
  border: 1px solid rgba(255,140,0,0.28);
}
.skill-badge--aprendiendo {
  background: rgba(100,116,139,0.12);
  color: var(--text-dim);
  border: 1px solid rgba(100,116,139,0.28);
}

/* Cert cards con badge de status */
.certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  transition: background 0.2s;
}
.cert-card.obtained::before { background: var(--green); }
.cert-card.in-progress::before { background: var(--yellow); }
.cert-card:hover { border-color: var(--green); transform: translateY(-2px); }
.cert-icon { font-size: 22px; }
.cert-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cert-date { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.cert-status-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
  display: inline-block;
}
.cert-status-badge.obtained { background: rgba(0,255,136,0.1); color: var(--green); }
.cert-status-badge.in-progress { background: rgba(255,211,42,0.1); color: var(--yellow); }

/* Formación Complementaria */
.cert-card.complementary { opacity: 0.85; }
.cert-card.complementary::before { background: var(--border); }
.cert-card.complementary.completed::before { background: var(--blue); }
.cert-card.complementary:hover { border-color: var(--blue); }
.complementary-platform-icon { font-size: 22px; }
.complementary-platform-icon.udemy { color: #a435f0; }
.complementary-platform-icon.youtube { color: #ff0000; }
.cert-status-badge.complementary.completed { background: rgba(78,205,196,0.12); color: var(--blue); }
.cert-status-badge.complementary.in-progress { background: rgba(255,211,42,0.1); color: var(--yellow); }

/* Tool tags con icono Devicons */
.tool-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tool-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.2s;
}
.tool-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,136,0.04);
}
.tool-tag:hover img { filter: grayscale(0) brightness(1); }

/* ===== BLOG ===== */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.blog-posts {}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 24px;
}
.blog-card:hover { border-color: var(--green); transform: translateX(4px); }

.blog-card-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  min-width: 40px;
  line-height: 1;
}

.blog-card:hover .blog-card-num { color: var(--green); }

.blog-card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }

.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.05em;
}

.blog-sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.widget-title { font-family: var(--font-mono); font-size: 11px; color: var(--green); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; max-height: 200px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.tag-cloud::-webkit-scrollbar { width: 4px; }
.tag-cloud::-webkit-scrollbar-track { background: transparent; }
.tag-cloud::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.tag-cloud-item { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.tag-cloud-item:hover { border-color: var(--green); color: var(--green); }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}

.project-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,255,136,0.06); }

.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.project-icon { font-size: 26px; }
.project-links { display: flex; gap: 8px; align-items: center; }
.project-github-btn,
.project-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.project-github-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.project-github-btn i { font-size: 16px; }
.project-github-btn:hover {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}
.project-demo-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
}
.project-demo-btn:hover { border-color: var(--blue); color: var(--blue); }

.project-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.project-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.stack-badge { font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); }

.project-stats { display: flex; gap: 14px; }
.project-stat { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ===== PROJECT CLICKABLE CARDS ===== */
.project-card--clickable { cursor: pointer; }
.project-card--clickable:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,255,136,0.08); }

.project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.project-card--clickable:hover .project-read-more {
  opacity: 1;
  transform: translateX(0);
}

/* ===== WRITEUP SINGLE PAGE ===== */
.writeup-single { max-width: unset; }
.writeup-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}
.writeup-meta-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.writeup-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.writeup-excerpt-hero { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.writeup-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  line-height: 1.8;
}

.writeup-body h2 { font-size: 20px; color: var(--green); margin: 32px 0 14px; font-family: var(--font-mono); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.writeup-body h3 { font-size: 16px; color: var(--text); margin: 24px 0 10px; }
.writeup-body p { color: var(--text-dim); margin-bottom: 16px; }
.writeup-body ul, .writeup-body ol { color: var(--text-dim); padding-left: 24px; margin-bottom: 16px; }
.writeup-body li { margin-bottom: 6px; }
.writeup-body a { color: var(--green); text-decoration: underline; text-decoration-style: dotted; }
.writeup-body strong { color: var(--text); }
.writeup-body code { font-family: var(--font-mono); background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--green); }
.writeup-body pre { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 20px 0; }
.writeup-body pre code { background: none; padding: 0; color: var(--text); font-size: 13px; }
.writeup-body blockquote { border-left: 3px solid var(--green); padding-left: 16px; color: var(--text-muted); margin: 20px 0; font-style: italic; }
/* ===== TABLES ===== */
.writeup-body table,
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
  font-family: var(--font-mono);
}
.writeup-body th,
.post-body th {
  background: var(--surface);
  color: var(--green);
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  border: 1px solid var(--border);
}
.writeup-body td,
.post-body td {
  padding: 9px 16px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.writeup-body tr:nth-child(even),
.post-body tr:nth-child(even) {
  background: var(--bg3);
}

/* ===== BLOG POST SINGLE ===== */
.post-body { max-width: 760px; }

/* ===== BACK BTN ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  cursor: pointer;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--green); }

/* ===== SYNTAX HIGHLIGHT OVERRIDES ===== */
.highlight { background: var(--bg3) !important; border-radius: var(--radius); }
.highlight pre { background: transparent; border: none; }

/* ===== ROUGE colors ===== */
.highlight .k, .highlight .kd, .highlight .kn { color: #ff79c6; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #f1fa8c; }
.highlight .c, .highlight .c1 { color: var(--text-muted); font-style: italic; }
.highlight .n { color: var(--text); }
.highlight .mi, .highlight .mf { color: #bd93f9; }
.highlight .nb { color: #8be9fd; }
.highlight .nf { color: #50fa7b; }
.highlight .p { color: var(--text-dim); }
.highlight .o { color: #ff79c6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .portfolio-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .home-grid--three { grid-template-columns: 1fr; }
  .home-hero-grid { grid-template-columns: 1fr; }
}

.sidebar { scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .topbar { padding: 0 16px 0 64px; }
  .content { padding: 24px 16px; }
  .writeups-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .search-bar input { width: 120px; }
  .home-grid--three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .home-hero-grid { grid-template-columns: 1fr; }
}


/* ===== POST LAYOUT CON SIDEBAR DERECHA ===== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  max-width: 100%;
}

/* Reducir padding lateral cuando hay post-layout para aprovechar todo el ancho */
.content:has(.post-layout) {
  padding-left: 32px;
  padding-right: 32px;
}

.post-main {
  min-width: 0; /* evita overflow en grid */
}

/* ---- Sidebar derecha ---- */
.post-sidebar {
  position: sticky;
  top: calc(56px + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 56px - 64px);
  overflow-y: auto;
  scrollbar-width: none;
}
.post-sidebar::-webkit-scrollbar { display: none; }

.post-sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

.post-sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- TOC ---- */
#toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
  line-height: 1.4;
  word-break: break-word;
}

.toc-link:hover {
  color: var(--text);
  background: var(--surface);
}

.toc-link.active {
  color: var(--green);
  border-left-color: var(--green);
  background: var(--green-glow2);
}

.toc-link.toc-h3 {
  padding-left: 20px;
  font-size: 11px;
}

.toc-loading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Artículos relacionados ---- */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.related-item:hover {
  border-color: var(--green);
  background: var(--green-glow2);
}

.related-item-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.related-item-title {
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
  font-weight: 500;
}

.related-item-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ---- Tags sidebar ---- */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---- Responsive: ocultar sidebar en móvil ---- */
@media (max-width: 1300px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    display: none;
  }
}

/* ---- Eliminar el max-width antiguo del post-body ---- */
.post-body { max-width: unset; }

/* ===== SIDEBAR RECENT CARDS ===== */
.recent-sidebar-list {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.recent-sidebar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.recent-sidebar-card:hover {
  background: var(--surface2);
  border-color: rgba(0,255,136,0.2);
}

.recent-sidebar-card .recent-sidebar-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.recent-sidebar-card .recent-sidebar-cat {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
