:root{
  --bg-900: #0b0f10;
  --bg-800: #0e171b;
  --panel: #0f1b1f;
  --muted: #9aa7ad;
  --text: #e8f4f8;
  --neon: #00ff66;
  --neon-2: #0df3a6;
  --accent: #7af0b2;
  --glass: rgba(255,255,255,0.02);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(ellipse at center, rgba(13,20,23,0.6) 0%, rgba(7,10,12,1) 60%), var(--bg-900);
  color:#dbe7e9;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{max-width:1200px;margin:0 auto;padding:28px}
.header{display:flex;align-items:center;justify-content:space-between;padding:24px 0;margin-bottom:12px}
.brand{color:var(--neon); font-weight:700; text-decoration:none; font-family:monospace; font-size:32px; display:flex; align-items:center; gap:20px; transition:all 0.2s ease}
.brand:hover{transform:translateY(-1px);filter:brightness(1.1)}
.brand .logo{width:45px;height:45px;border-radius:10px;background:linear-gradient(135deg,#042b20,#033016);display:inline-grid;place-items:center;font-weight:700;color:#0ffb8a;box-shadow:0 4px 12px rgba(0,255,102,0.25)}
.social-link{
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
  font-weight:400;
  padding:4px 8px;
  border-radius:4px;
  transition:all 0.2s ease;
  opacity:0.8;
}
.social-link:hover{
  color:var(--neon);
  background:rgba(0,255,102,0.05);
  opacity:1;
}
.nav-link{
  color:var(--muted);
  font-weight:500;
  font-size:14px;
  transition:all 0.2s ease;
}
.nav-link:hover{
  color:var(--neon);
  background:rgba(0,255,102,0.08);
  transform:translateY(-1px);
}
.hero{margin-top:10px;padding:18px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00)); border:1px solid rgba(255,255,255,0.02)}
.site-title{font-family:monospace;color:var(--neon);font-size:28px;margin:0}
.lead{color:var(--muted);margin:6px 0 12px 0}

.search-area{display:flex;gap:12px;align-items:center}
.search-input-wrapper{position:relative;flex:1}
.search-input{width:100%;padding:14px 18px;border-radius:12px;background:#07181b;border:1px solid rgba(0,255,102,0.06);color:inherit;font-size:16px;box-shadow:0 6px 20px rgba(0,0,0,0.6)}
.clear-btn{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.1);
  border:none;
  border-radius:50%;
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  cursor:pointer;
  font-size:14px;
  transition:all 0.2s ease;
}
.clear-btn:hover{
  background:rgba(255,255,255,0.15);
  color:var(--neon);
}
.filter-toggle, .view-toggle{padding:10px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.03);background:linear-gradient(180deg,#071b1b,#041112);color:var(--neon); cursor:pointer}
.view-toggle{
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
}
.view-icon{
  font-size:16px;
  font-weight:bold;
}
.result-count{
  margin-top:16px;
  color:var(--muted);
  font-size:14px;
  font-weight:500;
}
.loading-state{
  text-align:center;
  padding:40px;
  color:var(--muted);
  font-size:16px;
  animation:pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.empty-state{
  text-align:center;
  padding:40px;
  color:var(--muted);
}
.empty-state h3{
  color:var(--neon);
  margin:0 0 12px 0;
  font-size:20px;
}
.empty-state p{
  margin:8px 0;
  line-height:1.5;
}
.btn-secondary{
  margin-top:16px;
  padding:10px 20px;
  border-radius:8px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--neon);
  cursor:pointer;
  transition:all 0.2s ease;
}
.btn-secondary:hover{
  background:rgba(255,255,255,0.1);
  border-color:rgba(0,255,102,0.3);
}
.pagination{
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,0.05);
  padding-top:24px;
}
.pagination-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.pagination-numbers{
  display:flex;
  align-items:center;
  gap:4px;
  margin:0 16px;
}
.pagination-btn{
  padding:8px 12px;
  border-radius:8px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:var(--muted);
  cursor:pointer;
  transition:all 0.2s ease;
  font-size:14px;
  min-width:40px;
}
.pagination-btn:hover:not(.disabled){
  background:rgba(255,255,255,0.1);
  color:var(--neon);
  border-color:rgba(0,255,102,0.3);
}
.pagination-btn.active{
  background:linear-gradient(90deg,var(--neon),var(--neon-2));
  color:#071018;
  border-color:rgba(0,255,102,0.5);
  font-weight:600;
}
.pagination-btn.disabled{
  opacity:0.4;
  cursor:not-allowed;
}
.pagination-prev, .pagination-next{
  padding:8px 16px;
  font-weight:500;
}
.pagination-ellipsis{
  color:var(--muted);
  padding:8px 4px;
  font-size:14px;
}
.filters{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
.filter-pill{padding:6px 10px;border-radius:999px;background:#071216;border:1px solid rgba(255,255,255,0.03);color:var(--muted);cursor:pointer}
.filter-pill.active{background:linear-gradient(90deg,var(--neon),var(--neon-2)); color:#071018; border-color:rgba(0,255,102,0.12); font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;margin-top:24px}

/* List View Styles */
.grid.list-view{
  grid-template-columns:1fr;
  gap:12px;
}
.grid.list-view .card{
  display:flex;
  align-items:center;
  padding:16px;
  min-height:80px;
}
.grid.list-view .card .thumb{
  width:60px;
  height:60px;
  flex-shrink:0;
  margin-right:16px;
  border-radius:8px;
}
.grid.list-view .card .body{
  flex:1;
  padding:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.grid.list-view .card .content{
  flex:1;
}
.grid.list-view .card .title{
  font-size:16px;
  margin:0 0 4px 0;
}
.grid.list-view .card .meta{
  margin-top:4px;
  gap:6px;
  flex-wrap:nowrap;
}
.grid.list-view .tags-left{
  gap:4px;
  flex-wrap:nowrap;
  overflow:hidden;
}
.grid.list-view .tags-right{
  margin-left:8px;
}
.grid.list-view .card .badge{
  padding:3px 8px;
  font-size:11px;
}
.grid.list-view .card .list-actions{
  flex-shrink:0;
  margin-left:16px;
  display:flex;
  align-items:center;
  gap:8px;
}
.grid.list-view .card .link{
  font-size:14px;
}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02)); border-radius:14px;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,0.02); transition:transform .18s ease, box-shadow .18s ease;}
.card:hover{transform:translateY(-6px);box-shadow:0 14px 40px rgba(3,8,10,0.6)}
.card .thumb{
  height:140px;
  background: linear-gradient(135deg, #0a2a3a 0%, #134850 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-family:monospace;
  color:var(--neon);
  font-size:42px;
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
}
.card .thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0,255,102,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.card .body{padding:14px}
.card .title{font-family:monospace;color:var(--neon);font-weight:700;margin:0;font-size:18px}
.card .meta{display:flex;gap:8px;align-items:center;margin-top:8px;justify-content:space-between}
.tags-left{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
  flex:1;
}
.tags-right{
  display:flex;
  gap:6px;
  align-items:center;
  flex-shrink:0;
  margin-left:8px;
}
.badge.more-tags{
  background:rgba(255,255,255,0.08);
  color:var(--muted);
  font-size:11px;
  font-weight:500;
}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,0.02);color:var(--accent);font-size:12px}

/* Colored badges by category */
.badge.htb{background:#9fef00;color:#1a1a1a;font-weight:600}
.badge.tryhackme{background:#212c42;color:#fff}
.badge.web-exploitation{background:#ff6b6b;color:#fff}
.badge.privilege-escalation{background:#4ecdc4;color:#1a1a1a;font-weight:500}
.badge.sql-injection, .badge.sql_injection{background:#45b7d1;color:#fff}
.badge.reverse-shell, .badge.reverse_shell{background:#f9ca24;color:#1a1a1a;font-weight:500}
.badge.starting-point, .badge.starting_point{background:#a55eea;color:#fff}
.badge.path-manipulation, .badge.path_manipulation{background:#fd79a8;color:#fff}
.badge.burpsuite{background:#ff7675;color:#fff}
.badge.ftp{background:#00b894;color:#fff}
.badge.http{background:#0984e3;color:#fff}
.badge.linux{background:#f39c12;color:#1a1a1a;font-weight:500}
.badge.windows{background:#74b9ff;color:#1a1a1a;font-weight:500}
.badge.smb{background:#6c5ce7;color:#fff}
.badge.mysql, .badge.mariadb{background:#00a085;color:#fff}
.badge.database{background:#55a3ff;color:#fff}
.badge.redis{background:#d63031;color:#fff}
.badge.apache{background:#e84393;color:#fff}
.badge.php{background:#a29bfe;color:#fff}
.badge.aws, .badge.s3{background:#ff9f43;color:#1a1a1a;font-weight:500}
.badge.tcp{background:#2d3436;color:#fff}
.badge.mssql{background:#00cec9;color:#1a1a1a;font-weight:500}
.badge.impacket{background:#fd63a3;color:#fff}
.badge.xp_cmdshell, .badge.xp-cmdshell{background:#ff5722;color:#fff}
.badge.sqlmap{background:#8e44ad;color:#fff}
.badge.zip2john{background:#95a5a6;color:#1a1a1a;font-weight:500}
.badge.log4j{background:#e74c3c;color:#fff}
.badge.unifi{background:#3498db;color:#fff}
.badge.web{background:#1abc9c;color:#fff}
.badge.season8{background:#ff6348;color:#fff}
.badge.gunicorn{background:#00d2d3;color:#1a1a1a;font-weight:500}
.badge.js2py{background:#feca57;color:#1a1a1a;font-weight:500}
.badge.netdata{background:#ff9ff3;color:#1a1a1a;font-weight:500}
.badge.xwiki{background:#48dbfb;color:#1a1a1a;font-weight:500}

.badge.difficulty.easy{background:#0d2a1f;color:#88f4c8}
.badge.difficulty.medium{background:#2b2111;color:#ffd38a}
.badge.difficulty.hard{background:#3a1226;color:#ff98c4}
.badge.difficulty.insane{background:#4a1e55;color:#dca8ff}

/* Post Card & Content */
.post-card{
  background: linear-gradient(135deg, rgba(8,20,20,0.98), rgba(3,12,12,0.99));
  padding: 40px 48px;
  border-radius: 20px;
  border: 2px solid rgba(0,255,102,0.15);
  max-width: 1000px;
  margin: 24px auto;
  box-shadow: 
    0 0 40px rgba(0,255,102,0.08),
    0 8px 32px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2), var(--accent));
  opacity: 0.8;
}

.post-card h1{
  font-family:'JetBrains Mono', monospace;
  color: var(--neon);
  margin: 0 0 24px 0;
  font-size: 28px;
  text-shadow: 0 0 15px rgba(0,255,102,0.4);
  border-bottom: 2px solid rgba(0,255,102,0.2);
  padding-bottom: 12px;
}

/* Markdown Content Styling */
.post-content {
  line-height: 1.8;
  color: var(--text);
  font-size: 16px;
  max-width: none;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--neon);
  margin: 40px 0 20px 0;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0,255,102,0.5);
  position: relative;
}

.post-content h1 { 
  font-size: 32px; 
  border-bottom: 3px solid rgba(0,255,102,0.4); 
  padding-bottom: 16px;
  margin-top: 0;
}

.post-content h2 { 
  font-size: 26px; 
  border-bottom: 2px solid rgba(0,255,102,0.3); 
  padding-bottom: 12px;
  padding-left: 16px;
}

.post-content h2::before {
  content: '▶';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 18px;
}

.post-content h3 { 
  font-size: 22px;
  color: var(--accent);
  padding-left: 20px;
  position: relative;
}

.post-content h3::before {
  content: '●';
  color: var(--neon-2);
  position: absolute;
  left: 0;
  font-size: 14px;
}

.post-content h4 { font-size: 19px; color: var(--neon-2); }
.post-content h5 { font-size: 16px; color: var(--muted); }
.post-content h6 { font-size: 14px; color: var(--muted); }

.post-content p {
  margin: 18px 0;
  text-align: justify;
  color: var(--text);
  font-weight: 400;
}

.post-content strong {
  color: var(--accent);
  font-weight: 600;
}

.post-content em {
  color: var(--neon-2);
  font-style: italic;
}

.post-content ul, .post-content ol {
  margin: 16px 0;
  padding-left: 32px;
}

.post-content li {
  margin: 8px 0;
  color: var(--text);
  line-height: 1.6;
}

.post-content li::marker {
  color: var(--neon);
  font-weight: bold;
}

.post-content ul li {
  position: relative;
}

.post-content ul li::before {
  content: '◆';
  color: var(--accent);
  position: absolute;
  left: -20px;
  font-size: 12px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
  border: 2px solid rgba(0,255,102,0.2);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.4),
    0 0 20px rgba(0,255,102,0.1);
  transition: all 0.3s ease;
}

.post-content img:hover {
  transform: scale(1.02);
  border-color: rgba(0,255,102,0.4);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.5),
    0 0 30px rgba(0,255,102,0.2);
}

.post-content code {
  background: linear-gradient(135deg, rgba(0,255,102,0.15), rgba(13,243,166,0.10));
  color: var(--neon);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px;
  border: 1px solid rgba(0,255,102,0.3);
  font-weight: 500;
}

.post-content pre {
  background: linear-gradient(135deg, #0a1612, #051008);
  border: 2px solid rgba(0,255,102,0.4);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 28px 0;
  position: relative;
  box-shadow: 
    0 0 30px rgba(0,255,102,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.post-content pre::before {
  content: '⚡ terminal';
  position: absolute;
  top: -2px;
  left: 20px;
  background: linear-gradient(135deg, #0a1612, #051008);
  color: var(--neon);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(0,255,102,0.4);
  border-top: none;
  font-weight: 600;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #e6ffe6;
  border: none;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  line-height: 1.6;
  display: block;
  white-space: pre;
  font-weight: 400;
}

.post-content blockquote {
  border-left: 4px solid var(--neon);
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,255,102,0.08), rgba(0,255,102,0.03));
  border-radius: 0 12px 12px 0;
  position: relative;
}

.post-content blockquote::before {
  content: '"';
  font-size: 48px;
  color: var(--neon);
  position: absolute;
  top: -8px;
  left: -4px;
  opacity: 0.3;
}

.post-content blockquote p {
  margin: 0;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(10,25,25,0.2));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.post-content th,
.post-content td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.post-content th {
  background: linear-gradient(135deg, rgba(0,255,102,0.15), rgba(13,243,166,0.10));
  color: var(--neon);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(0,255,102,0.3);
}

.post-content tr:hover {
  background: rgba(0,255,102,0.05);
}

.post-content hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0,255,102,0.4), 
    rgba(13,243,166,0.4),
    rgba(0,255,102,0.4), 
    transparent
  );
  margin: 32px 0;
  border-radius: 2px;
}

/* Links dentro del contenido */
.post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 8px rgba(0,255,102,0.4);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.post-content th {
  background: rgba(0,255,102,0.1);
  color: var(--neon);
  font-weight: 600;
}

.post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,102,0.3), transparent);
  margin: 24px 0;
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,139,34,0.3);
  transition: all 0.2s ease;
}

.post-content a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.meta-ip{color:var(--muted);margin-left:8px;font-size:13px}
.muted{color:var(--muted)}
.link{color:var(--neon);text-decoration:none}

/* Footer styling */
.footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--neon);
}
@media (max-width:720px){
  .stats-grid{
    grid-template-columns:repeat(2,1fr);
    gap:8px;
  }
  .stat-card{
    padding:12px;
  }
  .stat-number{
    font-size:24px;
  }
  .search-area{flex-direction:column;align-items:stretch;gap:8px}
  .search-input-wrapper{order:1}
  .filter-toggle{order:2}
  .view-toggle{order:3}
  .result-count{margin-top:12px}
  .thumb{height:120px}
  .empty-state{padding:20px}
  .empty-state h3{font-size:18px}
  .pagination-controls{
    flex-direction:column;
    gap:12px;
  }
  .pagination-numbers{
    margin:0;
    justify-content:center;
    flex-wrap:wrap;
  }
  .pagination-btn{
    min-width:36px;
    padding:6px 10px;
    font-size:13px;
  }
  .pagination-prev, .pagination-next{
    padding:8px 16px;
    width:100%;
    max-width:200px;
  }
  /* List view mobile adjustments */
  .grid.list-view .card{
    flex-direction:column;
    align-items:flex-start;
    padding:12px;
  }
  .grid.list-view .card .thumb{
    width:100%;
    height:80px;
    margin:0 0 12px 0;
  }
  .grid.list-view .card .body{
    flex-direction:column;
    align-items:flex-start;
    width:100%;
  }
  .grid.list-view .card .list-actions{
    margin:8px 0 0 0;
    justify-content:space-between;
    width:100%;
  }
}
