/* ============================================================
   NETSTUDY BLOG — estilos compartilhados
   Reaproveita os tokens visuais da landing page.
   ============================================================ */
:root {
  --orange:       #E8441A;
  --orange-light: #ff6b3d;
  --orange-dark:  #c23415;
  --orange-glow:  rgba(232, 68, 26, 0.25);
  --dark:         #1a1a2e;
  --darker:       #0d0d1a;
  --gray:         #666666;
  --text:         #2d2d2d;
  --text-light:   #555;
  --white:        #ffffff;
  --off-white:    #f7f8fa;
  --border:       #e4e4e8;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 36px rgba(0,0,0,0.12);
  --shadow-orange: 0 8px 32px rgba(232,68,26,0.32);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1160px;
  --read-w: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read-w); margin: 0 auto; padding: 0 24px; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.055em; text-transform: uppercase;
  padding: 17px 38px; border-radius: 50px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: var(--white); box-shadow: var(--shadow-orange); }
.btn-orange:hover { box-shadow: 0 14px 42px rgba(232,68,26,0.48); }

/* ── Header (igual à landing) ── */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s var(--ease);
}
#hdr.raised { box-shadow: 0 4px 32px rgba(0,0,0,0.45); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; max-width: 240px; display: block; }
.logo-img-footer { height: 44px; max-width: 200px; }
.nav { display: flex; list-style: none; gap: 4px; }
.nav a { font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.62); padding: 7px 13px; border-radius: 7px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,0.07); }
.hdr-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 30px; box-shadow: 0 3px 14px rgba(232,68,26,0.3);
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.hdr-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(232,68,26,0.45); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; flex-shrink: 0; }
.burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; }
.mnav {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: rgba(10,10,22,0.97); backdrop-filter: blur(18px);
  padding: 16px 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 899; flex-direction: column; gap: 2px;
}
.mnav.open { display: flex; }
.mnav a { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.65); padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mnav .btn { margin-top: 18px; }

/* ── Hero do artigo / do blog ── */
.post-hero {
  background: var(--darker); color: var(--white);
  padding: 120px 0 56px; position: relative; overflow: hidden;
}
.post-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(232,68,26,0.18), transparent 70%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.post-hero > .read, .post-hero > .wrap { position: relative; }
.crumbs { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--orange-light); border: 1.5px solid rgba(232,68,26,0.45);
  padding: 5px 14px; border-radius: 30px; margin-bottom: 18px;
}
.post-title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 18px; }
.post-title em { color: var(--orange); font-style: normal; }
.post-lead { font-size: 1.12rem; color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 640px; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 0.85rem; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.post-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); }
.post-meta strong { color: #fff; font-weight: 700; display: block; }

/* ── Corpo do artigo ── */
.post-body { padding: 56px 24px 40px; font-size: 1.08rem; line-height: 1.82; color: var(--text); }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 { font-size: 1.65rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; color: var(--dark); margin-top: 2.2em; }
.post-body h3 { font-size: 1.22rem; font-weight: 800; color: var(--dark); margin-top: 1.8em; }
.post-body p strong { color: var(--dark); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.45em; }
.post-body a:not(.btn) { color: var(--orange-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:not(.btn):hover { color: var(--orange); }
.post-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--off-white); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; color: var(--dark); }
.post-body pre { background: var(--darker); color: #e6e6f0; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.65; padding: 20px 22px; border-radius: var(--radius-sm); overflow-x: auto; }
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.post-body blockquote { border-left: 3px solid var(--orange); padding: 6px 0 6px 20px; color: var(--text-light); font-style: italic; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-body th, .post-body td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.post-body th { background: var(--off-white); font-weight: 800; color: var(--dark); }
.post-body td code { white-space: nowrap; }
.note { background: var(--off-white); border: 1px solid var(--border); border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.98rem; }
.note strong { color: var(--dark); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--darker); box-shadow: var(--shadow-md); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── CTA dentro do artigo ── */
.cta-box {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  color: var(--white); border-radius: var(--radius); padding: 34px 32px;
  margin: 2.4em 0; position: relative; overflow: hidden;
  border: 1px solid rgba(232,68,26,0.3);
}
.cta-box::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(232,68,26,0.35), transparent 70%); pointer-events: none; }
.cta-box .tag { margin-bottom: 12px; }
.cta-box h3 { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.cta-box p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.65; margin: 0 0 20px; max-width: 520px; }
.cta-box .btn { font-size: 0.85rem; padding: 14px 30px; }
.cta-box small { display: block; margin-top: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── Autor / relacionados ── */
.author-box { display: flex; gap: 18px; align-items: center; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 3em; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box strong { display: block; color: var(--dark); font-size: 1.02rem; }
.author-box p { font-size: 0.93rem; color: var(--text-light); line-height: 1.6; margin-top: 4px; }

.related { background: var(--off-white); padding: 64px 0; border-top: 1px solid var(--border); }
.related h2, .list-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; color: var(--dark); margin-bottom: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .tag { margin-bottom: 4px; font-size: 0.66rem; align-self: flex-start; }
.card h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--dark); }
.card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.card span { font-size: 0.8rem; color: var(--gray); }
.card-link { font-weight: 700; color: var(--orange-dark); font-size: 0.9rem; }

/* ── Listagem do blog ── */
.list-section { padding: 64px 0 80px; }

/* ── Footer ── */
#footer { background: var(--darker); padding: 44px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-info { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.8; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-decoration: underline; }
.foot-links a:hover { color: rgba(255,255,255,0.72); }

@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr-btn { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1.02rem; }
  .cta-box { padding: 26px 22px; }
  .author-box { flex-direction: column; text-align: center; }
  .foot-inner { flex-direction: column; text-align: center; }
  .post-body table { display: block; overflow-x: auto; }
}

/* Cupom do site (/js/cupom.js): estados com e sem cupom */
[hidden] { display: none !important; }
/* Cupom: estado decidido antes da 1ª pintura por /js/cupom-estado.js (classe no <html>) — sem salto de layout */
html:not(.cupom-abap) [data-so-cupom="abap"], html.cupom-abap [data-sem-cupom="abap"],
html:not(.cupom-smartforms) [data-so-cupom="smartforms"], html.cupom-smartforms [data-sem-cupom="smartforms"] { display: none !important; }
