/* ==========================================================
   CONTAXY HELP — CSS COMPLETO (v10)
   Substitua TODO o conteúdo do contaxy_help.css por este.
   ========================================================== */

:root{
  /* Background (Contaxy) */
  --cx-bg1:#071a2f;
  --cx-bg2:#0b2b4a;
  --cx-bg3:#0f3a66;

  /* Brand */
  --cx-primary:#1f6feb;
  --cx-primary2:#2563eb;

  /* Surface */
  --cx-white:#ffffff;
  --cx-border:rgba(15,23,42,.10);

  /* Text */
  --cx-text:#0f172a;
  --cx-muted:#64748b;

  /* Shadows */
  --cx-shadow:0 18px 50px rgba(0,0,0,.22);
  --cx-shadow-soft:0 12px 28px rgba(0,0,0,.12);

  /* Layout */
  --cx-max: 1320px; /* largura confortável (estilo imagem) */
  --cx-pad: 18px;
}

/* ========= Base / Reset ========= */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0 !important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  background: radial-gradient(ellipse at top, var(--cx-bg3), var(--cx-bg2), var(--cx-bg1)) !important;
  color: var(--cx-text);
  display:flex;
  flex-direction:column;
}

/* Container principal (não cola nos cantos e não centraliza demais) */
.cx-container{
  width:100%;
  max-width: var(--cx-max) !important;
  margin: 14px auto 24px auto !important;
  padding: 0 var(--cx-pad) 22px !important;
  flex: 1 0 auto;
}

/* ========= Topbar ========= */
.cx-topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 70px;

  display:flex;
  align-items:center;
  gap: 14px;

  padding: 10px 18px !important;
  background: linear-gradient(180deg, #0b2b4a, #071a2f) !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  color:#fff !important;
}

/* Brand */
.cx-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 280px;
}
.cx-brand img{
  height: 34px;
  width:auto;
  object-fit:contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.25));
}
.cx-brand .title{
  font-weight: 900;
  font-size: 1.08rem;
  line-height: 1.1;
  color:#fff;
}
.cx-brand .subtitle{
  display:block;
  margin-top: 2px;
  font-size: .80rem;
  font-weight: 600;
  opacity: .86;
  color: rgba(255,255,255,.88);
}

/* Breadcrumb (igual sua imagem, discreto) */
.cx-breadcrumb{
  margin-top: 4px;
  font-size: .82rem;
  color: rgba(255,255,255,.82);
}
.cx-breadcrumb a{
  color: rgba(255,255,255,.88);
  text-decoration:none;
}
.cx-breadcrumb a:hover{ text-decoration:underline; }

/* Ações do topo */
.cx-top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Busca menor (não ocupa toda topbar) */
.cx-top-search{
  width: min(440px, 40vw) !important;
  min-width: 260px;

  display:flex;
  align-items:center;
  gap: 10px;

  padding: 10px 14px !important;
  border-radius: 999px;

  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.20);
}
.cx-top-search i{ color: rgba(255,255,255,.90); }
.cx-top-search input{
  width:100%;
  background: transparent !important;
  border:0 !important;
  outline:0 !important;
  color:#fff !important;
  font-size:.95rem !important;
}
.cx-top-search input::placeholder{
  color: rgba(255,255,255,.70) !important;
}

/* Botões redondos */
.cx-iconbtn{
  width: 40px;
  height: 40px;
  border-radius: 999px;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  user-select:none;

  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);

  transition: transform .12s ease, filter .12s ease;
}
.cx-iconbtn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Botão “pill” */
.cx-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: 10px 14px !important;
  border-radius: 999px;

  font-weight: 900;
  text-decoration:none !important;

  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color:#fff !important;

  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  transition: filter .12s ease;
}
.cx-pill:hover{ filter: brightness(1.08); }

/* ========= Cards / Listagem ========= */
.cx-card{
  background: var(--cx-white) !important;
  border: 1px solid var(--cx-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--cx-shadow-soft) !important;
}

/* A lista/resultado */
.cx-results{
  margin-top: 14px;
  overflow:hidden;
}

/* Linha do tópico */
.cx-row{
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.cx-row:last-child{ border-bottom:0; }

/* Link do tópico */
.cx-row a{
  color: var(--cx-primary) !important;
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  text-decoration:none !important;
}
.cx-row a:hover{
  color: var(--cx-primary2) !important;
  text-decoration: underline !important;
}

/* Meta */
.cx-meta{
  margin-top: 4px;
  font-size: .90rem !important;
  color: var(--cx-muted) !important;
}

/* Snippet */
.cx-snippet{
  margin-top: 6px;
  font-size: .95rem !important;
  color: #253041 !important;
  line-height: 1.35;
  max-width: 980px;
}

/* Badge views */
.cx-badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 999px;

  font-weight: 900;
  font-size: .88rem;

  background: rgba(31,111,235,.12) !important;
  border: 1px solid rgba(31,111,235,.22) !important;
  color: var(--cx-primary) !important;
  white-space: nowrap;
}

/* Destaque do termo (busca) */
mark{
  background: rgba(31,111,235,.16) !important;
  color: var(--cx-primary) !important;
  font-weight: 900 !important;
  padding: 0 4px;
  border-radius: 6px;
}

/* ========= Skeleton Loading ========= */
.cx-skeleton{ position:relative; overflow:hidden; }
.cx-skeleton::after{
  content:"";
  position:absolute; top:0; left:-40%;
  width:40%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  animation: cx-shimmer 1.1s infinite;
}
@keyframes cx-shimmer{ 0%{left:-40%} 100%{left:120%} }

.sk{
  height: 12px;
  border-radius: 10px;
  background: rgba(15,23,42,.08);
  margin: 10px 0;
}
.sk.t{ height: 16px; width: 55%; }
.sk.m{ width: 35%; }
.sk.s{ width: 90%; }

/* ========= Footer ========= */
.cx-footer{
  flex-shrink:0;
  color: rgba(255,255,255,.78) !important;
  text-align:center;
  padding: 16px 10px 22px;
  font-size: .92rem;
}

/* ========= Mobile ========= */
@media (max-width: 900px){
  .cx-top-search{
    width: min(380px, 40vw) !important;
  }
}

@media (max-width: 768px){
  :root{ --cx-pad: 14px; }

  .cx-topbar{
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .cx-brand{
    width: 100% !important;
    min-width: 0 !important;
  }

  .cx-brand .subtitle{ display:none; } /* fica limpo no mobile */

  .cx-top-actions{
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* Busca vira full, mas mantém estética */
  .cx-top-search{
    width: 100% !important;
    min-width: 0 !important;
  }

  .cx-pill{
    display:none !important; /* opcional no mobile */
  }

  .cx-row{
    padding: 14px 14px !important;
  }

  .cx-row a{
    font-size: 1.02rem !important;
    line-height: 1.2 !important;
  }

  .cx-snippet{
    max-width: 100% !important;
  }
}

@media (max-width: 420px){
  .cx-iconbtn{ width: 38px; height: 38px; }
  .cx-badge{ font-size: .84rem; padding: 6px 9px; }
}
