/* Politrack Help Center
   - Estilo inspirado en help.kajabi.com (simple, por colecciones)
   - Con capa Liquid Glass (consistente con tenant-shell.css)
*/

.help-center {
  background: var(--pt-bg);
}

.help-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 900px) {
  .help-shell { padding: 26px; }
}

/* Header */
.help-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 23, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: var(--pt-blur);
}

html[data-theme="light"] .help-header {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(16, 24, 40, 0.12);
}

.help-header__inner{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
}

.help-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
  white-space: nowrap;
}
.help-brand img{
  height: 24px;
  width: auto;
}
.help-brand__title{
  font-weight: 700;
  letter-spacing: .2px;
}

/* Search */
.help-search{
  flex: 1;
  max-width: 560px;
  position: relative;
}
.help-search input{
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: inherit;
  outline: none;
}
html[data-theme="light"] .help-search input{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16, 24, 40, 0.16);
}
.help-search input:focus{
  border-color: rgba(140, 235, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(140, 235, 255, 0.14);
}
.help-search__icon{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .75;
}
.help-search__popover{
  position:absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: var(--pt-blur);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
html[data-theme="light"] .help-search__popover{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16, 24, 40, 0.14);
  box-shadow: 0 18px 45px rgba(16,24,40,.10);
}
.help-search__list{
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.help-search__item{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration:none;
  color: inherit;
  border: 1px solid transparent;
}
.help-search__item:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-search__item:hover{
  background: rgba(16,24,40,0.04);
  border-color: rgba(16,24,40,0.08);
}
.help-search__itemTitle{
  font-weight: 700;
  margin-bottom: 2px;
}
.help-search__itemMeta{
  opacity: .75;
  font-size: 12px;
}
.help-search__all{
  display:block;
  margin-top: 8px;
  text-align:right;
  font-size: 13px;
  text-decoration: none;
  opacity: .9;
}
.help-search__all:hover{ opacity: 1; }

/* Actions */
.help-header__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}
.help-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(140, 235, 255, 0.16);
  color: inherit;
  text-decoration:none;
  cursor:pointer;
  white-space: nowrap;
}
.help-btn:hover{
  background: rgba(140, 235, 255, 0.22);
}
.help-btn--ghost{
  background: rgba(255,255,255,0.06);
}
html[data-theme="light"] .help-btn--ghost{
  background: rgba(16,24,40,0.04);
}
.help-link{ text-decoration:none; opacity:.9; }
.help-link:hover{ opacity:1; }

/* Main */
.help-main{ padding: 12px 0 40px; }

/* Breadcrumbs */
.help-breadcrumbs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 16px;
}
.help-breadcrumbs a{ text-decoration:none; opacity:.95; }
.help-breadcrumbs a:hover{ opacity:1; }
.help-breadcrumbs__sep{ opacity:.55; }

/* Hero */
.help-hero{
  display:flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  backdrop-filter: var(--pt-blur);
  margin-bottom: 20px;
}
html[data-theme="light"] .help-hero{
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-hero h1{ margin:0 0 4px; font-size: 28px; }
.help-hero p{ margin:0; opacity: .85; }

.help-hero__search{
  display:flex;
  gap: 10px;
  align-items:center;
}
.help-hero__search input{
  flex:1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
  outline: none;
}
html[data-theme="light"] .help-hero__search input{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,24,40,0.14);
}

.help-section{ margin: 22px 0; }
.help-section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.help-section__head h2{ margin:0; }

.help-featured{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap: 12px;
}
.help-featured__item{
  display:block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  text-decoration:none;
  color: inherit;
}
html[data-theme="light"] .help-featured__item{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-featured__title{ font-weight: 800; margin-bottom: 6px; }
.help-featured__excerpt{ opacity: .8; font-size: 13px; }

/* Collection cards */
.help-collections{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 12px;
}
.help-collectionCard{
  display:flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  text-decoration:none;
  color: inherit;
}
html[data-theme="light"] .help-collectionCard{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-collectionCard__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(140, 235, 255, 0.12);
  border: 1px solid rgba(140, 235, 255, 0.18);
}
.help-collectionCard__icon svg{
  width: 22px;
  height: 22px;
}
.help-collectionCard__title{ font-weight: 900; margin-bottom: 4px; }
.help-collectionCard__desc{ opacity: .82; font-size: 13px; line-height: 1.35; }
.help-collectionCard__meta{ margin-top: 8px; opacity: .7; font-size: 12px; }

.help-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 16px;
}
html[data-theme="light"] .help-card{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-card--center{
  max-width: 720px;
  margin: 0 auto;
}
.help-muted{ opacity: .8; }

.help-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.help-callouts{
  display:grid;
  gap: 10px;
  margin: 12px 0;
}
.help-callout{
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-callout{
  background: rgba(16,24,40,0.03);
  border: 1px solid rgba(16,24,40,0.08);
}

/* Collection page */
.help-pageHead{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 16px;
}
.help-pageHead__icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(140, 235, 255, 0.12);
  border: 1px solid rgba(140, 235, 255, 0.18);
  display:flex;
  align-items:center;
  justify-content:center;
}
.help-pageHead__icon svg{ width: 24px; height: 24px; }
.help-pageHead h1{ margin:0 0 6px; }

.help-collectionSection{ margin: 18px 0; }
.help-collectionSection h2{ margin:0 0 10px; }

.help-articleList{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
  gap: 10px;
}
.help-articleList__item{
  display:block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  text-decoration:none;
  color:inherit;
}
html[data-theme="light"] .help-articleList__item{
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-articleList__title{ font-weight: 900; margin-bottom: 6px; }
.help-articleList__excerpt{ opacity:.8; font-size: 13px; }

/* Article */
.help-article__head{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  margin-bottom: 14px;
}
html[data-theme="light"] .help-article__head{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-article__meta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.help-article__badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  opacity: .92;
}
html[data-theme="light"] .help-article__badge{
  background: rgba(16,24,40,0.04);
}
.help-article__updated{ font-size: 12px; opacity: .75; }
.help-article__excerpt{ margin-top: 8px; opacity: .85; }
.help-article__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.help-article__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 980px){
  .help-article__grid{ grid-template-columns: 1fr 280px; }
}

.help-article__tocInline{
  margin: 10px 0 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-article__tocInline{
  background: rgba(16,24,40,0.03);
  border: 1px solid rgba(16,24,40,0.08);
}

.help-article__body{
  line-height: 1.6;
}
.help-article__body h2{
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 20px;
}
.help-article__body h3{
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 16px;
}
.help-article__body p{ margin: 8px 0; }
.help-article__body ul, .help-article__body ol{
  margin: 8px 0 12px 22px;
}
.help-article__body code{
  background: rgba(255,255,255,0.07);
  padding: 2px 6px;
  border-radius: 8px;
}
html[data-theme="light"] .help-article__body code{
  background: rgba(16,24,40,0.06);
}
.help-hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 22px 0;
}
html[data-theme="light"] .help-hr{
  border-top: 1px solid rgba(16,24,40,0.12);
}

.help-tocCard{
  position: sticky;
  top: 96px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-tocCard{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-tocCard__title{
  font-weight: 900;
  margin-bottom: 10px;
}
.help-tocCard__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.help-tocCard__list a{
  text-decoration:none;
  opacity: .88;
}
.help-tocCard__list a:hover{ opacity: 1; }

/* Search page */
.help-searchPage{
  display:flex;
  gap: 10px;
  align-items:center;
  margin: 12px 0 8px;
}
.help-searchPage input{
  flex:1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
}
html[data-theme="light"] .help-searchPage input{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,24,40,0.14);
}
.help-searchMeta{ margin: 8px 0 10px; }

.help-searchResults{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
  gap: 10px;
}
.help-searchResult{
  display:block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  text-decoration:none;
  color:inherit;
}
html[data-theme="light"] .help-searchResult{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(16,24,40,0.12);
}
.help-searchResult__title{ font-weight: 900; margin-bottom: 6px; }
.help-searchResult__excerpt{ opacity: .8; font-size: 13px; }
.help-searchResult__meta{ opacity: .65; font-size: 12px; margin-top: 8px; }

/* Bullets */
.help-bullets{
  margin: 8px 0 0 20px;
}
.help-bullets a{ text-decoration:none; }

/* Footer */
.help-footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 24px;
  opacity: .9;
}
html[data-theme="light"] .help-footer{
  border-top: 1px solid rgba(16,24,40,0.12);
}
.help-footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.help-footer__dot{ opacity:.55; margin: 0 8px; }
.help-footer__user{ opacity: .75; font-size: 13px; }

/* AI Widget */
.help-ai{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}

/* Floating launcher (FAB) */
.help-ai__fab{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 61;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: var(--pt-blur);
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
  cursor: pointer;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.help-ai__fab:hover{
  transform: translateY(-1px);
  background: rgba(14, 18, 28, 0.82);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}
.help-ai__fab:active{ transform: translateY(0); }

/* Hide FAB while chat is open */
body.help-ai-open .help-ai__fab{ display:none; }

/* Safe-area for iOS */
@supports (bottom: env(safe-area-inset-bottom)){
  .help-ai, .help-ai__fab{ bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* Light theme: FAB becomes clear glass */
html[data-theme="light"] .help-ai__fab{
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(16,24,40,0.14);
  box-shadow: 0 18px 55px rgba(16,24,40,.16);
}
html[data-theme="light"] .help-ai__fab:hover{
  background: rgba(255,255,255,0.94);
  box-shadow: 0 22px 70px rgba(16,24,40,.20);
}

/* Dark theme: subtle gradient border (Liquid Glass) */
html.pt-theme-dark .help-ai__fab{
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(14, 18, 28, 0.76), rgba(14, 18, 28, 0.76)) padding-box,
    linear-gradient(135deg, rgba(251,39,93,0.70), rgba(140,235,255,0.62), rgba(186,29,69,0.70)) border-box;
}
.help-ai__card{
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 28px));
  display:flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(14, 18, 28, 0.90);
  backdrop-filter: var(--pt-blur);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
  overflow: hidden;
}
html[data-theme="light"] .help-ai__card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(16,24,40,0.14);
  box-shadow: 0 22px 70px rgba(16,24,40,.15);
}

/* Dark theme: gradient border (card) */
html.pt-theme-dark .help-ai__card{
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(14, 18, 28, 0.90), rgba(14, 18, 28, 0.90)) padding-box,
    linear-gradient(135deg, rgba(251,39,93,0.75), rgba(140,235,255,0.65), rgba(186,29,69,0.75)) border-box;
}
.help-ai__header{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-ai__header{
  border-bottom: 1px solid rgba(16,24,40,0.12);
}
.help-ai__title strong{ display:block; }
.help-ai__title span{ font-size: 12px; opacity: .75; }

.help-ai__body{
  padding: 12px;
  overflow:auto;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.help-ai__bubble{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
html[data-theme="light"] .help-ai__bubble{
  border: 1px solid rgba(16,24,40,0.10);
  background: rgba(16,24,40,0.03);
}
.help-ai__bubble--user{
  margin-left: auto;
  background: rgba(140, 235, 255, 0.14);
  border-color: rgba(140, 235, 255, 0.20);
}
.help-ai__bubbleTitle{
  font-size: 12px;
  opacity: .7;
  margin-bottom: 6px;
  font-weight: 700;
}

.help-ai__form{
  display:flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
html[data-theme="light"] .help-ai__form{
  border-top: 1px solid rgba(16,24,40,0.12);
}
.help-ai__form input{
  flex:1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: inherit;
}
html[data-theme="light"] .help-ai__form input{
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,24,40,0.14);
}

.help-ai__hint{
  padding: 0 12px 12px;
  font-size: 12px;
  opacity: .7;
}

/* Responsive: hide header actions text on small screens */
@media (max-width: 860px){
  .help-search { display:none; }
  .help-header__inner{ justify-content: space-between; }
}


/* Media placeholders (para que el cliente inserte screenshots / videos) */
.help-media{
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}
html[data-theme="light"] .help-media{
  border: 1px dashed rgba(16,24,40,0.22);
  background: rgba(16,24,40,0.02);
}
.help-media__label{
  font-weight: 900;
  margin-bottom: 6px;
}
.help-media__hint{
  opacity: .78;
  font-size: 13px;
}

/* Callout boxes inside articles */
.help-calloutBox{
  margin: 14px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
html[data-theme="light"] .help-calloutBox{
  border: 1px solid rgba(16,24,40,0.12);
  background: rgba(16,24,40,0.03);
}
.help-calloutBox__title{
  font-weight: 900;
  margin-bottom: 6px;
}
.help-calloutBox--tip{
  border-color: rgba(140,235,255,0.22);
  background: rgba(140,235,255,0.08);
}
.help-calloutBox--warn{
  border-color: rgba(255,196,125,0.26);
  background: rgba(255,196,125,0.10);
}

/* Article footer blocks */
.help-feedback{
  display:flex;
  flex-direction: column;
  gap: 4px;
}
.help-related{
  margin-top: 18px;
}
