/* /guides/guides.css?v=3
   Clickoz Guides – premium layer (aligned with Tools)
   Updates requested:
   - Remove/hide the hero metrics row (🧠 ✅ 🔗 📱)
   - Remove/hide quick links (Open Tools / Latest Updates / Privacy-first)
   - Fix the “second box looks black” by making hero-box background consistent on Guides
*/

:root{
  --g-radius: 22px;
  --g-radius-sm: 16px;
  --g-border: rgba(255,255,255,.10);
  --g-border-2: rgba(255,255,255,.14);
  --g-shadow: 0 22px 60px rgba(0,0,0,.45);
  --g-shadow-soft: 0 16px 40px rgba(0,0,0,.32);
  --g-dim: rgba(242,242,255,.74);
  --g-dimmer: rgba(242,242,255,.60);
  --g-title: rgba(255,255,255,.94);
  --g-glow1: rgba(34,211,238,.18);
  --g-glow2: rgba(99,102,241,.16);
}

/* -----------------------------
   HERO WRAP
------------------------------ */
.guides-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--g-border);
  background:
    radial-gradient(1200px 720px at 15% -10%, var(--g-glow1), transparent 55%),
    radial-gradient(900px 620px at 105% 10%, var(--g-glow2), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--g-shadow);
  border-radius: var(--g-radius);
  padding: 28px 22px 22px;
}

.guides-hero::before{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 35%);
  opacity:.55;
}

/* Hide breadcrumbs if present */
.guides-hero .crumbs{
  display:none !important;
}

/* Center hero top */
.guides-hero-top{
  position: relative;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.guides-hero-top > div:first-child{
  flex: 1 1 820px !important;
  max-width: 980px;
}

/* Title/Sub */
.guides-hero .section-title{
  margin: 0 0 10px !important;
  font-weight: 1000 !important;
  letter-spacing: -.02em !important;
  line-height: 1.06 !important;
  font-size: clamp(34px, 5vw, 56px) !important;
  color: var(--g-title) !important;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
  text-align:center;
}

.guides-hero .section-sub{
  margin: 0 auto 0 !important; /* tighter since metrics removed */
  max-width: 880px;
  font-size: clamp(16px, 2.1vw, 18px) !important;
  line-height: 1.55 !important;
  color: var(--g-dim) !important;
  text-align:center;
}

/* ✅ requested: remove metrics + quick links (safe even if HTML still has them) */
.guides-metrics{ display:none !important; }
.guides-quick{ display:none !important; }

/* Chips */
#guidesChips{
  position: relative;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 2px;
  order: 2;
}

#guidesChips .chip{
  border: 1px solid var(--g-border);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
}
#guidesChips .chip:hover{
  transform: translateY(-1px);
  border-color: var(--g-border-2);
}
#guidesChips .chip.active{
  border-color: rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}

/* Search block centered under chips */
.guides-search{
  flex: 1 1 100% !important;
  max-width: 760px !important;
  width: 100%;
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px auto 0;
  order: 3;
}

.guides-search .search{
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 14px;
  padding: 14px 14px;
  border: 1px solid var(--g-border);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  outline: none;
  box-shadow: 0 14px 38px rgba(0,0,0,.34);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.guides-search .search::placeholder{
  color: rgba(242,242,255,.55);
}
.guides-search .search:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 16px 44px rgba(0,0,0,.38);
  transform: translateY(-1px);
}

/* -----------------------------
   ✅ Fix “second box looks black”
   We override hero-box ONLY inside the Guides directory section.
------------------------------ */
.section.container[aria-label="Guides directory"] .hero-box{
  border: 1px solid var(--g-border);
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow-soft);
  padding: 22px 18px 18px;
}

/* -----------------------------
   GUIDES GRID
------------------------------ */
#guidesGrid{ margin-top: 14px; }

.guides-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px){
  .guides-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1040px){
  .guides-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Card */
.guide-x{
  display:flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--g-border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--g-radius-sm);
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
  overflow:hidden;
}

.guide-x::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(520px 220px at 20% 0%, rgba(255,255,255,.10), transparent 62%);
  opacity:.55;
  pointer-events:none;
}

.guide-x:hover{
  transform: translateY(-2px);
  border-color: var(--g-border-2);
  box-shadow: 0 20px 48px rgba(0,0,0,.38);
}

.guide-top{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  position: relative;
}

.guide-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--g-border);
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 24px rgba(0,0,0,.22);
  font-size: 20px;
  flex: 0 0 auto;
  line-height: 1;
}

.guide-x h3{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.92);
  line-height: 1.2;
}

.guide-x p{
  margin: 0;
  color: var(--g-dimmer);
  font-size: 13.5px;
  line-height: 1.55;
}

.guide-bottom{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.guide-tag{
  font-size: 12.5px;
  font-weight: 1000;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding: 8px 12px;
  border-radius: 999px;
}

.guide-cta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 1000;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}
.guide-cta::after{
  content:"→";
  opacity:.9;
  transform: translateX(0);
  transition: transform .12s ease;
}
.guide-x:hover .guide-cta::after{
  transform: translateX(3px);
}

/* SEO boost matches */
.hero-box .seo-boost{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(900px 420px at 25% 0%, rgba(255,255,255,.10), transparent 60%),
              rgba(0,0,0,.18);
  border-radius: var(--g-radius-sm);
  padding: 16px 14px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  text-align:center;
}

.hero-box .seo-boost h3{
  margin: 0 0 8px;
  font-weight: 1000;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.94);
  font-size: 16px;
}

.hero-box .seo-boost p{
  margin: 0 auto 10px;
  max-width: 980px;
  color: var(--g-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

.hero-box .seo-boost-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:center;
  margin-top: 10px;
}

.hero-box .seo-boost-links a{
  text-decoration:none;
  color: rgba(255,255,255,.90);
  border: 1px solid var(--g-border);
  background: rgba(0,0,0,.18);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12.5px;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
}

.hero-box .seo-boost-links a:hover{
  transform: translateY(-1px);
  border-color: var(--g-border-2);
  box-shadow: 0 16px 34px rgba(0,0,0,.30);
}

/* Empty state inserted by guides.js */
.guides-empty{ margin-top: 12px; }

/* Focus */
#guidesChips .chip:focus,
.guides-search .search:focus,
.guide-x:focus,
.hero-box .seo-boost-links a:focus{
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 3px;
}

/* Mobile spacing */
@media (max-width: 920px){
  .guides-hero{ padding: 24px 16px 18px; }
}
