/* ============================================================
   main.css — Design System Global — luizsobral.com.br
   ============================================================ */

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --cor-primaria: #0d1117;
  --cor-fundo:    #f5f2eb;
  --cor-acento:   #e8410a;
  --cor-acento2:  #1a56ff;
  --tag-hw:       #0a8a4a;
  --tag-curso:    #9c2fc4;
  --tag-ia:       #e8a200;
  --tag-seg:      #cc0000;
  --cor-borda:    #d8d3ca;
  --cor-muted:    #6b6660;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max-w:  980px;
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 3rem;
  --radius: 5px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cor-fundo);
  color: var(--cor-primaria);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cor-acento2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--cor-primaria);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.5px;
}
.navbar__logo span { color: var(--cor-acento); }
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.navbar__links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.navbar__links a:hover,
.navbar__links a.ativo { color: #fff; }
.navbar__links a.ativo { border-bottom: 2px solid var(--cor-acento); padding-bottom: 2px; }

/* Hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.navbar__burger.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.aberto span:nth-child(2) { opacity: 0; }
.navbar__burger.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.navbar__mobile {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--cor-primaria);
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
}
.navbar__mobile.visivel { display: flex; }
.navbar__mobile a {
  color: rgba(255,255,255,.85);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 1rem;
}
.navbar__mobile a:hover { color: #fff; }

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--cor-primaria);
  color: rgba(255,255,255,.65);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand .logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: .75rem;
}
.footer__brand .logo span { color: var(--cor-acento); }
.footer__brand p { font-size: .88rem; line-height: 1.65; }

.footer__col h4 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; }
.footer__col ul li { margin-bottom: .55rem; }
.footer__col ul li a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}
.footer__col ul li a:hover { color: #fff; }

.footer__social { display: flex; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.footer__social a:hover { border-color: var(--cor-acento); color: var(--cor-acento); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cor-acento);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover {
  background: #c7360a;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--cor-primaria);
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--cor-primaria);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-secondary:hover {
  background: var(--cor-primaria);
  color: #fff;
  text-decoration: none;
}
button:disabled, .btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── TAGS / PILLS ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}
.tag-programacao-dev  { background: #e8f0ff; color: var(--cor-acento2); }
.tag-hardware         { background: #e6f6ee; color: var(--tag-hw); }
.tag-cursos           { background: #f5e8ff; color: var(--tag-curso); }
.tag-ia               { background: #fff5d6; color: #805900; }
.tag-sistemas-operacionais { background: #e6f6f6; color: #0a7a7a; }
.tag-seguranca-digital { background: #ffe8e8; color: var(--tag-seg); }
.tag-reviews          { background: #f0f0f0; color: #444; }
.tag-hospedagem-cloud { background: #e8f0ff; color: var(--cor-acento2); }

/* ── STORE BADGES ───────────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--cor-muted);
  font-family: var(--font-mono);
}

/* ── SKELETON (loading state) ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e8e3da 25%, #f0ece3 50%, #e8e3da 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOAST ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  pointer-events: all;
  cursor: pointer;
  animation: toast-in .25s ease;
  max-width: 340px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.toast--success { background: var(--tag-hw); }
.toast--error   { background: var(--tag-seg); }
.toast--info    { background: var(--cor-primaria); }
@keyframes toast-in { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .75rem; }
.modal p  { color: var(--cor-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.modal__actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ── NEWSLETTER FORM ─────────────────────────────────────────── */
.newsletter-section {
  background: var(--cor-primaria);
  padding: 3rem 1.5rem;
  text-align: center;
}
.newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}
.newsletter-section p {
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: 2px solid var(--cor-acento); }
.newsletter-msg { color: #fff; font-size: .9rem; margin-top: .75rem; min-height: 1.4rem; }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ── SECTION TITLES ──────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cor-acento);
  margin-bottom: .35rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── UTILITY ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-muted { color: var(--cor-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-md { margin-bottom: var(--gap-md); }
