@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg:         #080b0f;
  --bg2:        #0c1016;
  --bg3:        #101620;
  --surface:    #141d29;
  --surface2:   #1a2737;
  --border:     #1c2c3c;
  --border2:    #253d52;
  --green:      #00ff99;
  --green2:     #00cc77;
  --green-dim:  rgba(0,255,153,0.10);
  --green-dim2: rgba(0,255,153,0.05);
  --red:        #ff4c4c;
  --red2:       #cc2222;
  --red-dim:    rgba(255,76,76,0.12);
  --blue:       #29b6d4;
  --orange:     #ffaa00;
  --purple:     #aa66ff;
  --text:       #b8ccd4;
  --text2:      #6a8c9c;
  --text3:      #334d5c;
  --font:       'JetBrains Mono', 'Courier New', monospace;
  --nav-h:      54px;
  --r:          6px;
  --ease:       0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* subtle scanlines */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
  pointer-events: none;
  z-index: 9999;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,11,15,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
}
.nav-brand { color: var(--red); font-weight: 700; font-size: 0.95em; text-decoration: none; letter-spacing: 2px; text-transform: uppercase; }
.nav-brand:hover { text-shadow: 0 0 14px var(--red); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { color: var(--text3); text-decoration: none; font-size: 0.77em; padding: 6px 11px; border-radius: var(--r); transition: all var(--ease); letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-dim2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text2); cursor: pointer; font-size: 0.9em; font-family: var(--font); padding: 5px 10px; border-radius: var(--r); }
.nav-toggle:hover { border-color: var(--border2); color: var(--text); }

@media (max-width: 760px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 10px 16px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── LAYOUT ───────────────────────────────────── */
.page { padding-top: var(--nav-h); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ── PAGE HEADER ──────────────────────────────── */
.page-header {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-header .label { color: var(--text3); font-size: 0.7em; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.page-header .label::before { content: '//'; color: var(--red); }
.page-header h1 { font-size: 1.9em; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--text2); font-size: 0.88em; max-width: 600px; line-height: 1.65; }

/* ── CARDS ────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); gap: 14px; }

.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--red); opacity: 0; transition: opacity var(--ease); }
.card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.card:hover::before { opacity: 1; }

.card-badge { font-size: 0.66em; letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; width: fit-content; }
.badge-blogs    { border: 1px solid rgba(255,76,76,.3);  color: var(--red);    background: var(--red-dim); }
.badge-tools    { border: 1px solid rgba(0,255,153,.3);  color: var(--green);  background: var(--green-dim2); }
.badge-scripts  { border: 1px solid rgba(41,182,212,.3); color: var(--blue);   background: rgba(41,182,212,.06); }
.badge-bugbounty{ border: 1px solid rgba(255,170,0,.3);  color: var(--orange); background: rgba(255,170,0,.06); }
.badge-darknet  { border: 1px solid rgba(170,102,255,.3);color: var(--purple); background: rgba(170,102,255,.06); }

.card-title { font-size: 0.93em; color: var(--green); font-weight: 600; line-height: 1.4; }
.card-desc  { font-size: 0.79em; color: var(--text2); line-height: 1.65; flex: 1; }
.card-meta  { font-size: 0.7em; color: var(--text3); display: flex; gap: 12px; flex-wrap: wrap; }
.card-arrow { color: var(--text3); font-size: 0.78em; align-self: flex-end; transition: all var(--ease); }
.card:hover .card-arrow { color: var(--green); transform: translateX(4px); }

/* ── SEARCH ───────────────────────────────────── */
.search-wrap { position: relative; margin-bottom: 20px; }
.search-wrap input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 14px 11px 40px;
  color: var(--green); font-family: var(--font); font-size: 0.86em;
  outline: none; transition: border-color var(--ease);
}
.search-wrap input::placeholder { color: var(--text3); }
.search-wrap input:focus { border-color: var(--green2); box-shadow: 0 0 0 2px var(--green-dim); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 0.8em; pointer-events: none; }

/* ── FILTER TABS ──────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text3);
  padding: 6px 14px; border-radius: var(--r); font-family: var(--font);
  font-size: 0.76em; cursor: pointer; transition: all var(--ease); letter-spacing: 0.5px;
}
.filter-btn:hover { color: var(--text); border-color: var(--border2); }
.filter-btn.active { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ── BUTTONS ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: var(--r); font-family: var(--font); font-size: 0.84em; font-weight: 500; cursor: pointer; transition: all var(--ease); text-decoration: none; border: 1px solid; letter-spacing: 0.5px; }
.btn-green  { border-color: var(--green2); color: var(--green); background: transparent; }
.btn-green:hover { background: var(--green); color: var(--bg); box-shadow: 0 0 18px var(--green-dim); }
.btn-red    { border-color: var(--red2); color: var(--red); background: transparent; }
.btn-red:hover { background: var(--red); color: var(--bg); }
.btn-ghost  { border-color: var(--border); color: var(--text3); background: transparent; }
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

/* ── EMPTY STATE ──────────────────────────────── */
.empty { text-align: center; padding: 70px 20px; color: var(--text3); }
.empty .icon { font-size: 2em; margin-bottom: 14px; }
.empty p { font-size: 0.85em; line-height: 1.7; }

/* ── POST BODY ────────────────────────────────── */
.post-body { color: var(--text); line-height: 1.85; font-size: 0.94em; }
.post-body h1 { font-size: 1.7em; color: var(--red); margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.post-body h2 { font-size: 1.25em; color: var(--red); margin: 30px 0 12px; padding-left: 14px; border-left: 3px solid var(--red); }
.post-body h3 { font-size: 1.05em; color: #ff7070; margin: 22px 0 8px; }
.post-body p  { margin-bottom: 15px; }
.post-body strong { color: var(--green); font-weight: 600; }
.post-body em { color: var(--text2); }
.post-body a  { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(0,255,153,.2); }
.post-body a:hover { border-bottom-color: var(--green); }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 15px; }
.post-body li { margin-bottom: 5px; }
.post-body blockquote { border-left: 3px solid var(--red); padding: 10px 16px; background: var(--bg2); border-radius: 0 var(--r) var(--r) 0; color: var(--text2); margin: 20px 0; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.post-body code { background: var(--bg3); color: var(--green); padding: 2px 7px; border-radius: 3px; font-size: 0.87em; }
.post-body pre { background: var(--bg2); border-left: 3px solid var(--red); border-radius: 0 var(--r) var(--r) 0; padding: 18px 20px; margin: 20px 0; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; font-size: 0.84em; line-height: 1.65; }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.84em; }
.post-body th { background: var(--surface); color: var(--red); padding: 10px 14px; text-align: left; border: 1px solid var(--border); font-weight: 600; }
.post-body td { padding: 8px 14px; border: 1px solid var(--border); color: var(--text2); vertical-align: top; }
.post-body tr:nth-child(even) td { background: var(--bg2); }
.post-body tr:hover td { background: var(--bg3); }

/* ── FOOTER ───────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 22px; margin-top: 80px; text-align: center; color: var(--text3); font-size: 0.76em; letter-spacing: 1px; }
footer em { color: var(--red); font-style: normal; }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes pulse-glow { 0%,100%{text-shadow:0 0 4px var(--red);}50%{text-shadow:0 0 18px var(--red),0 0 30px var(--red);} }
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:0;} }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:translateY(0);} }
.fade-up { animation: fadeUp .45s ease forwards; opacity: 0; }