/*
 * Cifras WP Theme — theme.css
 * Reset mínimo + layout base. O design vem do plugin.
 */

/* ── Reset moderno ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* scroll-behavior: smooth; — removido: conflita com autoscroll RAF no iOS */
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Cor de fundo neutra — o plugin define via var(--c-bg) */
  background: #ffffff;
  color: #18163a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Respeita dark mode do plugin */
[data-cifra-theme="dark"] body {
  background: #0c0b18;
  color: #eeeaff;
}

/* ── Tipografia base neutra ─────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }
figure { margin: 0; }

/* ── Layout base ────────────────────────────────────── */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#content { flex: 1; }

/* ── Área de conteúdo de páginas/posts normais ──────── */
/* (as páginas do plugin têm layout próprio via .cifra-container) */
.site-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}
.entry-content > * + * { margin-top: 1em; }
.entry-content h1 { font-size: clamp(24px, 4vw, 40px); }
.entry-content h2 { font-size: clamp(20px, 3vw, 32px); }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 26px); }


/* ════════════════════════════════════════════════════════
   PÁGINA DE RESULTADOS DE BUSCA
   ════════════════════════════════════════════════════════ */

/* Hero */
.cwp-search-hero {
  background: linear-gradient(135deg, #18163a 0%, #2e1f6b 100%);
  padding: 52px 0 44px;
  color: #fff;
}
.cwp-search-hero__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.cwp-search-hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.cwp-search-hero__query {
  font-size: clamp(24px, 4vw, 44px); font-weight: 900;
  color: #fff; margin: 0 0 10px;
  letter-spacing: -.02em; line-height: 1.1;
}
.cwp-search-hero__count {
  font-size: 15px; color: rgba(255,255,255,.6); margin: 0;
}

/* Body */
.cwp-search-body { padding: 36px 0 80px; }
.cwp-search-body__inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid !important;
  grid-template-columns: 1fr 280px;
  gap: 28px; align-items: start;
}
.cwp-search-body__inner--full {
  grid-template-columns: 1fr;
}

/* Cabeçalho da lista */
.cwp-search-list-header {
  font-size: 12px; font-weight: 600;
  color: #6b7280;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
}
[data-cifra-theme="dark"] .cwp-search-list-header { color: #9ca3af; }

/* Lista de resultados */
.cwp-search-list {
  background: #fff;
  border: 1px solid #e4e2f0;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(124,58,237,.06);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
}
[data-cifra-theme="dark"] .cwp-search-list {
  background: #14122a;
  border-color: #2a274a;
}

/* Item */
.cwp-search-item {
  display: flex !important; align-items: center; gap: 12px;
  padding: 13px 18px !important;
  text-decoration: none !important; color: #18163a;
  border-bottom: 1px solid #f0eefb;
  transition: background .15s;
  width: 100%; box-sizing: border-box;
}
[data-cifra-theme="dark"] .cwp-search-item { color: #eeeaff; border-color: #211e3c; }
.cwp-search-item:last-child { border-bottom: none; }
.cwp-search-item:hover { background: #f5f3ff; }
[data-cifra-theme="dark"] .cwp-search-item:hover { background: #1e1b36; }
.cwp-search-item:hover .cwp-search-item__title { color: #7c3aed; }

/* Avatar */
.cwp-search-item__avatar {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; overflow: hidden;
}
.cwp-search-item__avatar img {
  width: 44px; height: 44px; object-fit: cover; display: block;
}
.cwp-search-item__avatar-fb {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ede9fe; color: #7c3aed;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-item__avatar-fb { background: #2e1f6b; }

/* Info */
.cwp-search-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cwp-search-item__title {
  font-size: 14px; font-weight: 700;
  color: #18163a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-item__title { color: #eeeaff; }
.cwp-search-item__sub {
  font-size: 12px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-item__sub { color: #9ca3af; }
.cwp-search-item__sep { opacity: .4; }

/* Badges e seta */
.cwp-search-item__badges {
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.cwp-search-item__badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.cwp-search-item__badge--tom {
  background: #ede9fe; color: #7c3aed;
}
.cwp-search-item__views {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.cwp-search-item__arrow {
  flex-shrink: 0; color: #c4bfee;
  transition: transform .15s, color .15s;
}
.cwp-search-item:hover .cwp-search-item__arrow {
  color: #7c3aed; transform: translateX(3px);
}

/* Paginação */
.cwp-search-pagination { margin-top: 24px; }

/* Estado vazio */
.cwp-search-empty {
  background: #fff; border: 1px solid #e4e2f0;
  border-radius: 16px; padding: 56px 32px; text-align: center;
}
[data-cifra-theme="dark"] .cwp-search-empty { background: #14122a; border-color: #2a274a; }
.cwp-search-empty__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f5f3ff; border: 1px solid #e4e2f0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: #9d9bc0;
}
[data-cifra-theme="dark"] .cwp-search-empty__icon { background: #1e1b36; border-color: #2a274a; }
.cwp-search-empty h2 {
  font-size: 20px; font-weight: 800; color: #18163a; margin: 0 0 8px;
}
[data-cifra-theme="dark"] .cwp-search-empty h2 { color: #eeeaff; }
.cwp-search-empty p { color: #6b7280; font-size: 14px; margin: 0 0 18px; }
.cwp-search-empty__tips {
  list-style: none; padding: 0; margin: 0 auto 24px;
  display: inline-flex; flex-direction: column; gap: 6px;
  background: #f5f3ff; border-radius: 10px; padding: 14px 20px;
  text-align: left;
}
.cwp-search-empty__tips li { font-size: 13px; color: #6b7280; padding-left: 14px; position: relative; }
.cwp-search-empty__tips li::before { content: '→'; position: absolute; left: 0; color: #a78bfa; }
.cwp-search-empty__btn {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 22px;
  background: #7c3aed; color: #fff;
  border-radius: 99px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.cwp-search-empty__btn:hover { background: #5b21b6; }

/* Sidebar */
.cwp-search-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 80px;
}
.cwp-search-sidebar__card {
  background: #fff;
  border: 1px solid #e4e2f0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(124,58,237,.05);
}
[data-cifra-theme="dark"] .cwp-search-sidebar__card {
  background: #14122a; border-color: #2a274a;
}
.cwp-search-sidebar__title {
  padding: 11px 16px;
  font-size: 11px; font-weight: 800;
  color: #6b7280;
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid #f0eefb; margin: 0;
  background: #faf9ff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__title {
  color: #9ca3af; background: #1a1835; border-color: #2a274a;
}
.cwp-search-sidebar__list { display: flex; flex-direction: column; }
.cwp-search-sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  text-decoration: none; color: #18163a;
  border-bottom: 1px solid #f0eefb;
  transition: background .12s;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__item { color: #eeeaff; border-color: #211e3c; }
.cwp-search-sidebar__item:last-child { border-bottom: none; }
.cwp-search-sidebar__item:hover { background: #f5f3ff; }
[data-cifra-theme="dark"] .cwp-search-sidebar__item:hover { background: #1e1b36; }
.cwp-search-sidebar__item:hover .cwp-search-sidebar__name { color: #7c3aed; }
.cwp-search-sidebar__item > svg { flex-shrink:0; color: #c4bfee; }
.cwp-search-sidebar__avatar {
  flex-shrink:0; width:36px; height:36px; border-radius:50%; overflow:hidden;
}
.cwp-search-sidebar__avatar img { width:36px; height:36px; object-fit:cover; display:block; }
.cwp-search-sidebar__avatar-fb {
  width:36px; height:36px; border-radius:50%;
  background: #ede9fe; color: #7c3aed;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__avatar-fb { background: #2e1f6b; }
.cwp-search-sidebar__info { flex:1; min-width:0; }
.cwp-search-sidebar__name {
  display:block; font-size:13px; font-weight:600; color: #18163a;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition: color .12s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__name { color: #eeeaff; }
.cwp-search-sidebar__count {
  display:block; font-size:11px; color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Form de busca na sidebar */
.cwp-search-sidebar__form {
  display:flex; align-items:center;
  background: #f5f3ff;
  border: 1.5px solid #e4e2f0;
  border-radius: 10px; overflow:hidden;
  transition: border-color .15s;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__form {
  background: #1a1835; border-color: #2a274a;
}
.cwp-search-sidebar__form:focus-within { border-color: #7c3aed; }
.cwp-search-sidebar__input {
  flex:1; border:none; background:transparent;
  padding: 10px 12px; font-size:13px; color: #18163a;
  outline:none; font-family: inherit;
}
[data-cifra-theme="dark"] .cwp-search-sidebar__input { color: #eeeaff; }
.cwp-search-sidebar__input::placeholder { color: #9d9bc0; }
.cwp-search-sidebar__submit {
  width:42px; height:42px; border:none;
  background: #7c3aed; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; transition: background .15s;
}
.cwp-search-sidebar__submit:hover { background: #5b21b6; }

/* Responsivo */
@media (max-width: 860px) {
  .cwp-search-body__inner { grid-template-columns: 1fr; }
  .cwp-search-sidebar { position: static; }
}
@media (max-width: 580px) {
  .cwp-search-hero { padding: 36px 0 28px; }
  .cwp-search-body { padding: 24px 0 60px; }
  .cwp-search-item { padding: 11px 14px; gap: 10px; }
  .cwp-search-item__badges .cwp-search-item__views { display: none; }
}

/* ════════════════════════════════════════════════════════
   RODAPÉ PROFISSIONAL v3 — tons de branco
   ════════════════════════════════════════════════════════ */
.cwp-footer {
  background: #f8f7ff;
  color: #4b4880;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-top: auto;
  border-top: 1px solid #e8e5f5;
}
[data-cifra-theme="dark"] .cwp-footer {
  background: #0f0c24;
  color: rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,.06);
}

/* ── CTA superior ───────────────────────────────────── */
.cwp-footer__cta {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 55%, #2e1f6b 100%);
  padding: 52px 24px;
  position: relative;
  overflow: hidden;
}
.cwp-footer__cta::before {
  content:'';position:absolute;top:-80px;right:-80px;
  width:320px;height:320px;border-radius:50%;
  background:rgba(255,255,255,.05);pointer-events:none;
}
.cwp-footer__cta::after {
  content:'';position:absolute;bottom:-100px;left:5%;
  width:240px;height:240px;border-radius:50%;
  background:rgba(255,255,255,.03);pointer-events:none;
}
.cwp-footer__cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
}
.cwp-footer__cta-title {
  font-size: clamp(22px,3vw,32px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.cwp-footer__cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.cwp-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #5b21b6;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.cwp-footer__cta-btn svg { flex-shrink: 0; }
.cwp-footer__cta-btn:hover {
  background: #f0eaff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  text-decoration: none;
  color: #4c1d95;
}

/* ── Corpo: 4 colunas ───────────────────────────────── */
.cwp-footer__body {
  border-bottom: 1px solid #e8e5f5;
  padding: 56px 24px 48px;
}
[data-cifra-theme="dark"] .cwp-footer__body { border-color: rgba(255,255,255,.06); }

.cwp-footer__body-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

/* ── Coluna Brand ───────────────────────────────────── */
.cwp-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.cwp-footer__logo:hover { text-decoration: none; }
.cwp-footer__logo-img { max-height: 36px; width: auto; }
.cwp-footer__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.25);
  flex-shrink: 0;
}
.cwp-footer__logo-name {
  font-size: 17px; font-weight: 900;
  color: #18163a; letter-spacing: -.02em;
}
[data-cifra-theme="dark"] .cwp-footer__logo-name { color: #fff; }

.cwp-footer__desc {
  font-size: 13px; line-height: 1.65;
  color: #7c7aad;
  margin: 0 0 22px; max-width: 260px;
}
[data-cifra-theme="dark"] .cwp-footer__desc { color: rgba(255,255,255,.38); }

/* Estatísticas */
.cwp-footer__stats {
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid #e8e5f5;
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 280px;
  box-shadow: 0 2px 12px rgba(124,58,237,.06);
}
[data-cifra-theme="dark"] .cwp-footer__stats {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.07);
  box-shadow: none;
}
.cwp-footer__stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; flex: 1;
}
.cwp-footer__stat-num {
  font-size: 20px; font-weight: 900;
  color: #7c3aed; letter-spacing: -.02em; line-height: 1;
}
[data-cifra-theme="dark"] .cwp-footer__stat-num { color: #fff; }

.cwp-footer__stat-label {
  font-size: 10px; font-weight: 700;
  color: #9d9bc0;
  text-transform: uppercase; letter-spacing: .07em;
}
[data-cifra-theme="dark"] .cwp-footer__stat-label { color: rgba(255,255,255,.35); }

.cwp-footer__stat-sep {
  width: 1px; height: 32px;
  background: #e8e5f5; flex-shrink: 0;
}
[data-cifra-theme="dark"] .cwp-footer__stat-sep { background: rgba(255,255,255,.08); }

/* ── Títulos das colunas ────────────────────────────── */
.cwp-footer__col-title {
  font-size: 11px; font-weight: 800;
  color: #18163a;
  text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 18px;
}
[data-cifra-theme="dark"] .cwp-footer__col-title { color: rgba(255,255,255,.5); }

/* ── Links ──────────────────────────────────────────── */
.cwp-footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.cwp-footer__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: #5a5880;
  text-decoration: none;
  transition: color .15s;
}
[data-cifra-theme="dark"] .cwp-footer__links a { color: rgba(255,255,255,.5); }
.cwp-footer__links a:hover { color: #7c3aed; text-decoration: none; }
[data-cifra-theme="dark"] .cwp-footer__links a:hover { color: #fff; }
.cwp-footer__links a svg { opacity: .4; flex-shrink: 0; transition: opacity .15s; }
.cwp-footer__links a:hover svg { opacity: .8; }
.cwp-footer__link-count {
  display: inline-flex; align-items: center;
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  color: #9d9bc0;
  background: #ede9fe;
  padding: 1px 7px; border-radius: 99px;
}
[data-cifra-theme="dark"] .cwp-footer__link-count {
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}

/* Coluna About */
.cwp-footer__about-text {
  font-size: 13px; line-height: 1.7;
  color: #7c7aad; margin: 0 0 18px;
}
[data-cifra-theme="dark"] .cwp-footer__about-text { color: rgba(255,255,255,.35); }

.cwp-footer__features {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.cwp-footer__feature {
  font-size: 11px; font-weight: 600;
  color: #6d5fb3;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 99px; padding: 4px 10px;
}
[data-cifra-theme="dark"] .cwp-footer__feature {
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}

/* ── Rodapé inferior ────────────────────────────────── */
.cwp-footer__bottom {
  padding: 18px 24px;
  background: #f0eeff;
}
[data-cifra-theme="dark"] .cwp-footer__bottom { background: #08061a; }

.cwp-footer__bottom-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cwp-footer__bottom-left {
  font-size: 12px; color: #3d3a6e;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
[data-cifra-theme="dark"] .cwp-footer__bottom-left { color: rgba(255,255,255,.25); }
.cwp-footer__bottom-left strong { color: #18163a; font-weight: 700; }
[data-cifra-theme="dark"] .cwp-footer__bottom-left strong { color: rgba(255,255,255,.4); }
.cwp-footer__bottom-sep { opacity: .4; }
.cwp-footer__bottom-dev { font-size: 11px; color: #4b4880; }
[data-cifra-theme="dark"] .cwp-footer__bottom-dev { color: rgba(255,255,255,.2); }
.cwp-footer__bottom-dev a { color: #7c3aed; text-decoration: none; transition: color .15s; }
.cwp-footer__bottom-dev a:hover { color: #5b21b6; text-decoration: none; }
[data-cifra-theme="dark"] .cwp-footer__bottom-dev a { color: rgba(255,255,255,.35); }

/* Nav menu do rodapé */
.cwp-footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.cwp-footer-nav li a {
  font-size: 12px; font-weight: 500;
  color: #8b87b8; text-decoration: none;
  padding: 4px 8px; border-radius: 6px;
  transition: all .15s;
}
.cwp-footer-nav li a:hover { color: #7c3aed; background: #ede9fe; text-decoration: none; }

/* Toggle dark mode */
.cwp-footer__dark-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid #ddd6fe;
  background: #fff;
  color: #6d5fb3;
  font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.cwp-footer__dark-toggle:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}
[data-cifra-theme="dark"] .cwp-footer__dark-toggle {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
}
[data-cifra-theme="dark"] .cwp-footer__dark-toggle:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
}

/* ── Responsivo ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cwp-footer__body-inner { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .cwp-footer__col--brand { grid-column: 1 / -1; }
  .cwp-footer__stats { max-width: 100%; }
}
@media (max-width: 640px) {
  .cwp-footer__cta { padding: 36px 20px; }
  .cwp-footer__cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cwp-footer__cta-btn {
    align-self: flex-start;
    width: 100%;
    justify-content: center;
  }
  .cwp-footer__body { padding: 40px 20px 36px; }
  .cwp-footer__body-inner { grid-template-columns: 1fr; gap: 32px; }
  .cwp-footer__bottom { padding: 16px 20px; }
  .cwp-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ════════════════════════════════════════════════════════
   PÁGINA DE RESULTADOS DE BUSCA
   ════════════════════════════════════════════════════════ */
.cwp-search-hero {
  background: linear-gradient(135deg, #18163a 0%, #2e1f6b 100%);
  padding: 52px 0 44px;
  color: #fff;
}
.cwp-search-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.cwp-search-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.cwp-search-hero__query {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.cwp-search-hero__count {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ── Body: 2 colunas ────────────────────────────────── */
.cwp-search-body { padding: 36px 0 80px; }
.cwp-search-body__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* ── Lista de resultados ────────────────────────────── */
.cwp-search-list-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.cwp-search-item__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Sem resultados ─────────────────────────────────── */
.cwp-search-empty {
  background: var(--c-card, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 16px;
  padding: 56px 32px;
  text-align: center;
}
.cwp-search-empty__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-surface, #f9fafb);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--c-muted, #6b7280);
}
.cwp-search-empty h2 {
  font-size: 20px; font-weight: 800;
  color: var(--c-text, #18163a); margin: 0 0 8px;
}
.cwp-search-empty p { color: var(--c-muted, #6b7280); font-size: 14px; margin: 0 0 16px; }
.cwp-search-empty__tips {
  text-align: left;
  display: inline-block;
  background: var(--c-surface, #f9fafb);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.cwp-search-empty__tips p { margin: 0 0 6px; font-weight: 600; font-size: 13px; }
.cwp-search-empty__tips ul { margin: 0; padding-left: 18px; }
.cwp-search-empty__tips li { font-size: 13px; color: var(--c-muted, #6b7280); margin-bottom: 4px; }
.cwp-search-empty__btn {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 20px;
  background: #7c3aed; color: #fff;
  border-radius: 99px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.cwp-search-empty__btn:hover { background: #5b21b6; }

/* ── Sidebar ────────────────────────────────────────── */
.cwp-search-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}
.cwp-search-sidebar__card {
  background: var(--c-card, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.cwp-search-sidebar__title {
  padding: 12px 16px;
  font-size: 11px; font-weight: 800;
  color: var(--c-muted, #6b7280);
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  margin: 0;
  background: var(--c-surface, #f9fafb);
}
.cwp-search-sidebar__list { display: flex; flex-direction: column; }
.cwp-search-sidebar__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  text-decoration: none; color: var(--c-text, #18163a);
  border-bottom: 1px solid var(--c-border-lt, #f3f4f6);
  transition: background .12s;
}
.cwp-search-sidebar__item:last-child { border-bottom: none; }
.cwp-search-sidebar__item:hover { background: #f5f3ff; }
.cwp-search-sidebar__item:hover .cwp-search-sidebar__name { color: #7c3aed; }
.cwp-search-sidebar__item > svg { flex-shrink:0; color: var(--c-light, #a1a1b5); }
.cwp-search-sidebar__avatar {
  flex-shrink:0; width:36px; height:36px; border-radius:50%; overflow:hidden;
}
.cwp-search-sidebar__avatar img { width:36px; height:36px; object-fit:cover; }
.cwp-search-sidebar__avatar-fb {
  width:36px; height:36px; border-radius:50%;
  background: #ede9fe; color: #7c3aed;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800;
}
.cwp-search-sidebar__info { flex:1; min-width:0; }
.cwp-search-sidebar__name {
  display:block; font-size:13px; font-weight:600;
  color: var(--c-text,#18163a);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transition: color .12s;
}
.cwp-search-sidebar__count { display:block; font-size:11px; color: var(--c-muted,#6b7280); }

/* Busca na sidebar */
.cwp-search-sidebar__card--search { padding: 0; }
.cwp-search-sidebar__form {
  display:flex; align-items:center;
  margin: 0 14px 14px;
  background: var(--c-surface,#f9fafb);
  border: 1.5px solid var(--c-border,#e5e7eb);
  border-radius: 10px; overflow:hidden;
  transition: border-color .15s;
}
.cwp-search-sidebar__form:focus-within { border-color: #7c3aed; }
.cwp-search-sidebar__input {
  flex:1; border:none; background:transparent;
  padding: 10px 12px; font-size:13px;
  color: var(--c-text,#18163a); outline:none;
  font-family: inherit;
}
.cwp-search-sidebar__input::placeholder { color: var(--c-muted,#6b7280); }
.cwp-search-sidebar__submit {
  width:40px; height:40px; border:none;
  background: #7c3aed; color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; transition: background .15s;
}
.cwp-search-sidebar__submit:hover { background: #5b21b6; }

/* ── Responsivo ─────────────────────────────────────── */
@media (max-width: 860px) {
  .cwp-search-body__inner { grid-template-columns: 1fr; }
  .cwp-search-sidebar { position: static; order: -1; }
  .cwp-search-sidebar { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .cwp-search-sidebar__card { flex: 1; min-width: 220px; }
}
@media (max-width: 580px) {
  .cwp-search-hero { padding: 36px 0 30px; }
  .cwp-search-body { padding: 24px 0 60px; }
  .cwp-search-sidebar { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════
   RODAPÉ PROFISSIONAL v2
   ════════════════════════════════════════════════════════ */
.cwp-footer {
  background: #0f0c24;
  color: rgba(255,255,255,.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-top: auto;
}
[data-cifra-theme="dark"] .cwp-footer { background: #07060f; }

/* ── CTA superior ───────────────────────────────────── */
.cwp-footer__cta {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 55%, #2e1f6b 100%);
  padding: 52px 24px;
  position: relative;
  overflow: hidden;
}
.cwp-footer__cta::before {
  content:'';position:absolute;top:-80px;right:-80px;
  width:320px;height:320px;border-radius:50%;
  background:rgba(255,255,255,.04);pointer-events:none;
}
.cwp-footer__cta::after {
  content:'';position:absolute;bottom:-100px;left:5%;
  width:240px;height:240px;border-radius:50%;
  background:rgba(255,255,255,.03);pointer-events:none;
}
.cwp-footer__cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
}
.cwp-footer__cta-text {}
.cwp-footer__cta-title {
  font-size: clamp(22px,3vw,32px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.cwp-footer__cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.cwp-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #5b21b6;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.cwp-footer__cta-btn svg { flex-shrink: 0; }
.cwp-footer__cta-btn:hover {
  background: #f0eaff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  text-decoration: none;
  color: #4c1d95;
}

/* ── Corpo: 4 colunas ───────────────────────────────── */
.cwp-footer__body {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 56px 24px 48px;
}
.cwp-footer__body-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

/* ── Coluna Brand ───────────────────────────────────── */
.cwp-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.cwp-footer__logo:hover { text-decoration: none; }
.cwp-footer__logo-img {
  max-height: 36px; width: auto;
}
.cwp-footer__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
  flex-shrink: 0;
}
.cwp-footer__logo-name {
  font-size: 17px; font-weight: 900;
  color: #fff; letter-spacing: -.02em;
}
.cwp-footer__desc {
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,.38);
  margin: 0 0 22px; max-width: 260px;
}

/* Estatísticas */
.cwp-footer__stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 280px;
}
.cwp-footer__stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; flex: 1;
}
.cwp-footer__stat-num {
  font-size: 20px; font-weight: 900;
  color: #fff; letter-spacing: -.02em; line-height: 1;
}
.cwp-footer__stat-label {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .07em;
}
.cwp-footer__stat-sep {
  width: 1px; height: 32px;
  background: rgba(255,255,255,.08); flex-shrink: 0;
}

/* ── Colunas de links ───────────────────────────────── */
.cwp-footer__col-title {
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 18px;
}
.cwp-footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.cwp-footer__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.cwp-footer__links a:hover { color: #fff; text-decoration: none; }
.cwp-footer__links a svg { opacity: .45; flex-shrink: 0; transition: opacity .15s; }
.cwp-footer__links a:hover svg { opacity: .8; }
.cwp-footer__link-count {
  display: inline-flex; align-items: center;
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
  padding: 1px 7px; border-radius: 99px;
}

/* Coluna About */
.cwp-footer__about-text {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,.35); margin: 0 0 18px;
}
.cwp-footer__features {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.cwp-footer__feature {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 99px; padding: 4px 10px;
}

/* ── Rodapé inferior ────────────────────────────────── */
.cwp-footer__bottom {
  padding: 18px 24px;
  background: #ede9fe !important;
  border-top: 1px solid #ddd6fe !important;
}
.cwp-footer__bottom-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cwp-footer__bottom-left {
  font-size: 12px; color: #3730a3 !important;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cwp-footer__bottom-left strong { color: #1e1b4b !important; font-weight: 700; }
.cwp-footer__bottom-sep { opacity: .5; }
.cwp-footer__bottom-dev { font-size: 11px; color: #4338ca !important; }
.cwp-footer__bottom-dev a { color: #7c3aed !important; text-decoration: none; transition: color .15s; }
.cwp-footer__bottom-dev a:hover { color: #5b21b6 !important; }

[data-cifra-theme="dark"] .cwp-footer__bottom { background: #08061a !important; border-top-color: rgba(255,255,255,.05) !important; }
[data-cifra-theme="dark"] .cwp-footer__bottom-left { color: rgba(255,255,255,.3) !important; }
[data-cifra-theme="dark"] .cwp-footer__bottom-left strong { color: rgba(255,255,255,.5) !important; }
[data-cifra-theme="dark"] .cwp-footer__bottom-dev { color: rgba(255,255,255,.2) !important; }
[data-cifra-theme="dark"] .cwp-footer__bottom-dev a { color: rgba(255,255,255,.35) !important; }
[data-cifra-theme="dark"] .cwp-footer__bottom-dev a:hover { color: rgba(255,255,255,.7) !important; }

/* Nav menu do rodapé */
.cwp-footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.cwp-footer-nav li a {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  padding: 4px 8px; border-radius: 6px;
  transition: all .15s;
}
.cwp-footer-nav li a:hover {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  text-decoration: none;
}

/* Toggle dark mode */
.cwp-footer__dark-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.4);
  font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.cwp-footer__dark-toggle:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.18);
}

/* ── Responsivo ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cwp-footer__body-inner { grid-template-columns: 1fr 1fr; gap: 36px 48px; }
  .cwp-footer__col--brand { grid-column: 1 / -1; }
  .cwp-footer__stats { max-width: 100%; }
}
@media (max-width: 640px) {
  .cwp-footer__cta { padding: 36px 20px; }
  .cwp-footer__cta-inner { flex-direction: column; }
  .cwp-footer__body { padding: 40px 20px 36px; }
  .cwp-footer__body-inner { grid-template-columns: 1fr; gap: 32px; }
  .cwp-footer__bottom { padding: 16px 20px; }
  .cwp-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Skip link (acessibilidade) ─────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999999;
  padding: 8px 16px;
  background: #7c3aed;
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Páginas e Posts comuns ─────────────────────────── */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid #e4e2f0;
  margin-bottom: 40px;
}
[data-cifra-theme="dark"] .page-header { border-color: #2a274a; }

.page-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: #18163a;
  letter-spacing: -.02em;
  margin: 0;
}
[data-cifra-theme="dark"] .page-title { color: #eeeaff; }

/* ── 404 ────────────────────────────────────────────── */
.error404-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 16px;
}
.error404-wrap h1 {
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 900;
  color: #7c3aed;
  line-height: 1;
  margin: 0;
}
.error404-wrap h2 { font-size: 24px; font-weight: 700; margin: 0; }
.error404-wrap p { color: #6b7280; max-width: 400px; }
.error404-wrap a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  background: #7c3aed;
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
}
.error404-wrap a:hover { background: #5b21b6; }

/* ── Responsivo ─────────────────────────────────────── */
@media (max-width: 768px) {
  .site-content { padding: 24px 16px; }
  #colophon { padding: 36px 16px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
