/*
Theme Name: HuntingThreats
Theme URI: https://huntingthreats.de
Author: HuntingThreats Team
Description: Dark Cybersecurity Threat Intelligence Theme
Version: 1.0
*/

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

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1117;
  --bg-card: #141824;
  --bg-card-hover: #1a2030;
  --accent-cyan: #00d4ff;
  --accent-green: #00ff88;
  --accent-red: #ff4444;
  --accent-orange: #ff8c00;
  --text-primary: #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted: #4a5568;
  --border: #1e2535;
  --critical: #ff4444;
  --high: #ff8c00;
  --medium: #ffd700;
  --low: #00ff88;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-primary); color: var(--text-primary); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

/* TICKER */
.threat-ticker { background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 0.6rem 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; overflow: hidden; }
.ticker-label { background: var(--accent-cyan); color: var(--bg-primary); font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 0.35rem 1.2rem; white-space: nowrap; flex-shrink: 0; }
.ticker-track { display: flex; gap: 4rem; animation: ticker 40s linear infinite; white-space: nowrap; padding-left: 2rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 0.8rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; }
.ticker-dot { color: var(--accent-cyan); }

/* HEADER */
.site-header { background: rgba(8,12,20,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-shield { width: 38px; height: 38px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-text em { font-style: normal; color: var(--accent-cyan); }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { color: var(--text-secondary); padding: 0.45rem 0.9rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; display: block; }
.main-nav a:hover { color: var(--accent-cyan); background: rgba(0,212,255,0.08); }
.nav-btn { background: var(--accent-cyan) !important; color: var(--bg-primary) !important; font-weight: 700 !important; }
.search-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.7rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.search-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* HERO */
.hero-section { position: relative; padding: 6rem 2rem 5rem; overflow: hidden; }
.hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,212,255,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(0,212,255,0.03) 1px,transparent 1px); background-size: 60px 60px; pointer-events: none; }
.hero-bg-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse,rgba(0,212,255,0.06) 0%,transparent 65%); pointer-events: none; }
.hero-inner { max-width: 1400px; margin: 0 auto; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,212,255,0.07); border: 1px solid rgba(0,212,255,0.25); color: var(--accent-cyan); padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.8rem; }
.live-dot { width: 7px; height: 7px; background: var(--accent-green); border-radius: 50%; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,255,136,0.4)} 50%{opacity:0.7;box-shadow:0 0 0 6px rgba(0,255,136,0)} }
.hero-title { font-size: clamp(2.2rem,4.5vw,3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.5rem; max-width: 750px; }
.gradient-text { background: linear-gradient(135deg,var(--accent-cyan),var(--accent-green)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 3rem; line-height: 1.8; }

/* STATS */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 2rem; min-width: 150px; position: relative; overflow: hidden; }
.stat-card::after { content:''; position:absolute; bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--accent-cyan),var(--accent-green)); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-cyan); font-family: 'JetBrains Mono',monospace; line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

/* SECTIONS */
.content-section { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; }
.content-section + .content-section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-title::before { content:''; width:3px; height:22px; background:linear-gradient(180deg,var(--accent-cyan),var(--accent-green)); border-radius:2px; display:block; }
.section-badge { font-size: 0.7rem; font-weight: 700; background: rgba(0,212,255,0.1); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.2); padding: 0.2rem 0.6rem; border-radius: 100px; text-transform: uppercase; }
.view-all { color: var(--accent-cyan); font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.view-all:hover { gap: 8px; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(370px,1fr)); gap: 1.2rem; }
.cards-grid-3 { grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); }
.cve-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; transition: all 0.25s; display: block; position: relative; overflow: hidden; }
.cve-card::before { content:''; position:absolute; top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--accent-cyan),var(--accent-green));opacity:0;transition:opacity 0.25s; }
.cve-card:hover { border-color:rgba(0,212,255,0.35); background:var(--bg-card-hover); transform:translateY(-3px); box-shadow:0 8px 30px rgba(0,0,0,0.3); }
.cve-card:hover::before { opacity:1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cve-id-tag { font-family:'JetBrains Mono',monospace; font-size:0.78rem; color:var(--accent-cyan); font-weight:600; background:rgba(0,212,255,0.08); border:1px solid rgba(0,212,255,0.2); padding:0.2rem 0.6rem; border-radius:4px; }
.severity-badge { font-size:0.65rem; font-weight:800; padding:0.2rem 0.7rem; border-radius:100px; text-transform:uppercase; letter-spacing:0.8px; }
.sev-critical { background:rgba(255,68,68,0.12);color:#ff4444;border:1px solid rgba(255,68,68,0.25); }
.sev-high { background:rgba(255,140,0,0.12);color:#ff8c00;border:1px solid rgba(255,140,0,0.25); }
.sev-medium { background:rgba(255,215,0,0.12);color:#ffd700;border:1px solid rgba(255,215,0,0.25); }
.sev-low { background:rgba(0,255,136,0.12);color:#00ff88;border:1px solid rgba(0,255,136,0.25); }
.card-title { font-size:0.95rem; font-weight:600; line-height:1.4; margin-bottom:0.75rem; color:var(--text-primary); }
.card-excerpt { font-size:0.83rem; color:var(--text-secondary); line-height:1.65; margin-bottom:1.1rem; }
.card-footer { display:flex; gap:1.2rem; font-size:0.75rem; color:var(--text-muted); flex-wrap:wrap; }
.patch-yes { color:var(--accent-green); font-weight:600; }
.patch-no { color:var(--accent-red); font-weight:600; }

/* FEATURED */
.featured-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:2rem; margin-bottom:2rem; display:flex; gap:2rem; align-items:flex-start; position:relative; overflow:hidden; transition:all 0.25s; }
.featured-card::before { content:''; position:absolute; top:0;left:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--accent-cyan),var(--accent-green)); }
.featured-card:hover { border-color:rgba(0,212,255,0.3); background:var(--bg-card-hover); }
.featured-score { flex-shrink:0; text-align:center; background:rgba(0,212,255,0.06); border:1px solid rgba(0,212,255,0.15); border-radius:10px; padding:1rem 1.5rem; min-width:90px; }
.score-number { display:block; font-family:'JetBrains Mono',monospace; font-size:2rem; font-weight:800; color:var(--critical); line-height:1; }
.score-label { font-size:0.65rem; color:var(--text-muted); text-transform:uppercase; }
.featured-content { flex:1; }

/* SINGLE */
.single-header { background:linear-gradient(180deg,var(--bg-secondary) 0%,var(--bg-primary) 100%); border-bottom:1px solid var(--border); padding:4rem 2rem 3rem; }
.single-header-inner { max-width:860px; margin:0 auto; }
.post-top-meta { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.post-date { font-size:0.8rem; color:var(--text-muted); }
.post-title-main { font-size:clamp(1.6rem,3vw,2.2rem); font-weight:800; line-height:1.2; letter-spacing:-0.5px; margin-bottom:1.5rem; }
.cve-info-table { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:1.5rem; display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1.5rem; margin-top:1.5rem; }
.cve-info-cell label { display:block; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-muted); margin-bottom:0.3rem; }
.cve-info-cell .value { font-size:0.9rem; font-weight:600; color:var(--text-primary); }
.cve-info-cell .value.mono { font-family:'JetBrains Mono',monospace; color:var(--accent-cyan); }
.post-body { max-width:860px; margin:3rem auto; padding:0 2rem; color:var(--text-secondary); line-height:1.85; }
.post-body h2 { font-size:1.3rem; font-weight:700; color:var(--accent-cyan); margin:2.5rem 0 1rem; }
.post-body p { margin-bottom:1.2rem; }
.post-body code { background:var(--bg-card); color:var(--accent-green); padding:0.15rem 0.45rem; border-radius:4px; font-family:'JetBrains Mono',monospace; font-size:0.85em; }
.post-body pre { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:1.5rem; overflow-x:auto; margin:1.5rem 0; }
.post-body blockquote { border-left:3px solid var(--accent-cyan); padding:1rem 1.5rem; background:var(--bg-card); border-radius:0 8px 8px 0; margin:1.5rem 0; font-style:italic; }

/* FOOTER */
.site-footer { background:var(--bg-secondary); border-top:1px solid var(--border); padding:4rem 2rem 2rem; margin-top:5rem; }
.footer-inner { max-width:1400px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-about p { font-size:0.85rem; color:var(--text-muted); line-height:1.8; margin-top:1rem; max-width:270px; }
.footer-col h4 { font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--text-secondary); margin-bottom:1.2rem; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:0.6rem; }
.footer-col a { font-size:0.85rem; color:var(--text-muted); transition:color 0.2s; }
.footer-col a:hover { color:var(--accent-cyan); }
.footer-bottom { border-top:1px solid var(--border); padding-top:2rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; font-size:0.78rem; color:var(--text-muted); }

/* RESPONSIVE */
@media(max-width:768px){.cards-grid{grid-template-columns:1fr;}.hero-title{font-size:2rem;}.main-nav{display:none;}.featured-card{flex-direction:column;}.footer-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr;}.hero-section{padding:4rem 1rem 3rem;}}