/* Blog Pede Moto — voz visual da marca (roxo/lilas, Inter).
   Este arquivo e a "article-ui": todo artigo herda daqui, o gerador so emite o
   vocabulario de classes definido aqui. */

:root {
  --roxo: #8300C4;
  --roxo-claro: #AA44FF;
  --roxo-suave: #CC88FF;
  --escuro: #2A0044;
  --escuro-2: #1A0030;
  --lilas: #F6EEFF;
  --laranja: #FF6A00;
  --tinta: #241033;
  --cinza: #6b5b78;
  --linha: #ece3f5;
  --branco: #ffffff;
  --radius: 18px;
  --maxw: 720px;
  --sombra: 0 10px 30px rgba(42, 0, 68, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--tinta);
  background: var(--lilas);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--roxo); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--escuro); }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--roxo), var(--roxo-claro));
  color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 4px 12px rgba(131,0,196,.35);
}
.brand-name { font-weight: 800; font-size: 18px; }
.brand-name em { color: var(--roxo); font-style: normal; font-weight: 700; }

/* ---------- Botoes ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 11px 20px; border-radius: 999px; font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
  background: linear-gradient(135deg, var(--roxo), var(--roxo-claro));
  color: #fff; box-shadow: 0 8px 20px rgba(131,0,196,.35);
}
.btn-ghost { background: #fff; color: var(--roxo); border: 1.5px solid var(--roxo-suave); }

/* ---------- Home / listagem ---------- */
.home, .article { max-width: 1040px; margin: 0 auto; padding: 34px 22px 10px; }
.hero { text-align: center; padding: 30px 0 26px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; margin: 0 0 10px; color: var(--escuro); }
.hero p { font-size: 18px; color: var(--cinza); margin: 0; }

.card-grid { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card a {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--linha); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card a:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,0,68,.16); }
.card-cat, .rel-cat, .cat {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--roxo);
  background: var(--lilas); padding: 4px 10px; border-radius: 999px;
}
.card h2 { font-size: 20px; font-weight: 800; margin: 14px 0 8px; color: var(--escuro); line-height: 1.3; }
.card p { margin: 0 0 16px; color: var(--cinza); font-size: 15px; flex: 1; }
.card-meta { font-size: 13px; color: var(--cinza); font-weight: 600; }
.empty { text-align: center; color: var(--cinza); padding: 60px 0; }

/* ---------- Artigo ---------- */
.article { max-width: var(--maxw); }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--cinza); font-weight: 600; margin-bottom: 14px; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; line-height: 1.2;
  color: var(--escuro); margin: 6px 0 14px; }
.lede { font-size: 19px; color: var(--cinza); margin: 0 0 26px; line-height: 1.6; }

.article-body { font-size: 17.5px; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-size: 26px; font-weight: 800; color: var(--escuro);
  margin: 40px 0 14px; scroll-margin-top: 80px; position: relative; }
.article-body h3 { font-size: 20px; font-weight: 700; color: var(--escuro); margin: 28px 0 10px; }
.article-body h2 .anchor {
  position: absolute; left: -22px; color: var(--roxo-suave); text-decoration: none;
  opacity: 0; transition: opacity .1s; font-weight: 700;
}
.article-body h2:hover .anchor { opacity: 1; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin: 0 0 8px; }
.article-body ol { counter-reset: item; list-style: none; padding-left: 0; }
.article-body ol > li { counter-increment: item; position: relative; padding-left: 44px; margin-bottom: 12px; }
.article-body ol > li::before {
  content: counter(item); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--roxo), var(--roxo-claro)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.article-body strong { color: var(--escuro); }
.article-body code {
  background: #f2eaff; color: var(--roxo);
  padding: 2px 7px; border-radius: 6px; font-size: .9em;
}
.article-body a { text-decoration: underline; text-underline-offset: 3px; }

blockquote {
  margin: 26px 0; padding: 6px 22px; border-left: 4px solid var(--roxo-claro);
  background: #fff; border-radius: 0 12px 12px 0; color: var(--escuro); font-style: italic;
}
blockquote p { margin: 12px 0; }

.callout {
  margin: 26px 0; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--roxo-suave); box-shadow: var(--sombra);
}
.callout::before {
  content: attr(data-label); display: block; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--roxo); margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

.byline { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--linha);
  font-size: 14px; color: var(--cinza); font-weight: 600; }

/* ---------- Relacionados ---------- */
.related { max-width: var(--maxw); margin: 40px auto 0; }
.related h2 { font-size: 22px; font-weight: 800; color: var(--escuro); margin: 0 0 16px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related a { display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 16px 18px;
  color: inherit; transition: border-color .12s; }
.related a:hover { border-color: var(--roxo-suave); }
.rel-title { font-weight: 700; color: var(--escuro); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 50px; }
.foot-cta {
  max-width: 900px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, var(--escuro), var(--escuro-2));
  color: #fff; border-radius: 26px; padding: 44px 26px; box-shadow: var(--sombra);
}
.foot-cta h2 { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.foot-cta p { color: #d8c6ec; margin: 0 auto 22px; max-width: 480px; }
.foot-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  padding: 26px 0 6px; }
.foot-links a { color: var(--roxo); font-weight: 600; text-decoration: none; }
.foot-copy { text-align: center; color: var(--cinza); font-size: 13px; padding: 8px 0 30px; }

/* ---------- Responsivo ---------- */
@media (max-width: 560px) {
  .brand-name { font-size: 16px; }
  .btn { padding: 9px 15px; font-size: 14px; }
  .article-body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .card a:hover { transform: none; }
}
