/* ============================================================
   HTO Recursos — Shared components for resource pages
   css/resource-shared.css
   Agent download block, prompt block, CTA close, fact strip
   ============================================================ */

/* ═══ FACT STRIP (hero meta) ═══ */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 2rem 0;
}
.fact-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255,255,255,.015), rgba(0,0,0,.3));
  border: 1px solid rgba(255,255,255,.08);
}
.fact-val {
  font-family: var(--font-mono, 'SFMono-Regular', Consolas, monospace);
  font-size: 1.3rem;
  font-weight: 800;
  color: #00FF88;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.fact-lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

/* ═══ AGENT DOWNLOAD ═══ */
.agent-download {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,255,136,.3);
  margin: 32px 0;
}
.ad-header {
  background: linear-gradient(135deg, #081510, #050f0a);
  padding: 36px 36px 28px;
  border-bottom: 1px solid rgba(0,255,136,.15);
}
.ad-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  color: #00FF88;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.ad-title { font-size: 28px; font-weight: 800; color: #F2F2F2; margin: 0 0 10px; }
.ad-sub { font-size: 15px; color: #7A8A78; line-height: 1.6; margin: 0; }
.ad-body { padding: 32px 36px; background: #080f0a; }
.ad-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 28px; }
.ad-step { text-align: center; }
.ad-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.3);
  color: #00FF88;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.ad-step-title { font-size: 14px; font-weight: 700; color: #F2F2F2; margin-bottom: 6px; }
.ad-step-desc { font-size: 13px; color: #6A7A68; line-height: 1.6; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,136,.18);
  background: rgba(0,0,0,.35);
}
.file-chip-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.25);
}
.file-chip-icon svg { width: 19px; height: 19px; fill: none; stroke: #00FF88; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-chip-name {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}
.file-chip-meta {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .66rem;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  letter-spacing: .4px;
}
.ad-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ad-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00cc6e, #00a85b);
  color: #04130a;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.ad-download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,255,136,.25); }
.ad-download-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ad-download-btn.ghost {
  background: transparent;
  border: 1px solid rgba(0,255,136,.35);
  color: #00FF88;
}
.ad-download-btn.ghost:hover { background: rgba(0,255,136,.08); box-shadow: none; }

/* ═══ PROMPT BLOCK ═══ */
.prompt-section {
  position: relative;
  margin: 2rem 0;
  border-radius: 16px;
  border: 1px solid rgba(0,255,136,.2);
  background: linear-gradient(145deg, rgba(0,255,136,.03), rgba(0,0,0,.3));
  overflow: hidden;
}
.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(0,255,136,.05);
  border-bottom: 1px solid rgba(0,255,136,.15);
}
.prompt-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00FF88;
}
.prompt-copy-btn {
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.25);
  color: #00FF88;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.prompt-copy-btn:hover { background: rgba(0,255,136,.18); }
.prompt-body {
  padding: 22px 24px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .78rem;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.prompt-body.scrollable { max-height: 460px; overflow-y: auto; }

/* ═══ CTA CLOSE ═══ */
.cta-close {
  margin: 3rem 0 1rem;
  padding: 38px 32px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(165deg, rgba(0,255,136,.05), #0a0a0f 60%);
  border: 1px solid rgba(0,255,136,.2);
}
.cta-close h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  margin: 0 0 10px;
}
.cta-close p {
  font-size: .92rem;
  color: rgba(255,255,255,.66);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 22px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  background: var(--success, #00FF88);
  color: #04130a;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .2px;
  transition: transform .2s, box-shadow .25s;
}
.cta-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,255,136,.22); }

/* ═══ RELATED RESOURCE LINK ═══ */
.related-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2.2rem 0;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(56,189,248,.25);
  background: linear-gradient(145deg, rgba(56,189,248,.04), rgba(0,0,0,.3));
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.related-box:hover { border-color: rgba(56,189,248,.5); transform: translateX(3px); }
.related-kicker {
  font-family: var(--font-mono, 'SFMono-Regular', Consolas, monospace);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #38BDF8;
  margin-bottom: 4px;
}
.related-title { font-size: .98rem; font-weight: 700; color: #fff; }
.related-box svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #38BDF8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 820px) {
  .fact-strip { grid-template-columns: 1fr; }
  .ad-steps { grid-template-columns: 1fr; }
  .ad-header { padding: 28px 24px 22px; }
  .ad-body { padding: 24px 22px; }
  .related-box { flex-direction: column; align-items: flex-start; }
}

/* ═══ A11Y ═══ */
a:focus-visible, button:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 2px;
  border-radius: 6px;
}
