/* EncyWorthTraffic Pro v3.5 — themes/base.css
   Shared STRUCTURE for all non-classic homepage layouts (components only —
   identity/colors/typography come from each theme skin loaded after this file).
   Full-width homepage: hero band + stacked sections, no classic sidebar. */

.hx-home { padding-bottom: 0 !important; }
.hx-home .hx-wrap { width: 96%; max-width: 1200px; margin: 0 auto; }

/* full-bleed breakout: themed heroes span the whole viewport even though the
   classic shell keeps a boxed .wrapper (works in RTL too via logical margins) */
#content > div:has(> .wrapper > .hx-home),
#content > div:has(.hx-home) { overflow: visible; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
body:has(.hx-home) { overflow-x: hidden; }
.hx-home { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ---------------- HERO ---------------- */
.hx-hero { position: relative; overflow: hidden; }
.hx-hero .hx-wrap { position: relative; z-index: 2; }
.hx-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin: 0 0 18px;
}
.hx-hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 14px; letter-spacing: -.02em; }
.hx-hero .hx-sub { font-size: 17px; line-height: 1.65; max-width: 640px; margin: 0 0 26px; }
.hx-hero--center { text-align: center; padding: 74px 0 66px; }
.hx-hero--center .hx-sub, .hx-hero--center .hx-kicker { margin-inline: auto; }
.hx-hero--center .hx-sub { max-width: 720px; }
.hx-hero--split { display: grid; }
.hx-hero--split .hx-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding: 64px 0; }
.hx-hero--split h1 { font-size: 42px; }
.hx-hero--split .hx-sub { max-width: 520px; }
.hx-hero--editorial { padding: 80px 0 34px; text-align: start; }
.hx-hero--editorial h1 { font-size: 56px; max-width: 900px; }

/* hero search form (shared) */
.hx-search { display: flex; gap: 10px; max-width: 660px; flex-wrap: wrap; }
.hx-hero--center .hx-search { margin: 0 auto; }
.hx-search input[type=text] {
  flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 20px;
  font-size: 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); outline: none; box-shadow: var(--input-shadow);
}
.hx-search input[type=text]:focus { border-color: var(--accent); }
.hx-search input[type=submit] {
  height: 54px; padding: 0 30px; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 15.5px; font-weight: 700; color: #fff; background: var(--accent);
}
.hx-search input[type=submit]:hover { background: var(--accent-dark); }
.hx-hero--split .hx-search-card { background: var(--surface); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(2,8,23,.25); }
.hx-hero--split .hx-search-card h2 { margin: 0 0 14px; font-size: 19px; }
.hx-search .hx-hint { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hx-hero--center .hx-chips { justify-content: center; }
.hx-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: inherit; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ---------------- SECTIONS ---------------- */
.hx-sec { padding: 46px 0 8px; }
.hx-sec-head { margin: 0 0 22px; max-width: 700px; }
.hx-sec-head .hx-kicker { margin-bottom: 10px; }
.hx-sec-head h2 { font-size: 27px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.015em; }
.hx-sec-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.hx-sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.hx-sec-head--row .hx-all { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* stats bands */
.hx-stats { display: grid; gap: 16px; }
.hx-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-stat { padding: 22px 22px 19px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface); }
.hx-stat b { display: block; font-size: 30px; line-height: 1.15; color: var(--head); letter-spacing: -.02em; }
.hx-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hx-stat .hx-ico { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; align-items: center; justify-content: center; margin-bottom: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.hx-stat .hx-ico svg { display: block; }

/* feature band (compare / bulk / generators / shortener) */
.hx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hx-feat { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface); }
.hx-feat:hover { text-decoration: none; border-color: var(--accent); }
.hx-feat .hx-ico { flex: 0 0 auto; display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.hx-feat b { display: block; font-size: 15px; color: var(--head); margin-bottom: 3px; }
.hx-feat small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hx-feat .hx-go { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* tools grid variants */
.hx-tools { display: grid; gap: 12px; }
.hx-tools--cards, .hx-tools--glass, .hx-tools--neon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx-tools--pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-tools--bubbles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hx-tool { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: 13px; border: 1px solid var(--border-soft); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--head); }
.hx-tool:hover { text-decoration: none; border-color: var(--accent); }
.hx-tool .hx-ico { flex: 0 0 auto; display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.hx-tool small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hx-tools--pills .hx-tool { border-radius: 999px; padding: 12px 20px; }

/* top sites variants */
.hx-tops--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-topcard { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface); display: flex; align-items: center; gap: 14px; }
.hx-topcard:hover { text-decoration: none; border-color: var(--accent); }
.hx-topcard .hx-rank { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-dark); }
.hx-topcard b { display: block; font-size: 14.5px; color: var(--head); }
.hx-topcard span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hx-tops--table { width: 100%; border-collapse: collapse; }
.hx-tops--table th, .hx-tops--table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.hx-tops--table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hx-tops--table td.num, .hx-tops--table th.num { text-align: end; font-variant-numeric: tabular-nums; }
.hx-tops--numbered { counter-reset: hx; }
.hx-tops--numbered .hx-row { display: flex; align-items: baseline; gap: 18px; padding: 15px 4px; border-bottom: 1px solid var(--border-soft); }
.hx-tops--numbered .hx-row::before { counter-increment: hx; content: counter(hx, decimal-leading-zero); font-size: 15px; font-weight: 800; color: var(--accent); min-width: 34px; font-variant-numeric: tabular-nums; }
.hx-tops--numbered .hx-row b { font-size: 16.5px; color: var(--head); }
.hx-tops--numbered .hx-row span { margin-inline-start: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* recent checks */
.hx-recent { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-recent a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-soft); font-size: 13.5px; font-weight: 600; background: var(--surface); color: var(--head); }
.hx-recent a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-dark); }

/* CTA band */
.hx-cta { margin: 52px 0 0; padding: 46px 0; }
.hx-cta .hx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.hx-cta h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.015em; }
.hx-cta p { margin: 0; font-size: 14.5px; opacity: .85; }
.hx-cta .hx-btn { display: inline-block; padding: 14px 30px; border-radius: 11px; font-weight: 800; font-size: 15px; color: #fff; background: var(--accent); }
.hx-cta .hx-btn:hover { text-decoration: none; filter: brightness(1.06); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .hx-stats--4, .hx-feats, .hx-tools--cards, .hx-tools--glass, .hx-tools--neon, .hx-tools--bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-tools--pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-tops--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-hero--split .hx-wrap { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .hx-hero h1 { font-size: 32px; }
  .hx-hero--editorial h1 { font-size: 36px; }
  .hx-hero--center, .hx-hero--split .hx-wrap, .hx-hero--editorial { padding-top: 46px; }
  .hx-search { flex-direction: column; }
  .hx-search input[type=submit] { width: 100%; }
  .hx-stats--4, .hx-feats, .hx-tools--cards, .hx-tools--glass, .hx-tools--neon,
  .hx-tools--pills, .hx-tools--bubbles, .hx-tops--cards { grid-template-columns: 1fr; }
  .hx-sec { padding: 34px 0 4px; }
  .hx-sec-head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
