/*
Theme Name: howtowb
Theme URI: https://howtowb.com
Author: howtowb
Author URI: https://howtowb.com
Description: Dark violet/cyan AI prompt library theme — Image and Video prompt galleries with a PromptHero-style single prompt page. Built for the "Prompt" custom post type.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: howtowb
*/

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

:root{
  --bg:            #0A0B14;
  --surface:       #12141F;
  --surface-2:     #1A1D2E;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text:          #EDEDF5;
  --text-muted:    #9497B0;
  --text-faint:    #5C5F76;
  --violet:        #9B5DE5;
  --cyan:          #2EE6D6;
  --gradient:      linear-gradient(135deg, #9B5DE5 0%, #5B7FE8 55%, #2EE6D6 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(155,93,229,0.16), transparent 60%),
    radial-gradient(500px 350px at 5% 15%, rgba(46,230,214,0.10), transparent 60%);
}
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: 'Space Grotesk', sans-serif; font-weight:600; line-height:1.15; margin:0; letter-spacing:-0.01em; }
.container{ max-width:1240px; margin:0 auto; padding:0 32px; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 2px; }
.grad-text{ background-image: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* -------------------- Header -------------------- */
.site-header{ position:sticky; top:0; z-index:100; background:rgba(10,11,20,0.92); border-bottom:1px solid var(--border); }
.site-header::before{ content:''; position:absolute; inset:0; z-index:-1; backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:68px; gap:16px; }
.logo{ font-family:'Space Grotesk',sans-serif; font-size:1.2rem; font-weight:700; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.logo .logo-mark{ display:inline-flex; align-items:center; justify-content:center; line-height:0; flex-shrink:0; }
.logo .wb{ color:var(--cyan); }
.main-nav{ display:flex; align-items:center; gap:32px; }
.main-nav li{ list-style:none; position:relative; }
.main-nav a{ font-size:0.92rem; color:var(--text-muted); transition:color .15s ease; white-space:nowrap; display:inline-flex; align-items:center; }
.main-nav a:hover, .main-nav a.current{ color:var(--text); }

/* Dropdown for any nested (child) menu items — standard WordPress sub-menu markup */
.main-nav li.menu-item-has-children > a::after{ content:'\25BE'; font-size:0.6em; margin-left:6px; opacity:0.75; }
.main-nav .sub-menu{ list-style:none; margin:0; padding:8px; position:absolute; top:calc(100% + 12px); left:0; min-width:180px;
  background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  display:none; flex-direction:column; gap:2px; z-index:150; box-shadow:0 16px 34px -12px rgba(0,0,0,0.55); }
.main-nav li.menu-item-has-children:hover > .sub-menu,
.main-nav li.menu-item-has-children:focus-within > .sub-menu{ display:flex; }
.main-nav .sub-menu a{ padding:8px 10px; border-radius:6px; width:100%; }
.main-nav .sub-menu a:hover{ background:var(--surface-2); }
.main-nav .sub-menu li{ position:relative; }
.main-nav .sub-menu .sub-menu{ top:-8px; left:calc(100% + 6px); }
.nav-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 22px; border-radius:999px; font-size:0.92rem; font-weight:600; border:1px solid transparent; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; white-space:nowrap; }
.btn-primary{ background:var(--gradient); color:#0A0B14; }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 10px 30px -8px rgba(155,93,229,0.6); }
.btn-ghost{ background:transparent; border-color:var(--border-strong); color:var(--text); }
.btn-ghost:hover{ border-color:var(--cyan); }
.btn-sm{ padding:8px 16px; font-size:0.85rem; }
.nav-toggle{ display:none; background:none; border:1px solid var(--border-strong); border-radius:8px; width:40px; height:40px; align-items:center; justify-content:center; color:var(--text); font-size:1.1rem; flex-shrink:0; }

/* Mobile nav: overlay panel, not inline-positioned — can never collide with page content */
@media (max-width:860px){
  .main-nav, .nav-actions .btn-ghost{ display:none; }
  .nav-toggle{ display:flex; }
  .main-nav.is-open{
    display:flex; flex-direction:column; align-items:flex-start; gap:4px;
    position:fixed; top:68px; left:0; right:0; bottom:0; z-index:99;
    background:var(--bg); padding:28px 24px; overflow-y:auto;
  }
  .main-nav.is-open a{ font-size:1.1rem; padding:14px 4px; width:100%; border-bottom:1px solid var(--border); color:var(--text); }
  .main-nav.is-open li{ width:100%; }
  .main-nav.is-open .sub-menu{ display:flex; position:static; width:100%; border:0; box-shadow:none; background:none; padding:0 0 0 16px; }
  .main-nav.is-open .sub-menu a{ font-size:1rem; border-bottom:1px solid var(--border); }
  .main-nav.is-open li.menu-item-has-children > a::after{ content:''; }
}

/* -------------------- Hero (home page: copy only, no media card) -------------------- */
.hero{ padding:88px 0 64px; text-align:center; }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:8px; color:var(--cyan); font-size:0.85rem; margin-bottom:18px; }
.hero .container{ display:block; text-align:center; max-width:820px; margin:0 auto; }
.hero h1{ margin:0 auto 26px; max-width:none; font-size:clamp(2.4rem,5vw,3.6rem); }
.hero p.lead{ margin:0 auto 30px; max-width:560px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:nowrap; justify-content:center; }

@media (max-width:420px){
  .hero-ctas{ gap:10px; }
  .hero-ctas .btn{ padding:11px 14px; font-size:0.82rem; flex:1 1 0; text-align:center; }
}

/* -------------------- How it works -------------------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.step{ border:1px solid var(--border); border-radius:var(--radius-md); padding:30px 26px; background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent); }
.step .num{ font-family:'Space Grotesk',sans-serif; font-size:0.9rem; color:var(--cyan); border:1px solid var(--border-strong); width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.step h3{ font-size:1.1rem; margin-bottom:10px; }
.step p{ color:var(--text-muted); font-size:0.92rem; margin:0; }

/* -------------------- Category tiles -------------------- */
.cat-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.cat-tile{ border:1px solid var(--border); border-radius:var(--radius-md); padding:22px 16px; text-align:center; background:var(--surface); transition:border-color .2s ease, background .2s ease; }
.cat-tile:hover{ border-color:var(--cyan); background:var(--surface-2); }
.cat-tile .glyph{ font-size:1.4rem; margin-bottom:10px; }
.cat-tile span{ font-size:0.85rem; color:var(--text-muted); }

/* -------------------- Social row -------------------- */
.social-row{ display:flex; align-items:center; justify-content:center; gap:48px; flex-wrap:wrap; color:var(--text-faint); font-family:'Space Grotesk',sans-serif; font-size:1.1rem; }

/* -------------------- Newsletter band -------------------- */
.band{ border:1px solid var(--border-strong); border-radius:var(--radius-lg); padding:56px; background:radial-gradient(500px 250px at 15% 0%, rgba(155,93,229,0.14), transparent), var(--surface); display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.band h3{ font-size:1.6rem; margin-bottom:10px; }
.band p{ color:var(--text-muted); margin:0; max-width:420px; }
.band-form{ display:flex; gap:10px; flex-shrink:0; }
.band-form input{ background:var(--bg); border:1px solid var(--border-strong); color:var(--text); padding:12px 16px; border-radius:999px; font-size:0.9rem; width:240px; }

@media (max-width:900px){
  .steps{ grid-template-columns:1fr; }
  .cat-grid{ grid-template-columns:repeat(3,1fr); }
  .band{ flex-direction:column; align-items:flex-start; }
  .band-form{ width:100%; }
  .band-form input{ width:100%; }
}
@media (max-width:600px){
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
}

/* -------------------- Tools strip -------------------- */
.tools{ padding:50px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.tools p.lbl{ text-align:center; color:var(--text-faint); font-size:0.85rem; margin-bottom:24px; }
.tool-row{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }
.tool-chip{ border:1px solid var(--border-strong); padding:10px 18px; border-radius:999px; font-size:0.88rem; color:var(--text-muted); background:var(--surface); }

/* -------------------- Section shared -------------------- */
.section{ padding:80px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; }
.section-head h2{ font-size:clamp(1.4rem,2.4vw,1.9rem); }
.section-head a{ color:var(--cyan); font-size:0.9rem; }

/* -------------------- Cards -------------------- */
.card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.prompt-card{ border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--surface); transition:border-color .2s ease, transform .2s ease; display:block; }
.prompt-card:hover{ border-color:var(--border-strong); transform:translateY(-3px); }
.prompt-card .thumb{ position:relative; aspect-ratio:9/16; height:auto; background:linear-gradient(150deg,#241C46,#12283A); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.prompt-card .thumb.type-image img, .prompt-card .thumb.type-image video{ width:100%; height:100%; object-fit:contain; }
.prompt-card .thumb.type-video img, .prompt-card .thumb.type-video video{ width:100%; height:100%; object-fit:cover; }
.prompt-card .badge{ position:absolute; top:10px; left:10px; font-size:0.7rem; padding:4px 9px; border-radius:999px; background:rgba(10,11,20,0.75); border:1px solid var(--border-strong); }
.prompt-card .badge.video{ color:var(--cyan); }
.prompt-card .badge.image{ color:var(--violet); }
.prompt-card .play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .2s ease; pointer-events:none; }
.prompt-card:hover .play{ opacity:1; }
.prompt-card .thumb-placeholder{ width:100%; height:100%; background:linear-gradient(150deg,#241C46,#12283A); }
.prompt-card .play.play-always{ opacity:1; }
.prompt-card .play span{ width:44px; height:44px; border-radius:50%; background:rgba(10,11,20,0.7); border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.prompt-card .body{ padding:16px; }
.prompt-card .body .tool{ font-size:0.75rem; color:var(--text-faint); margin-bottom:6px; }
.prompt-card .body h4{ font-size:0.95rem; font-weight:500; margin-bottom:4px; font-family:'Inter',sans-serif; }
.prompt-card .body .cat{ font-size:0.8rem; color:var(--text-muted); }

/* -------------------- Blog cards -------------------- */
.blog-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.blog-card{ border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--surface); transition:border-color .2s ease, transform .2s ease; display:block; }
.blog-card:hover{ border-color:var(--border-strong); transform:translateY(-3px); }
.blog-thumb{ position:relative; aspect-ratio:16/10; overflow:hidden; background:linear-gradient(150deg,#241C46,#12283A); display:flex; align-items:center; justify-content:center; }
.blog-thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-thumb-placeholder{ width:100%; height:100%; background:linear-gradient(150deg,#241C46,#12283A); }
.blog-body{ padding:18px; }
.blog-date{ font-size:0.75rem; color:var(--text-faint); margin-bottom:8px; }
.blog-body h3{ font-size:1.05rem; font-weight:600; margin-bottom:8px; line-height:1.3; }
.blog-body p{ font-size:0.88rem; color:var(--text-muted); line-height:1.55; margin:0; }

/* -------------------- Prompt page: About + How-to guide -------------------- */
.prompt-about p{ color:var(--text-muted); line-height:1.75; margin:0 0 14px; max-width:800px; }
.prompt-guide{ max-width:800px; }
.prompt-guide h2{ font-size:1.4rem; margin:40px 0 14px; }
.prompt-guide h2:first-child{ margin-top:0; }
.prompt-guide h3{ font-size:1.05rem; margin:22px 0 8px; }
.prompt-guide p{ color:var(--text-muted); line-height:1.75; margin:0 0 14px; }
.prompt-guide ul{ margin:0 0 14px; padding-left:20px; color:var(--text-muted); line-height:1.9; }
.prompt-guide li{ margin-bottom:4px; }

/* -------------------- Filter bar -------------------- */
.page-head{ padding:56px 0 40px; }
.page-head h1{ font-size:clamp(2rem,3.5vw,2.6rem); margin-bottom:12px; }
.page-head p{ color:var(--text-muted); max-width:560px; }
.filter-bar{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-bottom:36px; border-bottom:1px solid var(--border); margin-bottom:36px; }
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{ border:1px solid var(--border); padding:8px 16px; border-radius:999px; font-size:0.85rem; color:var(--text-muted); transition:border-color .15s ease, color .15s ease; }
.chip:hover, .chip.active{ border-color:var(--cyan); color:var(--text); }
.empty-state{ text-align:center; color:var(--text-muted); padding:80px 0; }
.empty-state a{ color:var(--cyan); }

/* -------------------- Single prompt -------------------- */
.breadcrumb{ display:flex; gap:8px; color:var(--text-faint); font-size:0.85rem; padding:28px 0 0; flex-wrap:wrap; }
.breadcrumb a:hover{ color:var(--cyan); }
.prompt-detail{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; padding:36px 0 90px; align-items:flex-start; }
.media-frame{ position:relative; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border-strong); background:linear-gradient(160deg,#241C46,#12283A); display:flex; align-items:center; justify-content:center; }
.media-frame img{ display:block; width:auto; height:auto; max-width:100%; max-height:80vh; object-fit:contain; border:0; }
.media-frame video, .media-frame iframe{ display:block; width:100%; height:100%; object-fit:contain; border:0; }
.media-frame.is-video{ aspect-ratio:9/18; max-height:80vh; max-width:calc(80vh * 9 / 18); margin:0 auto; }
.ig-embed-crop{ position:relative; width:100%; height:100%; overflow:hidden; background:var(--surface); }
.ig-embed-crop iframe{ position:absolute; top:-58px; left:0; width:100%; height:calc(100% + 58px); border:0; }
.detail-panel .tags{ display:flex; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.tag{ font-size:0.78rem; padding:6px 12px; border-radius:999px; border:1px solid var(--border-strong); }
.tag.tool{ color:var(--violet); border-color:rgba(155,93,229,0.4); }
.tag.type{ color:var(--cyan); border-color:rgba(46,230,214,0.4); }
.detail-panel h1{ font-size:1.9rem; margin-bottom:14px; }
.detail-panel .meta-row{ display:flex; gap:22px; color:var(--text-muted); font-size:0.85rem; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.prompt-box{ border:1px solid var(--border-strong); border-radius:var(--radius-md); background:var(--surface); overflow:hidden; margin-bottom:24px; }
.prompt-box-head{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--border); background:var(--surface-2); }
.prompt-box-head span{ font-size:0.8rem; color:var(--text-muted); }
.copy-btn{ display:flex; align-items:center; gap:8px; background:var(--gradient); color:#0A0B14; border:none; padding:8px 16px; border-radius:999px; font-size:0.82rem; font-weight:600; }
.prompt-box-body{ padding:20px; font-family:'JetBrains Mono', ui-monospace, monospace; font-size:0.92rem; color:var(--text); line-height:1.7; white-space:pre-wrap; }
.param-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:28px; }
.param{ border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px 14px; }
.param .label{ display:block; font-size:0.72rem; color:var(--text-faint); margin-bottom:4px; }
.param .value{ display:block; font-size:0.9rem; }

/* -------------------- Footer -------------------- */
.site-footer{ border-top:1px solid var(--border); padding:64px 0 32px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-grid p{ color:var(--text-muted); font-size:0.9rem; max-width:280px; }
.footer-grid h5{ font-size:0.85rem; color:var(--text); margin-bottom:16px; font-weight:600; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ color:var(--text-muted); font-size:0.9rem; }
.footer-grid a:hover{ color:var(--cyan); }
.footer-bottom{ border-top:1px solid var(--border); padding-top:24px; display:flex; justify-content:space-between; color:var(--text-faint); font-size:0.8rem; flex-wrap:wrap; gap:10px; }

/* -------------------- Responsive -------------------- */
@media (max-width:1080px){ .card-grid, .blog-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:900px){
  .prompt-detail{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .container{ padding:0 20px; }
  .hero{ padding:44px 0 32px; }
  .section{ padding:48px 0; }
  .page-head{ padding:36px 0 24px; }
  .card-grid, .blog-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .footer-grid{ grid-template-columns:1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:8px; }
  .prompt-box-body{ font-size:0.85rem; }
  .param-grid{ grid-template-columns:1fr 1fr; }

  /* Homepage-only: horizontal swipe row instead of a wrapping grid, mobile only */
  .card-grid.home-scroll, .blog-grid.home-scroll{
    display:flex; grid-template-columns:none; flex-wrap:nowrap;
    overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
    margin:0 -20px; padding:0 20px 6px; gap:14px;
  }
  .card-grid.home-scroll::-webkit-scrollbar, .blog-grid.home-scroll::-webkit-scrollbar{ display:none; }
  .card-grid.home-scroll .prompt-card{ flex:0 0 44%; min-width:44%; scroll-snap-align:start; }
  .blog-grid.home-scroll .blog-card{ flex:0 0 78%; min-width:78%; scroll-snap-align:start; }
}

/* -------------------- Gutenberg content areas (page/post body) -------------------- */
.entry-content{ max-width:800px; margin:0 auto; padding:60px 32px; }
.entry-content h2, .entry-content h3{ margin-top:1.4em; margin-bottom:0.5em; }
.entry-content p{ color:var(--text-muted); margin:0 0 1.2em; }
.entry-content a{ color:var(--cyan); text-decoration:underline; }
.entry-content img{ border-radius:var(--radius-md); }
.entry-content .wp-block-quote{ border-left:3px solid var(--cyan); padding-left:20px; color:var(--text-muted); }

/* =====================================================================
   v1.1 — Desktop hero, filter pills, 1-column latest feed
   ===================================================================== */

/* -------------------- Split hero (desktop) -------------------- */
.hero.hero-split{ position:relative; text-align:left; padding:72px 0 80px; overflow:hidden; min-height:min(700px, calc(100vh - 68px)); display:flex; align-items:center; }
.hero-glow{ position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(700px 420px at 78% 40%, rgba(155,93,229,0.28), transparent 65%),
    radial-gradient(520px 360px at 12% 85%, rgba(46,230,214,0.14), transparent 65%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0/48px 48px;
  -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%); mask-image:linear-gradient(180deg,#000 55%,transparent 100%); }
.hero.hero-split .hero-inner{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; max-width:1240px; margin:0 auto; text-align:left; }
.hero.hero-split .hero-copy{ text-align:left; }
.hero.hero-split h1{ font-size:clamp(2.4rem,4.6vw,4rem); margin:0 0 20px; line-height:1.08; }
.hero-lead{ color:var(--text-muted); font-size:1.08rem; max-width:520px; margin:0 0 30px; }
.hero.hero-split .hero-ctas{ justify-content:flex-start; margin-bottom:38px; }
.hero.hero-split .hero-ctas .btn{ padding:14px 28px; font-size:1rem; }
.live-dot{ width:8px; height:8px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 0 rgba(46,230,214,.6); animation:hwbPulse 2s infinite; }
@keyframes hwbPulse{ 70%{ box-shadow:0 0 0 10px rgba(46,230,214,0);} 100%{ box-shadow:0 0 0 0 rgba(46,230,214,0);} }
.hero-stats{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:26px; }
.hero-stats > div{ min-width:104px; padding:14px 18px; border:1px solid var(--border); border-radius:var(--radius-md); background:rgba(255,255,255,0.03); backdrop-filter:blur(6px); }
.hero-stats strong{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.45rem; background-image:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stats span{ font-size:0.78rem; color:var(--text-muted); }
.hero-cats{ display:flex; gap:10px; flex-wrap:wrap; }
.hero-cats a{ padding:8px 18px; border-radius:999px; border:1px solid var(--border-strong); font-size:0.88rem; color:var(--text-muted); transition:all .15s ease; }
.hero-cats a:hover{ color:var(--text); border-color:var(--violet); background:rgba(155,93,229,0.12); }

/* Showcase collage */
.hero-showcase{ position:relative; height:560px; }
.hero-card{ position:absolute; display:block; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border-strong); background:linear-gradient(150deg,#241C46,#12283A); box-shadow:0 28px 60px -20px rgba(0,0,0,.7); aspect-ratio:4/5; transition:transform .35s ease, box-shadow .35s ease; }
.hero-card img{ width:100%; height:100%; object-fit:cover; }
.hero-card:hover{ transform:translateY(-8px) rotate(0deg) scale(1.03); z-index:5; box-shadow:0 36px 70px -20px rgba(155,93,229,.55); }
.hero-card.c1{ left:0;   top:70px;  width:31%; transform:rotate(-5deg); animation:hwbFloat 7s ease-in-out infinite; }
.hero-card.c2{ left:34%; top:0;     width:33%; transform:rotate(3deg);  animation:hwbFloat 8s ease-in-out -2s infinite; z-index:2; }
.hero-card.c3{ left:70%; top:84px;  width:30%; transform:rotate(-2deg); animation:hwbFloat 9s ease-in-out -4s infinite; }
.hero-card.c4{ left:10%; top:310px; width:32%; transform:rotate(4deg);  animation:hwbFloat 8s ease-in-out -1s infinite; z-index:3; }
.hero-card.c5{ left:50%; top:300px; width:32%; transform:rotate(-4deg); animation:hwbFloat 9s ease-in-out -3s infinite; z-index:3; }
@keyframes hwbFloat{ 0%,100%{ translate:0 0; } 50%{ translate:0 -10px; } }
.float-chip{ position:absolute; z-index:6; padding:9px 16px; border-radius:999px; font-size:0.82rem; font-weight:600; background:rgba(10,11,20,.82); border:1px solid var(--border-strong); backdrop-filter:blur(8px); box-shadow:0 10px 30px -10px rgba(0,0,0,.6); }
.float-chip.fc-1{ left:-2%; top:270px; color:var(--cyan); }
.float-chip.fc-2{ right:0; top:250px; color:#C9A6FF; }
@media (prefers-reduced-motion:reduce){ .hero-card, .live-dot, .marquee-track{ animation:none !important; } }

/* Tools marquee */
.tools-marquee{ overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(255,255,255,0.02); padding:16px 0; }
.marquee-track{ display:flex; gap:44px; width:max-content; animation:hwbMarquee 32s linear infinite; }
.marquee-track span{ font-family:'Space Grotesk',sans-serif; font-size:1rem; color:var(--text-faint); white-space:nowrap; }
.marquee-track span::before{ content:'\2726'; margin-right:44px; color:var(--violet); opacity:.7; }
@keyframes hwbMarquee{ to{ transform:translateX(-50%); } }

/* -------------------- Filter pills -------------------- */
.filter-wrap{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:28px; }
.filter-pills{ display:inline-flex; align-items:center; gap:6px; padding:6px; border:1px solid var(--border-strong); border-radius:16px; background:var(--surface); overflow-x:auto; max-width:100%; scrollbar-width:none; }
.filter-pills::-webkit-scrollbar{ display:none; }
.filter-pills .pill{ padding:10px 22px; border-radius:12px; font-size:0.92rem; font-weight:500; color:var(--text-muted); white-space:nowrap; transition:background .15s ease, color .15s ease; border:1px solid transparent; }
.filter-pills .pill:hover{ color:var(--text); border-color:var(--border-strong); }
.filter-pills .pill.active{ color:#fff; background:linear-gradient(135deg,#8B4DF0,#6A3CE0); box-shadow:0 8px 20px -8px rgba(139,77,240,.8); }
.prompt-search{ display:flex; align-items:center; gap:10px; padding:0 16px; height:48px; min-width:280px; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface); color:var(--text-faint); }
.prompt-search input{ flex:1; background:none; border:0; outline:0; color:var(--text); font-size:0.92rem; font-family:inherit; }
.prompt-search:focus-within{ border-color:var(--cyan); }

/* -------------------- Latest feed -------------------- */
/* Desktop columns. Set --latest-cols:1 to make desktop a single column too. */
.card-grid.latest-grid{ --latest-cols:5; grid-template-columns:repeat(var(--latest-cols),1fr); }

@media (max-width:1000px){
  .hero.hero-split{ min-height:0; padding:56px 0 48px; text-align:center; }
  .hero.hero-split .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero.hero-split .hero-copy{ text-align:center; }
  .hero-lead{ margin-left:auto; margin-right:auto; }
  .hero.hero-split .hero-ctas, .hero-stats, .hero-cats{ justify-content:center; }
  .hero-showcase{ height:300px; max-width:520px; margin:8px auto 0; }
  .hero-card.c4, .hero-card.c5, .float-chip{ display:none; }
  .hero-card.c1{ left:2%;  top:46px; width:31%; }
  .hero-card.c2{ left:31%; top:0;    width:38%; }
  .hero-card.c3{ left:67%; top:46px; width:31%; }
  .card-grid.latest-grid{ --latest-cols:3; }
}
@media (max-width:600px){
  .hero.hero-split{ padding:40px 0 32px; }
  .hero-showcase{ height:250px; }
  .hero.hero-split .hero-ctas{ margin-bottom:26px; }
  .hero-cats{ display:none; }
  .prompt-search{ width:100%; min-width:0; }
  .filter-pills{ width:100%; }
  .filter-pills .pill{ padding:9px 16px; }
  /* Latest prompts: ONE column on mobile */
  .card-grid.latest-grid{ --latest-cols:1; gap:20px; max-width:460px; margin-left:auto; margin-right:auto; }
}

/* Shortcode grid */
.hwb-sc-grid{ margin:0 0 24px; }
.hwb-sc-pager{ display:flex; justify-content:center; margin:36px 0 56px; }

/* =====================================================================
   v1.1.2 — bigger desktop collage, fixed mobile hero
   ===================================================================== */
.hero.hero-split .hero-inner{ grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr); max-width:1360px; gap:40px; }
.hero.hero-split{ min-height:min(780px, calc(100vh - 68px)); }
.hero-showcase{ height:720px; width:100%; }
.hero-card.c1{ left:0;   top:110px; width:34%; }
.hero-card.c2{ left:30%; top:0;     width:40%; }
.hero-card.c3{ left:66%; top:130px; width:34%; }
.hero-card.c4{ left:4%;  top:400px; width:38%; }
.hero-card.c5{ left:44%; top:390px; width:40%; }
.float-chip.fc-1{ top:360px; }
.float-chip.fc-2{ top:340px; }

@media (max-width:1000px){
  .hero.hero-split .hero-inner{ grid-template-columns:minmax(0,1fr); gap:28px; }
  .hero.hero-split .hero-copy{ min-width:0; }
  .hero-showcase{ display:block; width:100%; max-width:560px; height:340px; margin:0 auto; }
  .hero-card.c1{ left:0;   top:60px; width:33%; }
  .hero-card.c2{ left:30%; top:0;    width:40%; }
  .hero-card.c3{ left:67%; top:60px; width:33%; }
  .hero-card.c4, .hero-card.c5, .float-chip{ display:none; }
}
@media (max-width:600px){
  .hero.hero-split{ padding:28px 0 24px; }
  .hero.hero-split h1{ font-size:1.95rem; margin-bottom:18px; }
  .hero-lead{ display:none; }
  .hero-eyebrow{ margin-bottom:12px; }
  .hero.hero-split .hero-ctas{ gap:10px; margin-bottom:0; flex-wrap:nowrap; width:100%; }
  .hero.hero-split .hero-ctas .btn{ flex:1 1 0; min-width:0; padding:12px 10px; font-size:0.9rem; }
  .hero-showcase{ height:300px; }
  .hero-card.c1{ left:1%;  top:50px; width:32%; }
  .hero-card.c2{ left:30%; top:0;    width:40%; }
  .hero-card.c3{ left:67%; top:50px; width:32%; }
}

/* =====================================================================
   v1.1.3 — no blank space under collage, larger desktop images,
   single-prompt image fills its frame
   ===================================================================== */

/* Desktop hero: wider collage, tighter vertical padding */
.hero.hero-split{ padding:40px 0 56px; min-height:0; }
.hero.hero-split .hero-inner{ grid-template-columns:minmax(0,0.8fr) minmax(0,1.2fr); max-width:1440px; gap:32px; }
.hero-showcase{ height:740px; }
.hero-card.c1{ left:0;   top:110px; width:34%; }
.hero-card.c2{ left:29%; top:0;     width:40%; }
.hero-card.c3{ left:66%; top:120px; width:34%; }
.hero-card.c4{ left:3%;  top:400px; width:37%; }
.hero-card.c5{ left:43%; top:390px; width:40%; }
.float-chip.fc-1{ top:370px; }
.float-chip.fc-2{ top:350px; }

/* Latest section sits right under the hero */
#latest.section{ padding-top:48px; }

/* Tablet + mobile: collage height follows its content, no empty gap */
@media (max-width:1000px){
  .hero.hero-split{ padding:32px 0 8px; }
  .hero-showcase{ height:auto; aspect-ratio:11/7.4; max-width:560px; }
  .hero-card.c1{ left:0;   top:16%; width:34%; }
  .hero-card.c2{ left:28%; top:0;   width:44%; }
  .hero-card.c3{ left:66%; top:16%; width:34%; }
  #latest.section{ padding-top:28px; }
}
@media (max-width:600px){
  .hero.hero-split{ padding:24px 0 4px; }
  .hero-showcase{ height:auto; aspect-ratio:11/7.2; }
  #latest.section{ padding-top:20px; }
  #latest .section-head{ margin-bottom:18px; }
}

/* Single prompt page: image fills its frame (no side bars), bigger */
.prompt-detail{ grid-template-columns:minmax(0,1.2fr) minmax(0,0.8fr); gap:48px; }
.media-frame:not(.is-video){ width:fit-content; max-width:100%; background:transparent; border-color:var(--border); }
.media-frame:not(.is-video) img{ width:auto; height:min(90vh,900px); max-width:100%; max-height:none; object-fit:contain; }
@media (max-width:900px){
  .prompt-detail{ grid-template-columns:minmax(0,1fr); }
  .media-frame:not(.is-video){ width:100%; }
  .media-frame:not(.is-video) img{ width:100%; height:auto; }
}

/* =====================================================================
   v1.1.4 — fix mobile hero stacking (text first, then images),
   boxed + centred layout, centred image + prompt on single page
   ===================================================================== */

/* Boxed, centred site width */
.container{ max-width:1320px; }
.hero.hero-split .hero-inner{ max-width:1320px; }

/* MOBILE / TABLET: single column, text above images (overrides desktop 2-col) */
@media (max-width:1000px){
  .hero.hero-split .hero-inner{ grid-template-columns:minmax(0,1fr); gap:24px; text-align:center; }
  .hero.hero-split .hero-copy{ text-align:center; }
  .hero.hero-split .hero-ctas{ justify-content:center; }
  .hero-showcase{ width:100%; max-width:560px; margin:0 auto; }
}
@media (max-width:600px){
  .hero.hero-split h1{ font-size:1.9rem; }
  .hero.hero-split .hero-ctas{ display:flex; gap:10px; }
  .hero.hero-split .hero-ctas .btn{ flex:1 1 0; min-width:0; padding:12px 8px; font-size:0.88rem; white-space:nowrap; }
}

/* Single prompt page: image + prompt as one centred, boxed group */
.prompt-detail{ display:flex; justify-content:center; align-items:flex-start; gap:36px; max-width:1240px; margin:0 auto; padding:32px 0 80px; }
.prompt-detail .media-frame:not(.is-video){ flex:0 1 640px; width:auto; max-width:640px; min-width:0; border:0; background:transparent; border-radius:var(--radius-lg); }
.prompt-detail .media-frame:not(.is-video) img{ width:100%; height:auto; max-width:100%; max-height:none; border-radius:var(--radius-lg); border:1px solid var(--border-strong); }
.prompt-detail .media-frame.is-video{ flex:0 0 auto; width:clamp(300px,52vh,440px); aspect-ratio:9/16; max-height:none; max-width:none; margin:0; }
.prompt-detail .detail-panel{ flex:1 1 0; min-width:0; max-width:560px; position:sticky; top:90px; }
@media (max-width:900px){
  .prompt-detail{ flex-direction:column; align-items:stretch; gap:24px; padding:20px 0 56px; }
  .prompt-detail .media-frame:not(.is-video){ flex:none; width:100%; max-width:none; }
  .prompt-detail .media-frame.is-video{ width:min(100%,380px); align-self:center; }
  .prompt-detail .detail-panel{ position:static; max-width:none; }
}
