/*
Theme Name: VarroaDestructor 3.0
Theme URI: https://varroadestructor.com/
Author: VarroaDestructor.com
Description: Visual knowledge-library theme for VarroaDestructor.com.
Version: 3.0.0
Text Domain: varroadestructor
*/

:root{
  --vd-ink:#15382f;
  --vd-ink-2:#0f2c25;
  --vd-green:#2f6f4e;
  --vd-green-soft:#eaf4ee;
  --vd-gold:#d1a23a;
  --vd-gold-soft:#f6edd9;
  --vd-cream:#f7f4ec;
  --vd-white:#ffffff;
  --vd-text:#24342f;
  --vd-muted:#64736d;
  --vd-line:#dfe7e2;
  --vd-red:#9e473e;
  --vd-shadow:0 10px 30px rgba(14,44,37,.10);
  --vd-radius:18px;
  --vd-max:1440px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--vd-cream);
  color:var(--vd-text);
  line-height:1.6;
}
img{max-width:100%;height:auto}
a{color:var(--vd-green);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select{font:inherit}

.vd-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
}

.vd-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:linear-gradient(180deg,var(--vd-ink-2),var(--vd-ink));
  color:#fff;
  padding:28px 22px;
  z-index:30;
}
.vd-brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}
.vd-brand img{max-height:52px;width:auto}
.vd-brand-text{font-weight:800;letter-spacing:.02em;line-height:1.1}
.vd-brand-text small{display:block;color:#d6e5de;font-weight:600;font-size:.72rem;margin-top:4px}
.vd-sidebar a{color:#fff}
.vd-sidebar .menu,
.vd-sidebar ul{list-style:none;margin:0;padding:0}
.vd-sidebar li{margin:2px 0}
.vd-sidebar li a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  font-weight:650;
  color:#eef6f2;
}
.vd-sidebar li a:hover,
.vd-sidebar li.current-menu-item>a,
.vd-sidebar li.current-menu-ancestor>a{
  background:rgba(255,255,255,.10);
  text-decoration:none;
}
.vd-sidebar .sub-menu{padding-left:14px;margin-top:4px}
.vd-sidebar .sub-menu a{font-size:.9rem;font-weight:550;color:#cfe0d9}
.vd-sidebar-tools{margin-top:26px;padding-top:20px;border-top:1px solid rgba(255,255,255,.15)}
.vd-sidebar-tools a{display:block;font-size:.9rem;margin:8px 0;color:#d9e8e2}

.vd-main{min-width:0}
.vd-topbar{
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
  padding:14px 24px;
  border-bottom:1px solid var(--vd-line);
  background:rgba(255,255,255,.96);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(8px);
}
.vd-mobile-toggle{display:none;border:0;background:var(--vd-ink);color:#fff;border-radius:10px;padding:10px 12px;font-weight:800}
.vd-search{display:flex;gap:8px;align-items:center;max-width:560px;flex:1}
.vd-search input{
  width:100%;
  border:1px solid var(--vd-line);
  border-radius:999px;
  padding:11px 16px;
  background:#fff;
}
.vd-search button{
  border:0;
  border-radius:999px;
  padding:11px 16px;
  background:var(--vd-gold);
  color:#1b2c26;
  font-weight:800;
  cursor:pointer;
}

.vd-content{padding:28px clamp(18px,3vw,46px) 60px;max-width:var(--vd-max);margin:0 auto}
.vd-hero{
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(135deg,#173b31,#275f46);
  min-height:360px;
  position:relative;
  display:flex;
  align-items:end;
  box-shadow:var(--vd-shadow);
}
.vd-hero.has-image:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(13,38,32,.88) 0%,rgba(13,38,32,.64) 45%,rgba(13,38,32,.18) 75%);
}
.vd-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vd-hero-inner{position:relative;z-index:2;padding:42px;color:#fff;max-width:760px}
.vd-kicker{font-size:.78rem;text-transform:uppercase;letter-spacing:.13em;font-weight:900;color:#f2d38c}
.vd-hero h1{font-size:clamp(2.1rem,5vw,4.5rem);line-height:.98;margin:10px 0 16px}
.vd-hero p{font-size:1.05rem;max-width:640px;color:#eef7f2;margin-bottom:24px}
.vd-actions{display:flex;gap:10px;flex-wrap:wrap}
.vd-btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;padding:11px 17px;font-weight:850;border:1px solid transparent;
  text-decoration:none!important;
}
.vd-btn-primary{background:var(--vd-gold);color:#203128}
.vd-btn-secondary{border-color:rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.08)}
.vd-btn-light{background:#fff;color:var(--vd-ink);border-color:var(--vd-line)}

.vd-section{margin-top:38px}
.vd-section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:16px}
.vd-section h2{margin:0;color:var(--vd-ink);font-size:clamp(1.5rem,2.6vw,2.2rem)}
.vd-section-sub{color:var(--vd-muted);max-width:700px;margin:4px 0 0}

.vd-gateway-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.vd-gateway{
  border-radius:16px;background:#fff;border:1px solid var(--vd-line);
  padding:20px;box-shadow:0 5px 18px rgba(14,44,37,.05);
  min-height:150px;
}
.vd-gateway strong{display:block;color:var(--vd-ink);font-size:1.1rem;margin-bottom:6px}
.vd-gateway p{color:var(--vd-muted);font-size:.92rem;margin:0 0 10px}
.vd-gateway:hover{transform:translateY(-2px);transition:.2s ease;text-decoration:none}

.vd-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.vd-card{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--vd-line);border-radius:var(--vd-radius);overflow:hidden;
  box-shadow:0 6px 20px rgba(14,44,37,.06);
}
.vd-card-media{aspect-ratio:16/10;background:#dde8e2;overflow:hidden}
.vd-card-media img{width:100%;height:100%;object-fit:cover}
.vd-card-body{padding:18px;display:flex;flex-direction:column;gap:9px;flex:1}
.vd-card-meta{display:flex;gap:6px;flex-wrap:wrap}
.vd-pill{font-size:.72rem;font-weight:850;border-radius:999px;padding:5px 9px;background:var(--vd-green-soft);color:var(--vd-green)}
.vd-pill-gold{background:var(--vd-gold-soft);color:#785c1d}
.vd-card h3{margin:0;color:var(--vd-ink);font-size:1.15rem;line-height:1.25}
.vd-card p{margin:0;color:var(--vd-muted);font-size:.93rem}
.vd-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.vd-card-actions a{font-weight:800;font-size:.84rem}

.vd-filterbar{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;
  background:#fff;border:1px solid var(--vd-line);border-radius:14px;padding:12px;margin:18px 0;
}
.vd-filterbar input,.vd-filterbar select{
  border:1px solid var(--vd-line);border-radius:10px;padding:9px 11px;background:#fff
}

.vd-article{
  background:#fff;border:1px solid var(--vd-line);border-radius:22px;
  padding:clamp(22px,4vw,48px);box-shadow:var(--vd-shadow);
}
.vd-article h1{color:var(--vd-ink);font-size:clamp(2rem,4vw,3.6rem);line-height:1.05;margin-top:0}
.vd-article h2,.vd-article h3{color:var(--vd-ink);line-height:1.2}
.vd-article .entry-content{font-size:1.04rem}
.vd-article .entry-content>*{max-width:850px}
.vd-article .entry-content figure,.vd-article .entry-content .wp-block-image{max-width:100%}
.vd-featured{border-radius:16px;overflow:hidden;margin:22px 0}
.vd-sheet-panel{
  background:var(--vd-green-soft);border:1px solid #cfe1d6;border-radius:16px;padding:18px;margin:24px 0
}
.vd-sheet-panel strong{color:var(--vd-ink)}
.vd-evidence{display:inline-flex;align-items:center;gap:7px;font-weight:850;border-radius:999px;background:var(--vd-gold-soft);padding:7px 11px;color:#72571d}
.vd-related{margin-top:40px}

.vd-footer{
  margin-top:30px;background:var(--vd-ink-2);color:#dbe9e3;
  padding:30px clamp(18px,3vw,46px);
}
.vd-footer-inner{max-width:var(--vd-max);margin:0 auto;display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.vd-footer a{color:#fff}

.vd-empty{padding:30px;background:#fff;border:1px dashed var(--vd-line);border-radius:16px;color:var(--vd-muted)}

@media(max-width:1100px){
  .vd-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vd-gateway-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .vd-shell{display:block}
  .vd-sidebar{
    position:fixed;left:0;top:0;bottom:0;width:290px;height:100vh;
    transform:translateX(-105%);transition:.22s ease;
    box-shadow:10px 0 30px rgba(0,0,0,.25)
  }
  body.vd-menu-open .vd-sidebar{transform:translateX(0)}
  .vd-mobile-toggle{display:inline-flex}
  .vd-topbar{padding:12px 14px}
  .vd-content{padding-top:20px}
}
@media(max-width:640px){
  .vd-card-grid,.vd-gateway-grid{grid-template-columns:1fr}
  .vd-hero{min-height:430px}
  .vd-hero-inner{padding:28px}
  .vd-topbar{align-items:flex-start;flex-wrap:wrap}
  .vd-search{order:3;max-width:none;width:100%}
}
