/**
 * SEOBOT layouts + color themes — v0.6.1
 * Inspired by Chemist / Avola / EITS / ARI demos.
 * Articles: single reading column + elegant TOC (no crude scrollbar).
 * Pages: hero bands + full-width stacked sections (never 3 cramped columns).
 */

/* —— Color themes (random) —— */
.seobot-theme-forest {
  --sb-accent: #0c6b54;
  --sb-accent-2: #128f6f;
  --sb-accent-soft: rgba(12, 107, 84, 0.12);
  --sb-ink: #14201b;
  --sb-muted: #5a6b64;
  --sb-bg: #eef6f2;
  --sb-bg-2: #f7fbf9;
  --sb-card: #ffffff;
  --sb-line: rgba(20, 32, 27, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #0c6b54, #1a9a78);
}
.seobot-theme-ocean {
  --sb-accent: #0b6e99;
  --sb-accent-2: #1490c4;
  --sb-accent-soft: rgba(11, 110, 153, 0.12);
  --sb-ink: #102433;
  --sb-muted: #5a7080;
  --sb-bg: #eef5fa;
  --sb-bg-2: #f5fafc;
  --sb-card: #ffffff;
  --sb-line: rgba(16, 36, 51, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #0b6e99, #1aa0d4);
}
.seobot-theme-sunset {
  --sb-accent: #c45a12;
  --sb-accent-2: #e07830;
  --sb-accent-soft: rgba(196, 90, 18, 0.12);
  --sb-ink: #2a1a10;
  --sb-muted: #7a5f4e;
  --sb-bg: #faf3ec;
  --sb-bg-2: #fffaf5;
  --sb-card: #ffffff;
  --sb-line: rgba(42, 26, 16, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #c45a12, #e8913a);
}
.seobot-theme-violet {
  --sb-accent: #6b3fa0;
  --sb-accent-2: #8a57c4;
  --sb-accent-soft: rgba(107, 63, 160, 0.12);
  --sb-ink: #1e1530;
  --sb-muted: #6a5d7a;
  --sb-bg: #f4f0fa;
  --sb-bg-2: #faf7fd;
  --sb-card: #ffffff;
  --sb-line: rgba(30, 21, 48, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #6b3fa0, #9a62d4);
}
.seobot-theme-rose {
  --sb-accent: #b03060;
  --sb-accent-2: #d04a7a;
  --sb-accent-soft: rgba(176, 48, 96, 0.12);
  --sb-ink: #2a121c;
  --sb-muted: #7a5566;
  --sb-bg: #faf0f4;
  --sb-bg-2: #fff7fa;
  --sb-card: #ffffff;
  --sb-line: rgba(42, 18, 28, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #b03060, #d95a88);
}
.seobot-theme-slate {
  --sb-accent: #3d5a73;
  --sb-accent-2: #547a99;
  --sb-accent-soft: rgba(61, 90, 115, 0.12);
  --sb-ink: #1a2229;
  --sb-muted: #5c6b78;
  --sb-bg: #eef1f4;
  --sb-bg-2: #f7f9fb;
  --sb-card: #ffffff;
  --sb-line: rgba(26, 34, 41, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #2c3e50, #547a99);
}
.seobot-theme-sand {
  --sb-accent: #8a6a3d;
  --sb-accent-2: #b08a52;
  --sb-accent-soft: rgba(138, 106, 61, 0.14);
  --sb-ink: #2a2418;
  --sb-muted: #6e6454;
  --sb-bg: #f6f1e8;
  --sb-bg-2: #fbf8f2;
  --sb-card: #fffcf7;
  --sb-line: rgba(42, 36, 24, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #8a6a3d, #c4a46e);
}
.seobot-theme-ink {
  --sb-accent: #c9a227;
  --sb-accent-2: #e0bc3e;
  --sb-accent-soft: rgba(201, 162, 39, 0.16);
  --sb-ink: #111111;
  --sb-muted: #5a5a5a;
  --sb-bg: #f2f2f2;
  --sb-bg-2: #fafafa;
  --sb-card: #ffffff;
  --sb-line: rgba(0, 0, 0, 0.1);
  --sb-hero-grad: linear-gradient(135deg, #111111, #3a3a3a);
}

.seobot-article {
  --sb-radius: 18px;
  --sb-radius-sm: 12px;
  --sb-shadow: 0 14px 40px rgba(20, 28, 24, 0.08);
  --sb-gap: 1.25rem;
  --sb-aside: 15rem;
  --sb-max: min(100%, 76rem);
  --sb-sticky-top: 5.5rem;

  box-sizing: border-box;
  width: 100%;
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 0.85rem clamp(0.75rem, 2vw, 1.5rem) 3rem;
  color: var(--sb-ink);
  background: transparent;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.02rem, 0.3vw + 0.96rem, 1.1rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.seobot-article *,
.seobot-article *::before,
.seobot-article *::after {
  box-sizing: border-box;
}

.seobot-shell {
  display: grid;
  gap: var(--sb-gap);
}

/* —— Widgets —— */
.seobot-widget {
  background: var(--sb-card);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 1.25rem 1.35rem;
}

.seobot-widget__label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-accent);
}

/* —— Body: main + aside (NO overflow scrollbar on aside) —— */
.seobot-body {
  display: grid;
  gap: var(--sb-gap);
  align-items: start;
  grid-template-columns: 1fr;
}

.seobot-body--solo {
  grid-template-columns: 1fr;
  max-width: 46rem;
  margin-inline: auto;
  width: 100%;
}

.seobot-aside {
  display: grid;
  gap: var(--sb-gap);
  align-content: start;
  align-self: start;
}

@media (min-width: 960px) {
  /* Coloană mare (conținut) + coloană mică (cuprins sticky) */
  .seobot-body:not(.seobot-body--solo) {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
    column-gap: 1.5rem;
  }

  .seobot-aside {
    position: sticky;
    top: var(--sb-sticky-top);
    z-index: 2;
  }

  .seobot-main {
    min-width: 0;
  }

  .seobot-section,
  .seobot-sections .seobot-widget {
    max-width: none;
  }
}

/* —— Heroes —— */
.seobot-hero {
  border-radius: var(--sb-radius);
  overflow: hidden;
  border: 1px solid var(--sb-line);
  background: var(--sb-card);
  box-shadow: var(--sb-shadow);
}

.seobot-hero__text {
  padding: 1.5rem 1.5rem 1.2rem;
}

.seobot-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 1.4vw + 1.4rem, 2.75rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--sb-ink);
}

.seobot-hero__lede {
  margin: 0;
  max-width: 40rem;
  color: var(--sb-muted);
  font-size: 1.08em;
  line-height: 1.55;
}

.seobot-hero .seobot-hero__media,
.seobot-hero .seobot-figure {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.seobot-hero--chemist {
  background:
    radial-gradient(600px 200px at 0% 0%, var(--sb-accent-soft), transparent 60%),
    var(--sb-card);
}

.seobot-hero--chemist .seobot-hero__title {
  color: var(--sb-accent);
}

.seobot-hero--editorial {
  background: var(--sb-bg);
  padding-bottom: 0.5rem;
}

.seobot-pullquote {
  margin: 0 1.5rem 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--sb-accent);
  background: var(--sb-card);
  border-radius: 0 var(--sb-radius-sm) var(--sb-radius-sm) 0;
  color: var(--sb-ink);
  font-size: 1.05em;
  font-style: italic;
  line-height: 1.5;
}

.seobot-hero--split {
  display: grid;
  grid-template-columns: 1fr;
}

.seobot-hero--split .seobot-hero__text-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  background: var(--sb-bg-2);
}

.seobot-hero--split .seobot-hero__visual {
  min-height: 14rem;
  background: var(--sb-bg);
}

.seobot-hero--split .seobot-hero__visual .seobot-hero__media,
.seobot-hero--split .seobot-hero__visual .seobot-figure {
  padding: 0;
  height: 100%;
}

.seobot-hero--split .seobot-img,
.seobot-hero--split img {
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  border-radius: 0 !important;
}

@media (min-width: 860px) {
  .seobot-hero--split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.seobot-hero--feature {
  position: relative;
  min-height: 20rem;
  border: 0;
}

.seobot-hero--feature .seobot-hero__media-wrap {
  position: absolute;
  inset: 0;
}

.seobot-hero--feature .seobot-hero__media,
.seobot-hero--feature .seobot-figure,
.seobot-hero--feature .figure-caption {
  margin: 0;
  padding: 0;
  height: 100%;
}

.seobot-hero--feature .figure-caption {
  display: none;
}

.seobot-hero--feature .seobot-img,
.seobot-hero--feature img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  border-radius: 0 !important;
  filter: brightness(0.48);
}

.seobot-hero--feature .seobot-hero__overlay {
  position: relative;
  z-index: 1;
  padding: 2.75rem 1.75rem;
  max-width: 42rem;
}

.seobot-hero--feature .seobot-hero__title,
.seobot-hero--feature .seobot-hero__lede {
  color: #fff;
}

.seobot-hero--band {
  background: var(--sb-hero-grad);
  border: 0;
  color: #fff;
}

.seobot-hero--band .seobot-hero__band-inner {
  padding: 2rem 1.5rem 1.25rem;
}

.seobot-hero--band .seobot-hero__title,
.seobot-hero--band .seobot-hero__lede {
  color: #fff;
}

.seobot-hero--band .seobot-hero__lede {
  opacity: 0.92;
}

.seobot-hero--band .seobot-hero__media,
.seobot-hero--band .seobot-figure {
  padding: 0 1.25rem 1.25rem;
}

.seobot-hero--minimal {
  text-align: center;
  background: var(--sb-bg);
  border: 0;
  box-shadow: none;
}

.seobot-hero--minimal .seobot-hero__lede {
  margin-inline: auto;
}

/* TOC pills (minimal layout) */
.seobot-toc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0 1rem 1.25rem;
}

.seobot-pill {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--sb-card);
  border: 1px solid var(--sb-line);
  color: var(--sb-accent) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 600;
}

.seobot-pill:hover {
  background: var(--sb-accent-soft);
}

/* —— Sections: single column stack —— */
.seobot-sections {
  display: grid;
  gap: var(--sb-gap);
  grid-template-columns: 1fr;
}

.seobot-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 0.5vw + 1.1rem, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--sb-ink);
}

.seobot-section h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 99px;
  background: var(--sb-accent);
}

.seobot-section p {
  margin: 0 0 1rem;
  color: var(--sb-ink);
}

.seobot-section p:last-child {
  margin-bottom: 0;
}

.seobot-section__media--inline {
  margin: 1rem 0 1.15rem;
  clear: both;
}

.seobot-section__media--inline .seobot-figure {
  margin: 0;
}

@media (min-width: 760px) {
  .seobot-section__media--float {
    float: right;
    width: min(40%, 260px);
    margin: 0.15rem 0 1rem 1.25rem;
    clear: none;
  }

  .seobot-section__media--float .seobot-img,
  .seobot-section__media--float img {
    max-height: 13rem;
  }
}

.seobot-section::after {
  content: "";
  display: table;
  clear: both;
}

/* Page feature strip (only short cards, not full article split) */
.seobot-features {
  display: grid;
  gap: var(--sb-gap);
  grid-template-columns: 1fr;
  margin-bottom: var(--sb-gap);
}

.seobot-section--feature,
.seobot-section--highlight {
  background:
    linear-gradient(180deg, var(--sb-bg-2), var(--sb-card));
  border-color: color-mix(in srgb, var(--sb-accent) 22%, var(--sb-line));
}

.seobot-section--feature h2,
.seobot-section--highlight h2 {
  font-size: 1.15rem;
}

.seobot-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--sb-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.seobot-layout-p-steps .seobot-section {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--sb-accent-soft);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
  box-shadow: none;
}

/* —— TOC (clean, no internal scroll) —— */
.seobot-toc {
  background:
    linear-gradient(165deg, var(--sb-bg) 0%, var(--sb-card) 55%);
}

.seobot-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  counter-reset: toc;
}

.seobot-toc__list > li {
  counter-increment: toc;
  margin: 0;
}

.seobot-toc__link {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.35rem;
  align-items: start;
  padding: 0.5rem 0.4rem;
  border-radius: 10px;
  color: var(--sb-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92em;
  line-height: 1.35;
}

.seobot-toc__link::before {
  content: counter(toc);
  color: var(--sb-muted);
  font-size: 0.78em;
  font-weight: 750;
  padding-top: 0.1rem;
}

.seobot-toc__link:hover {
  background: var(--sb-accent-soft);
  color: var(--sb-accent-2);
}

.seobot-glance__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sb-muted);
  display: grid;
  gap: 0.35rem;
  font-size: 0.92em;
}

.seobot-cta-box {
  background:
    radial-gradient(420px 140px at 15% 0%, var(--sb-accent-soft), transparent 60%),
    linear-gradient(180deg, var(--sb-bg), var(--sb-bg-2));
  text-align: center;
}

.seobot-cta-box__text {
  margin: 0 0 0.9rem;
  color: var(--sb-muted);
  font-size: 0.95em;
}

.seobot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: var(--sb-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 750;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--sb-accent) 35%, transparent);
}

.seobot-btn:hover {
  background: var(--sb-accent-2);
}

/* FAQ */
.seobot-faq > h2 {
  margin: 0 0 0.85rem;
  color: var(--sb-ink);
}

.seobot-faq__item {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  margin: 0 0 0.55rem;
  background: var(--sb-card);
  overflow: hidden;
}

.seobot-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 2.5rem 0.85rem 0.95rem;
  font-weight: 650;
  position: relative;
  color: var(--sb-ink);
}

.seobot-faq__item summary::-webkit-details-marker {
  display: none;
}

.seobot-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--sb-accent-soft);
  color: var(--sb-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.seobot-faq__item[open] summary::after {
  content: "–";
}

.seobot-faq__answer {
  padding: 0 0.95rem 0.95rem;
  color: var(--sb-muted);
  border-top: 1px dashed var(--sb-line);
  padding-top: 0.75rem;
}

.seobot-faq__answer p {
  margin: 0;
}

/* Media / tables / lists */
.seobot-figure {
  margin: 1rem 0;
}

.seobot-img,
.seobot-figure img,
.seobot-article img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.seobot-figure figcaption,
.seobot-figure .figure-caption {
  margin-top: 0.45rem;
  text-align: center;
  font-size: 0.85em;
  color: var(--sb-muted);
}

.seobot-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}

.seobot-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}

.seobot-article th,
.seobot-article td {
  border: 1px solid var(--sb-line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.seobot-article th {
  background: var(--sb-bg);
  color: var(--sb-ink);
}

.seobot-checklist {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.seobot-checklist > li {
  position: relative;
  padding: 0.7rem 0.8rem 0.7rem 2.55rem;
  border: 1px solid var(--sb-line);
  border-radius: 10px;
  background: var(--sb-bg-2);
}

.seobot-checklist > li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--sb-accent);
  border-radius: 0.25rem;
  background: #fff;
}

.seobot-checklist > li::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.05rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid var(--sb-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.seobot-article ul:not(.seobot-checklist):not(.seobot-glance__list):not(.seobot-toc__list),
.seobot-article ol:not(.seobot-toc__list) {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.seobot-article a {
  color: var(--sb-accent);
}

.entry-content .seobot-article,
.post-content .seobot-article,
.elementor-widget-theme-post-content .seobot-article,
.elementor-widget-text-editor .seobot-article,
.elementor-widget-html .seobot-article {
  width: 100%;
  max-width: var(--sb-max);
  margin-inline: auto;
}

@media (max-width: 959.98px) {
  .seobot-aside {
    position: static;
  }
}
