/* =========================================================
   VisualHull Tools — MASTER styles (UTM + Meta + Schema + Robots)
   Depends on your home.css/home-v4.css design tokens.
   ========================================================= */

/* Hide Elementor SEO block wrapper if empty */
.vh-seoBlock.is-empty{display:none}

/* Common tool section */
.vh-tool{
  background: var(--gray-50);
  padding: var(--section-pad-y) 0;
}

.vh-toolCard{
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--gray-200);
}

.vh-toolGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
@media (max-width: 768px){
  .vh-toolGrid{grid-template-columns:1fr;}
}

.vh-label{
  display:block;
  font-size:13px;
  font-weight:700;
  color: var(--gray-700);
  margin:0 0 8px;
}

.vh-input,
.vh-textarea{
  width:100%;
  padding:14px 14px;
  border:2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size:16px;
  font-family: var(--font-primary);
  background: var(--white);
  transition: all var(--transition-base);
}

.vh-textarea{min-height:92px; resize:vertical; line-height:1.4}

.vh-input:focus,
.vh-textarea:focus{
  outline:none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.vh-help{
  display:block;
  margin-top:6px;
  font-size:12px;
  color: var(--gray-500);
}

.vh-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.vh-outWrap{margin-top:18px}
.vh-muted{
  font-size:12px;
  color: var(--gray-500);
  margin-bottom:8px;
  font-weight:700;
}

.vh-out{
  padding:16px;
  border-radius: var(--radius-lg);
  border:2px dashed rgba(59,130,246,.25);
  background:#EFF6FF;
  color: var(--gray-800);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:13px;
  min-height:56px;
  overflow-wrap:anywhere;
}

.vh-note{
  margin-top:14px;
  padding:14px 16px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border:1px solid var(--gray-200);
  color: var(--gray-600);
}
.vh-note code{
  background: rgba(59,130,246,.10);
  padding:2px 6px;
  border-radius: 8px;
}

/* =========================================================
   Funnel card (Intro + quick links + FAQs)
   ========================================================= */
.vh-funnel{
  padding: 42px 0 10px;
  background: transparent;
}
.vh-funnelCard{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(18px, 2.5vw, 26px);
}
.vh-funnelTitle{
  margin:0 0 8px;
  font-size: 18px;
  letter-spacing:-0.01em;
}
.vh-funnelText{
  margin:0 0 14px;
  color: var(--gray-600);
  line-height:1.55;
}
.vh-funnelBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 0;
}

/* =========================================================
   FAQ (details/summary) — FIXED layout + ASCII toggles
   ========================================================= */
.vh-faq{
  margin-top: 16px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
}
.vh-faqItem{
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin: 10px 0;
  overflow:hidden;
}
.vh-faqSummary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
 padding: 12px 16px 12px 18px; /* more left space */
}
.vh-faqSummary::-webkit-details-marker{display:none}
.vh-faqQ{
  font-weight: 700;
  color: var(--gray-800);
  min-width: 0;
}
.vh-faqIcon{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(59,130,246,.10);
  color: var(--primary-blue);
  font-weight: 900;
  border: 1px solid rgba(59,130,246,.18);
}
.vh-faqItem[open] .vh-faqIcon{background: rgba(249,115,22,.10); color: #F97316; border-color: rgba(249,115,22,.18);}
.vh-faqA{
  padding: 0 14px 14px;
  color: var(--gray-600);
  line-height:1.6;
}
.vh-faqA code{
  background: rgba(59,130,246,.10);
  padding: 2px 6px;
  border-radius: 8px;
}

/* =========================================================
   Micro CTAs (under tool output)
   ========================================================= */
.vh-microCtas{padding: 14px 0 0; background: transparent;}
.vh-microGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media(max-width: 900px){ .vh-microGrid{grid-template-columns:1fr;} }

.vh-microCard{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 18px;
}
.vh-microCard.highlight{
  border-color: rgba(59,130,246,.25);
  background: linear-gradient(180deg, rgba(239,246,255,.9), rgba(255,255,255,1));
}

.vh-microTag{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color: var(--primary-blue);
  background: rgba(59,130,246,.10);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.vh-microTitle{
  margin:0 0 8px;
  font-size: 18px;
  line-height:1.2;
  letter-spacing:-0.01em;
}
.vh-microText{
  margin:0 0 14px;
  color: var(--gray-600);
}
.vh-microBtns{display:flex; gap:10px; flex-wrap:wrap;}


/* =========================================================
   Generic split layout (form + output)
   ========================================================= */
.vh-split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
}
@media(max-width: 980px){ .vh-split{grid-template-columns:1fr;} }

.vh-pane{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 18px;
}
/* =========================================================
   META tool styles
   ========================================================= */
.vh-metaLayout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
}
@media(max-width: 980px){ .vh-metaLayout{grid-template-columns:1fr;} }

.vh-metaBox{
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 18px;
}

.vh-counterRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  align-items:center;
}
.vh-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size:12px;
  font-weight:700;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-700);
}
.vh-pill.good{border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.08); color: #047857;}
.vh-pill.warn{border-color: rgba(249,115,22,.25); background: rgba(249,115,22,.08); color: #C2410C;}
.vh-pill.bad{border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.08); color: #B91C1C;}

.vh-toggle{
  display:inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow:hidden;
  background: var(--white);
}
.vh-toggle button{
  appearance:none;
  border:0;
  background:transparent;
  padding: 8px 12px;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  color: var(--gray-600);
}
.vh-toggle button.active{
  background: rgba(59,130,246,.10);
  color: var(--primary-blue);
}

.vh-serp{
  margin-top: 14px;
}
.vh-serpCard{
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: 16px;
}
.vh-serpCard.is-mobile{max-width: 380px}
.vh-serpTitle{
  font-size: 18px;
  line-height:1.2;
  color: #1A0DAB;
  margin:0 0 6px;
  font-weight: 700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vh-serpUrl{
  font-size: 13px;
  color: #006621;
  margin:0 0 8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.vh-serpDesc{
  font-size: 13px;
  color: var(--gray-600);
  margin:0;
  line-height:1.5;
}

/* =========================================================
   SCHEMA tool styles
   ========================================================= */
.vh-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 16px;
}
.vh-tabBtn{
  appearance:none;
  border:1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  color: var(--gray-700);
}
.vh-tabBtn.active{
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.25);
  color: var(--primary-blue);
}

.vh-row3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media(max-width: 980px){ .vh-row3{grid-template-columns:1fr;} }

.vh-addBtn{
  appearance:none;
  border:1px dashed rgba(59,130,246,.35);
  background: rgba(59,130,246,.06);
  color: var(--primary-blue);
  font-weight: 800;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  cursor:pointer;
}

.vh-miniBtn{
  appearance:none;
  border:1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  cursor:pointer;
  font-size: 12px;
}
.vh-miniBtn.danger{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color:#B91C1C;
}

/* =========================================================
   ROBOTS tool styles
   ========================================================= */
.vh-robotsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width: 980px){ .vh-robotsGrid{grid-template-columns:1fr;} }

.vh-checkRow{
  display:flex;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.vh-check{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.vh-check input{width:18px;height:18px}
.vh-check span{font-weight: 700; font-size: 13px; color: var(--gray-700)}

/* =========================================================
   Tools Hub (Free Tools directory)
   ========================================================= */
.vh-toolsHub { padding: 72px 0; background: var(--gray-50); }
.vh-toolsHub .section-header { margin-bottom: 22px; }

.vh-toolsGrid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.vh-toolTile{
  grid-column: span 6;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 980px){
  .vh-toolTile{ grid-column: span 12; }
}

.vh-toolTile:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg,
    rgba(59,130,246,.14),
    rgba(16,185,129,.10),
    rgba(236,72,153,.10)
  );
  filter: blur(18px);
  opacity: .9;
  z-index: 0;
}
.vh-toolTile > *{ position:relative; z-index:1; }

.vh-toolTop{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.vh-toolIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.18);
  flex: 0 0 auto;
}

.vh-toolBadge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(59,130,246,.10);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.15);
  white-space: nowrap;
}

.vh-toolTitle{
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.vh-toolDesc{
  margin: 0 0 12px;
  color: var(--gray-600);
}

.vh-toolList{
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--gray-600);
}
.vh-toolList li{ margin: 6px 0; }

.vh-toolBtns{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hub CTA strip */
.vh-hubCtaStrip{
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: rgba(255,255,255,.7);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 980px){
  .vh-hubCtaStrip{ flex-direction: column; align-items: flex-start; }
}
.vh-hubCtaText{
  color: var(--gray-700);
  font-weight: 600;
}
.vh-hubCtaText span{
  color: var(--gray-600);
  font-weight: 500;
}

/* Tools internal links list */
.vh-toolsLinks{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vh-toolsLinks a{
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 1px dashed rgba(59,130,246,.35);
}
.vh-toolsLinks a:hover{
  border-bottom-style: solid;
}
/* ===========================
   Tool: llms.txt Generator
   =========================== */
.vh-llmsGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
  margin-top: 8px;
}
@media (max-width: 820px){
  .vh-llmsGrid{ grid-template-columns: 1fr; }
}
.vh-llmsBlock{
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 16px;
}
.vh-llmsBlock h3{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.vh-llmsHint{
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.vh-llmsOutMeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.vh-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
}
.vh-pill strong{ font-weight:800; }
