/*
 * DigiDollar — /blog/ hub (archive-blog.php)
 * Premium gold magazine layout. Every selector scoped under .dd-bloghub.
 * Tokens mirror dd-footer.css; dark mode via html[data-dracula-scheme="dark"].
 * All motion gated behind prefers-reduced-motion.
 */

.dd-bloghub{
  --g1:#F8D277;--g2:#E9AE1E;--g3:#C7860C;
  --ink:#2A2012;--muted:rgba(42,32,18,.64);--muted2:rgba(42,32,18,.44);
  --panel:#FFFFFF;--panel2:#FBF4E6;
  --line:rgba(185,125,10,.16);--line2:rgba(185,125,10,.34);
  --news:#C43D2B;--news-soft:rgba(196,61,43,.1);
  --shadow:0 14px 36px -22px rgba(150,100,12,.5);
  --shadow-lift:0 26px 52px -24px rgba(150,100,12,.55);
  --numgrad:linear-gradient(180deg,#E9AE1E,#B97D0A);
  --dot:rgba(185,125,10,.05);
  --bg:radial-gradient(120% 70% at 85% -8%,rgba(233,174,30,.13),transparent 55%),
       radial-gradient(80% 60% at 8% 4%,rgba(233,174,30,.07),transparent 50%),
       linear-gradient(180deg,#FFFDF7 0%,#FBF6EC 55%,#F7F1E3 100%);
  position:relative;overflow:hidden;isolation:isolate;
  direction:rtl;background:var(--bg);color:var(--ink);
  font-family:inherit;line-height:1.75;-webkit-font-smoothing:antialiased}
html[data-dracula-scheme="dark"] .dd-bloghub{
  --ink:#F2EBDC;--muted:rgba(242,235,220,.6);--muted2:rgba(242,235,220,.38);
  --panel:rgba(255,247,230,.05);--panel2:rgba(255,247,230,.075);
  --line:rgba(232,184,75,.15);--line2:rgba(232,184,75,.32);
  --news:#FF7A5C;--news-soft:rgba(255,122,92,.13);
  --shadow:0 18px 42px -22px rgba(0,0,0,.65);
  --shadow-lift:0 30px 60px -26px rgba(0,0,0,.75);
  --numgrad:linear-gradient(180deg,#F8D277,#E9AE1E 55%,#C7860C);
  --dot:rgba(233,174,30,.05);
  --bg:radial-gradient(120% 70% at 85% -8%,rgba(233,174,30,.15),transparent 55%),
       radial-gradient(80% 60% at 8% 4%,rgba(199,134,12,.09),transparent 50%),
       linear-gradient(180deg,#16110A 0%,#100C07 55%,#0B0805 100%)}
.dd-bloghub *{box-sizing:border-box}

/* ---------- ambient decor (footer motif) ---------- */
.dd-bloghub::before{content:"";position:absolute;inset-inline:0;top:0;height:1px;z-index:4;
  background:linear-gradient(90deg,transparent,var(--g3),var(--g1),var(--g3),transparent);
  box-shadow:0 0 22px 1px rgba(233,174,30,.5)}
.dd-bloghub .dd-bh-glint{position:absolute;top:-1px;right:0;height:3px;width:160px;z-index:5;pointer-events:none;border-radius:3px;
  background:linear-gradient(90deg,transparent,#FFF3CE,transparent);filter:blur(1px);opacity:.9;animation:dd-bh-glint 6s linear infinite}
@keyframes dd-bh-glint{0%{right:-160px}55%{right:100%}100%{right:100%}}
.dd-bloghub .dd-bh-tex{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.7;
  background-image:radial-gradient(var(--dot) 1px,transparent 1.4px);background-size:22px 22px}
.dd-bloghub .dd-bh-aura{position:absolute;width:56%;max-width:720px;height:360px;top:-140px;right:-70px;z-index:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(233,174,30,.18),transparent 72%);filter:blur(8px);
  animation:dd-bh-drift 16s ease-in-out infinite alternate}
.dd-bloghub .dd-bh-aura--b{right:auto;left:-120px;top:34%;height:420px;opacity:.6;animation-duration:22s}
@keyframes dd-bh-drift{from{transform:translate(0,0) scale(1)}to{transform:translate(-44px,26px) scale(1.1)}}

.dd-bloghub .dd-bh-wrap{position:relative;z-index:2;max-width:1240px;margin:0 auto;padding:64px 30px 90px}

/* =============================== hero =============================== */
.dd-bloghub .dd-bh-hero{text-align:center;margin-bottom:44px}
.dd-bloghub .dd-bh-eyebrow{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 18px;
  font-size:13px;font-weight:600;letter-spacing:.2px;color:var(--g3)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-eyebrow{color:var(--g1)}
.dd-bloghub .dd-bh-eyebrow::before,.dd-bloghub .dd-bh-eyebrow::after{content:"";height:1px;width:64px;
  background:linear-gradient(90deg,transparent,var(--line2))}
.dd-bloghub .dd-bh-eyebrow::after{background:linear-gradient(270deg,transparent,var(--line2))}
.dd-bloghub .dd-bh-h1{margin:0 0 14px;font-size:clamp(30px,4.6vw,52px);font-weight:800;line-height:1.28;color:var(--ink)}
.dd-bloghub .dd-bh-h1 span{display:inline-block;background:var(--numgrad);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.dd-bloghub .dd-bh-sub{max-width:640px;margin:0 auto;font-size:15.5px;color:var(--muted)}

/* controls: chips + search */
.dd-bloghub .dd-bh-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px;margin-top:30px}
.dd-bloghub .dd-bh-chips{display:flex;gap:8px;padding:6px;border-radius:999px;
  background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.dd-bloghub .dd-bh-chip{padding:9px 20px;border-radius:999px;font-size:13.5px;font-weight:600;line-height:1;
  color:var(--muted);text-decoration:none;transition:color .25s,background .25s,box-shadow .25s}
.dd-bloghub .dd-bh-chip:hover{color:var(--g3);background:var(--panel2)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-chip:hover{color:var(--g1)}
.dd-bloghub .dd-bh-chip.is-on{color:#2A2012;
  background:linear-gradient(135deg,var(--g1),var(--g2) 55%,var(--g3));
  box-shadow:0 8px 20px -8px rgba(199,134,12,.65)}
.dd-bloghub .dd-bh-chip--news.is-on{color:#fff;background:linear-gradient(135deg,#E0604C,var(--news) 60%,#9C2F20);
  box-shadow:0 8px 20px -8px rgba(196,61,43,.6)}
.dd-bloghub .dd-bh-search{display:flex;align-items:center;gap:9px;padding:0 18px;height:46px;min-width:250px;border-radius:999px;
  background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--muted2);
  transition:border-color .25s,box-shadow .25s}
.dd-bloghub .dd-bh-search:focus-within{border-color:var(--line2);box-shadow:0 0 0 4px rgba(233,174,30,.14),var(--shadow)}
.dd-bloghub .dd-bh-search svg{width:17px;height:17px;flex:0 0 auto}
/* Parent theme's global input[type=search] adds padding:15px 25px / height:45px / margin-bottom:15px — reset it */
.dd-bloghub .dd-bh-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;
  padding:0;margin:0;height:auto;line-height:normal;box-shadow:none;border-radius:0;
  font:inherit;font-size:14px;color:var(--ink)}
.dd-bloghub .dd-bh-search input::placeholder{color:var(--muted2)}
.dd-bloghub .dd-bh-search input::-webkit-search-cancel-button{-webkit-appearance:none}

/* ============================ featured ============================ */
.dd-bloghub .dd-bh-featwrap{margin-bottom:14px}
.dd-bloghub .dd-bh-feat{position:relative;display:grid;grid-template-columns:1.05fr 1fr;min-height:380px;
  border-radius:26px;overflow:hidden;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:box-shadow .35s,transform .35s,border-color .35s}
.dd-bloghub .dd-bh-feat:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift);border-color:var(--line2)}
.dd-bloghub .dd-bh-feat::after{content:"";position:absolute;top:0;inset-inline:18%;height:2px;border-radius:2px;z-index:3;
  background:linear-gradient(90deg,transparent,var(--g2),transparent);opacity:.8}
.dd-bloghub .dd-bh-feat .dd-bh-media{min-height:280px}
.dd-bloghub .dd-bh-feat .dd-bh-body{padding:38px 40px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.dd-bloghub .dd-bh-feat .dd-bh-title{margin:0;font-size:clamp(21px,2.5vw,30px);font-weight:800;line-height:1.5;
  display:block;text-align:inherit}
.dd-bloghub .dd-bh-feat .dd-bh-excerpt{-webkit-line-clamp:4}

/* ======================== divider + grid ========================= */
.dd-bloghub .dd-bh-griddivider{display:flex;align-items:center;gap:18px;margin:42px 0 26px;
  font-size:14px;font-weight:700;color:var(--g3)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-griddivider{color:var(--g1)}
.dd-bloghub .dd-bh-griddivider::before,.dd-bloghub .dd-bh-griddivider::after{content:"";height:1px;flex:1;
  background:linear-gradient(90deg,transparent,var(--line2),transparent)}
.dd-bloghub .dd-bh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:26px}

/* ============================= cards ============================= */
.dd-bloghub .dd-bh-card{position:relative;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;
  background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:transform .35s,box-shadow .35s,border-color .35s}
.dd-bloghub .dd-bh-card:hover{transform:translateY(-7px);box-shadow:var(--shadow-lift);border-color:var(--line2)}
.dd-bloghub .dd-bh-card .dd-bh-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:10px;flex:1}
.dd-bloghub .dd-bh-card .dd-bh-title{margin:0;font-size:17.5px;font-weight:800;line-height:1.65;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Customizer wp-custom-css injects global h2{padding-top:45px!important;margin-bottom:25px!important;
   display:flex;justify-content:center;…} for legacy article pages — neutralize it inside the hub */
.dd-bloghub .dd-bh-title{margin:0!important;padding:0!important;position:static}
.dd-bloghub .dd-bh-title a{color:var(--ink);text-decoration:none;transition:color .25s}
.dd-bloghub .dd-bh-item:hover .dd-bh-title a{color:var(--g3)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-item:hover .dd-bh-title a{color:var(--g1)}

/* media */
.dd-bloghub .dd-bh-media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;
  background:linear-gradient(135deg,#F6E7C4,#EEDCB0)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-media{background:linear-gradient(135deg,#2A2113,#1B1509)}
.dd-bloghub .dd-bh-feat .dd-bh-media{aspect-ratio:auto;height:100%}
.dd-bloghub .dd-bh-media img{width:100%!important;height:100%!important;object-fit:cover;display:block;
  transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.dd-bloghub .dd-bh-item:hover .dd-bh-media img{transform:scale(1.06)}
/* sheen sweep on hover */
.dd-bloghub .dd-bh-media::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(115deg,transparent 38%,rgba(255,243,206,.35) 50%,transparent 62%);
  transform:translateX(110%);transition:transform .7s ease}
.dd-bloghub .dd-bh-item:hover .dd-bh-media::after{transform:translateX(-110%)}
/* no-thumbnail fallback: gold hologram */
.dd-bloghub .dd-bh-holo{position:absolute;inset:0;display:grid;place-items:center;color:var(--g3);
  background:
    radial-gradient(90% 120% at 78% -10%,rgba(233,174,30,.32),transparent 60%),
    radial-gradient(70% 100% at 12% 110%,rgba(199,134,12,.24),transparent 60%),
    repeating-linear-gradient(45deg,rgba(233,174,30,.07) 0 14px,transparent 14px 28px),
    linear-gradient(135deg,#FBF2DC,#F1E1B8)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-holo{color:var(--g1);
  background:
    radial-gradient(90% 120% at 78% -10%,rgba(233,174,30,.2),transparent 60%),
    radial-gradient(70% 100% at 12% 110%,rgba(199,134,12,.16),transparent 60%),
    repeating-linear-gradient(45deg,rgba(233,174,30,.06) 0 14px,transparent 14px 28px),
    linear-gradient(135deg,#241B0E,#171107)}
.dd-bloghub .dd-bh-holo svg{width:64px;height:64px;opacity:.75;filter:drop-shadow(0 6px 16px rgba(199,134,12,.35))}

/* badges on media */
.dd-bloghub .dd-bh-badge{position:absolute;top:14px;right:14px;z-index:3;padding:6px 14px;border-radius:999px;
  font-size:12px;font-weight:800;line-height:1;letter-spacing:.3px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dd-bloghub .dd-bh-badge--blog{color:#2A2012;background:linear-gradient(135deg,var(--g1),var(--g2));
  box-shadow:0 6px 16px -6px rgba(199,134,12,.7)}
.dd-bloghub .dd-bh-badge--news{color:#fff;background:linear-gradient(135deg,#E0604C,var(--news));
  box-shadow:0 6px 16px -6px rgba(196,61,43,.7)}
.dd-bloghub .dd-bh-new{position:absolute;top:14px;left:14px;z-index:3;display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1;color:#2A2012;
  background:rgba(255,250,238,.9);border:1px solid var(--line2);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-new{color:var(--g1);background:rgba(22,17,10,.72)}
.dd-bloghub .dd-bh-new i{width:7px;height:7px;border-radius:50%;background:var(--g2);
  box-shadow:0 0 0 0 rgba(233,174,30,.55);animation:dd-bh-pulse 2s ease-out infinite}
@keyframes dd-bh-pulse{0%{box-shadow:0 0 0 0 rgba(233,174,30,.55)}70%{box-shadow:0 0 0 8px rgba(233,174,30,0)}100%{box-shadow:0 0 0 0 rgba(233,174,30,0)}}

/* kicker / meta */
.dd-bloghub .dd-bh-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:9px;
  font-size:12.5px;font-weight:500;color:var(--muted2)}
/* Theme option "disable date globally" injects time{display:none!important}; hub dates must survive it */
.dd-bloghub time{display:inline!important}
.dd-bloghub .dd-bh-kicker time{color:var(--g3);font-weight:700}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-kicker time{color:var(--g1)}
.dd-bloghub .dd-bh-dotsep{width:4px;height:4px;border-radius:50%;background:var(--line2)}
.dd-bloghub .dd-bh-views{display:inline-flex;align-items:center;gap:5px}
.dd-bloghub .dd-bh-views svg{width:15px;height:15px}

/* excerpt + more link */
.dd-bloghub .dd-bh-excerpt{margin:0;font-size:14px;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dd-bloghub .dd-bh-more{display:inline-flex;align-items:center;gap:7px;margin-top:auto;width:fit-content;
  font-size:13.5px;font-weight:700;color:var(--g3);text-decoration:none;transition:gap .25s,color .25s}
html[data-dracula-scheme="dark"] .dd-bloghub .dd-bh-more{color:var(--g1)}
.dd-bloghub .dd-bh-more svg{width:16px;height:16px;transition:transform .25s}
.dd-bloghub .dd-bh-more:hover{gap:11px}
.dd-bloghub .dd-bh-more--cta{margin-top:6px;padding:12px 26px;border-radius:999px;color:#2A2012!important;
  background:linear-gradient(135deg,var(--g1),var(--g2) 55%,var(--g3));
  box-shadow:0 10px 26px -10px rgba(199,134,12,.75);transition:transform .25s,box-shadow .25s,gap .25s}
.dd-bloghub .dd-bh-more--cta:hover{transform:translateY(-2px);box-shadow:0 16px 32px -12px rgba(199,134,12,.85)}

/* ===================== reveal-on-scroll (JS adds .is-in) ===================== */
@media (prefers-reduced-motion:no-preference){
  .dd-bloghub.js .dd-bh-item{opacity:0;transform:translateY(22px);
    transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s}
  .dd-bloghub.js .dd-bh-item.is-in{opacity:1;transform:none}
  .dd-bloghub.js .dd-bh-item.is-in:hover{transform:translateY(-7px)}
  .dd-bloghub.js .dd-bh-feat.is-in:hover{transform:translateY(-4px)}
}

/* ========================= search no-result ========================= */
.dd-bloghub .dd-bh-noresults{margin:34px 0 0;text-align:center;font-size:15px;color:var(--muted)}
.dd-bloghub .dd-bh-item.is-hidden{display:none}

/* ============================ pagination ============================ */
.dd-bloghub .dd-bh-pagination{margin-top:52px}
.dd-bloghub .dd-bh-pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.dd-bloghub .dd-bh-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;height:44px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:700;text-decoration:none;
  color:var(--muted);background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);
  transition:color .25s,border-color .25s,transform .25s}
.dd-bloghub .dd-bh-pagination .page-numbers:hover{color:var(--g3);border-color:var(--line2);transform:translateY(-2px)}
.dd-bloghub .dd-bh-pagination .page-numbers.current{color:#2A2012;border-color:transparent;
  background:linear-gradient(135deg,var(--g1),var(--g2) 55%,var(--g3));
  box-shadow:0 8px 20px -8px rgba(199,134,12,.65)}
.dd-bloghub .dd-bh-pagination .page-numbers.dots{border:0;background:transparent;box-shadow:none}
.dd-bloghub .dd-bh-pagination .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============================ empty state ============================ */
.dd-bloghub .dd-bh-empty{text-align:center;padding:70px 20px;border-radius:24px;
  background:var(--panel);border:1px dashed var(--line2)}
.dd-bloghub .dd-bh-empty p{margin:0 0 20px;font-size:16px;color:var(--muted)}
.dd-bloghub .dd-bh-empty .dd-bh-more--cta{margin:0 auto}

/* ============================ responsive ============================ */
@media (max-width:900px){
  .dd-bloghub .dd-bh-feat{grid-template-columns:1fr}
  .dd-bloghub .dd-bh-feat .dd-bh-media{aspect-ratio:16/9;height:auto}
  .dd-bloghub .dd-bh-feat .dd-bh-body{padding:26px 24px 28px}
}
@media (max-width:640px){
  .dd-bloghub .dd-bh-wrap{padding:44px 18px 64px}
  .dd-bloghub .dd-bh-grid{grid-template-columns:1fr;gap:20px}
  .dd-bloghub .dd-bh-controls{flex-direction:column}
  .dd-bloghub .dd-bh-chips{width:100%;max-width:420px;justify-content:center}
  .dd-bloghub .dd-bh-chip{padding:9px 14px;font-size:12.5px}
  .dd-bloghub .dd-bh-search{width:100%;max-width:420px}
}

/* motion off: keep everything visible & static */
@media (prefers-reduced-motion:reduce){
  .dd-bloghub .dd-bh-glint,.dd-bloghub .dd-bh-aura{animation:none}
  .dd-bloghub .dd-bh-new i{animation:none}
  .dd-bloghub .dd-bh-media::after{display:none}
  .dd-bloghub .dd-bh-item,.dd-bloghub .dd-bh-item:hover,
  .dd-bloghub .dd-bh-media img,.dd-bloghub .dd-bh-item:hover .dd-bh-media img{transition:none;transform:none}
}
