/* brainlessitc — WordPress plugins documentation. Shared by every plugin's docs. */
:root{
  --bg: #0B0E14;
  --bg-soft: #10141D;
  --bg-raise: #141926;
  --line: #1E2430;
  --text: #E8E6F0;
  --text-body: #C9CCD8;
  --text-dim: #8A8FA3;
  --accent: #7C5CFF;
  --accent-2: #3DDC97;
  --warn: #F5B451;
  --radius: 14px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
.mono, code, kbd, pre{ font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }
:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* NAV (same as the main site) */
nav.top{
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap{ display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo{ display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', 'Inter', sans-serif; }
.logo .mark{ width: 26px; height: 26px; display: block; }
.logo .strike{ position: relative; color: var(--text-dim); }
.logo .strike::after{ content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: var(--text-dim); }
.logo .section{ color: var(--text-dim); font-weight: 500; font-size: 15px; margin-left: 4px; }
nav.top ul{ list-style: none; display: flex; gap: 28px; font-size: 14px; color: var(--text-dim); }
nav.top ul a:hover, nav.top ul a[aria-current="page"]{ color: var(--text); }
.nav-cta{ font-size: 13px; padding: 9px 18px; border-radius: 100px; background: var(--accent); color: #fff; font-weight: 600; white-space: nowrap; }
.nav-cta:hover{ background: #6a4ce0; }

/* BUTTONS */
.btn-primary, .btn-ghost{ display: inline-block; font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 100px; }
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ background: #6a4ce0; }
.btn-ghost{ border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover{ border-color: var(--text-dim); }
.actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* HUB */
header.hero{ padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.eyebrow{ font-size: 13px; color: var(--accent-2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.eyebrow .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(61,220,151,0.15); }
h1.headline{ font-size: clamp(36px, 5vw, 54px); line-height: 1.06; max-width: 18ch; }
h1.headline .accent{ color: var(--accent); }
.sub{ margin-top: 20px; font-size: 17px; color: var(--text-dim); max-width: 56ch; }
section.block{ padding: 80px 0; border-bottom: 1px solid var(--line); }
.sec-head{ display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.sec-head h2{ font-size: 30px; }
.sec-head p{ color: var(--text-dim); font-size: 15px; max-width: 44ch; }

.plugin-card{
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  transition: border-color .2s;
}
.plugin-card:hover{ border-color: var(--accent); }
.plugin-card + .plugin-card{ margin-top: 20px; }
.plugin-card .p-icon{ width: 120px; height: 120px; border-radius: 22px; }
.plugin-card h3{ font-size: 22px; margin-bottom: 6px; }
.plugin-card h3 a{ border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.plugin-card h3 a:hover{ color: var(--accent-2); border-bottom-color: var(--accent-2); }
.plugin-card h3 a::after{ content: " \2197"; font-size: .7em; color: var(--text-dim); vertical-align: 2px; }
.plugin-card p{ color: var(--text-dim); font-size: 15px; }
.tags{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag{ font-size: 11px; letter-spacing: .06em; color: var(--accent-2); border: 1px solid rgba(61,220,151,.25); border-radius: 100px; padding: 3px 10px; font-family: 'JetBrains Mono', monospace; }
.tag.pro{ color: #CDBFFF; border-color: rgba(124,92,255,.4); }
.links-row{ display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; font-weight: 600; }
.links-row a{ color: var(--accent-2); }
.links-row a:hover{ text-decoration: underline; }
.placeholder-card{ border: 1px dashed var(--line); border-radius: 18px; padding: 28px; color: var(--text-dim); text-align: center; margin-top: 20px; font-size: 14px; }

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card{ background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3{ font-size: 16px; margin-bottom: 6px; }
.card p{ font-size: 14px; color: var(--text-dim); }
.card .icon{ width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(124,92,255,0.12); margin-bottom: 16px; font-size: 18px; }

.contact-box{ background: linear-gradient(135deg, rgba(124,92,255,0.14), rgba(61,220,151,0.08)); border: 1px solid var(--line); border-radius: 20px; padding: 48px; text-align: center; }
.contact-box h2{ font-size: 28px; margin-bottom: 10px; }
.contact-box p{ color: var(--text-dim); margin-bottom: 24px; }
.contact-email{ font-size: 19px; font-weight: 700; color: var(--accent-2); border-bottom: 1px solid transparent; }
.contact-email:hover{ border-color: var(--accent-2); }

/* DOCS LAYOUT */
.docs{ display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.sidebar{ position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.sidebar .plugin-id{ display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.sidebar .plugin-id img{ width: 44px; height: 44px; border-radius: 10px; }
.sidebar .plugin-id b{ font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 15px; line-height: 1.25; display: block; }
.sidebar .plugin-id span{ font-size: 12px; color: var(--text-dim); }
.sidebar h4{ font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 22px 0 8px; font-family: 'Inter', sans-serif; }
.sidebar ul{ list-style: none; }
.sidebar li a{ display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--text-body); border-left: 2px solid transparent; }
.sidebar li a:hover{ background: var(--bg-soft); color: var(--text); }
.sidebar li a[aria-current="page"]{ background: rgba(124,92,255,0.12); color: var(--text); border-left-color: var(--accent); }
.sidebar .side-cta{ margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); font-size: 13px; color: var(--text-dim); }
.sidebar .side-cta a{ color: var(--accent-2); font-weight: 600; }

.breadcrumb{ font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a:hover{ color: var(--text); }
.content{ max-width: 820px; color: var(--text-body); font-size: 16px; }
.content > h1{ font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin-bottom: 12px; }
.content .lead{ font-size: 18px; color: var(--text-dim); margin-bottom: 28px; }
.content h2{ font-size: 25px; margin: 52px 0 14px; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 34px; }
.content h2:first-of-type{ border-top: none; padding-top: 0; }
.content h3{ font-size: 18px; margin: 30px 0 10px; }
.content p{ margin: 0 0 16px; }
.content ul, .content ol{ margin: 0 0 18px 22px; }
.content li{ margin: 6px 0; }
.content li::marker{ color: var(--text-dim); }
.content a{ color: var(--accent-2); }
.content a:hover{ text-decoration: underline; }
.content strong{ color: var(--text); }
.content hr{ border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

code{ font-size: .88em; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #E3DCFF; word-break: break-word; }
pre{ background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow: auto; margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: #D9D6EA; }
pre code{ background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
kbd{ font-size: .85em; background: var(--bg-raise); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.path{ font-family: 'JetBrains Mono', monospace; font-size: .88em; color: var(--text); background: var(--bg-raise); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

table{ width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
th, td{ text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th{ color: var(--text); font-weight: 600; background: var(--bg-soft); }
td .muted{ color: var(--text-dim); font-size: 13px; }
.table-wrap{ overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table{ margin: 0; }
.table-wrap tr:last-child td{ border-bottom: 0; }
.yes{ color: var(--accent-2); font-weight: 700; }
.no{ color: var(--text-dim); }

figure{ margin: 8px 0 28px; }
figure img{ border-radius: 12px; border: 1px solid var(--line); background: #fff; }
figcaption{ font-size: 13px; color: var(--text-dim); margin-top: 10px; }

.callout{ border: 1px solid var(--line); border-left: 3px solid var(--accent-2); background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-size: 15px; }
.callout p:last-child{ margin-bottom: 0; }
.callout.pro{ border-left-color: var(--accent); }
.callout.warn{ border-left-color: var(--warn); }
.callout b.label{ display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: var(--text); }
.badge{ display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 8px; border-radius: 100px; vertical-align: middle; margin-left: 6px; font-family: 'Inter', sans-serif; }
.badge.pro{ background: rgba(124,92,255,.18); color: #CDBFFF; }
.badge.free{ background: rgba(61,220,151,.14); color: var(--accent-2); }

.steps{ counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps > li{ counter-increment: step; position: relative; padding-left: 46px; margin: 0 0 18px; }
.steps > li::before{ content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(124,92,255,0.15); color: #CDBFFF; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; }

.next-prev{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.next-prev a{ border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: block; }
.next-prev a:hover{ border-color: var(--accent); }
.next-prev small{ display: block; color: var(--text-dim); font-size: 12px; }
.next-prev b{ color: var(--text); font-size: 15px; }
.next-prev .next{ text-align: right; grid-column: 2; }

.toc{ border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 30px; font-size: 14px; background: var(--bg-soft); }
.toc b{ color: var(--text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.toc ol{ margin: 8px 0 0 18px; columns: 2; column-gap: 28px; }
.toc li{ margin: 3px 0; }

.feature-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 24px; }
.feature{ background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feature b{ color: var(--text); display: block; margin-bottom: 4px; }
.feature span{ font-size: 14px; color: var(--text-dim); }

.price-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 22px; }
.price{ border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg-soft); text-align: center; }
.price.featured{ border-color: var(--accent); }
.price .amt{ font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; color: var(--text); }
.price .per{ color: var(--text-dim); font-size: 13px; }
.price .sites{ margin-top: 6px; font-weight: 600; color: var(--text); }

.banner-img{ border-radius: 16px; border: 1px solid var(--line); margin: 0 0 28px; }

footer.site{ border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--text-dim); }
footer.site .wrap{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a:hover{ color: var(--text); }

@media (max-width: 960px){
  nav.top ul{ display: none; }
  .docs{ grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .sidebar, .content{ min-width: 0; }
  .path{ white-space: normal; }
  .sidebar{ position: static; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .sidebar ul{ display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar li a{ border-left: 0; border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; font-size: 13px; }
  .sidebar li a[aria-current="page"]{ border-color: var(--accent); }
  .sidebar h4{ margin-top: 14px; }
  .sidebar .side-cta{ display: none; }
}
@media (max-width: 760px){
  .wrap{ padding: 0 16px; }
  nav.top ul{ display: none; }
  .logo .section{ display: none; }
  .plugin-card{ grid-template-columns: 1fr; }
  .plugin-card .p-icon{ width: 72px; height: 72px; border-radius: 16px; }
  .grid-3, .feature-grid, .price-grid{ grid-template-columns: 1fr; }
  .toc ol{ columns: 1; }
  .next-prev{ grid-template-columns: 1fr; }
  .next-prev .next{ grid-column: 1; }
  .contact-box{ padding: 32px 20px; }
  header.hero{ padding: 56px 0 48px; }
}
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
