/* ============================================================
   LUTTEC DIGITAL — blog.css
   Blog / Notícias: lang-bar, listagem, post, admin
   Importar junto com styles.css (usa as variáveis do site)
   ============================================================ */

/* ── VARIÁVEIS LOCAIS ────────────────────────────────────── */
:root {
  --blog-lang-bar-h: 36px;
  --blog-radius:     10px;
  --blog-shadow:     0 4px 24px rgba(0,0,0,.35);
  --blog-border:     rgba(255,255,255,.08);
  --blog-surface:    #111827;
  --blog-surface-2:  #1a2236;
  --blog-text-muted: #94a3b8;
  --blog-blue:       #2563eb;
  --blog-blue-light: #60a5fa;
  --blog-transition: .22s ease;
}

/* ── LANG BAR ─────────────────────────────────────────────── */
.blog-lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--blog-lang-bar-h);
  background: #0a0e27;
  border-bottom: 1px solid rgba(37,99,235,.25);
  display: flex; align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}
.blog-lang-selector { display: flex; align-items: center; gap: 4px; }
.blog-lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border: 1px solid transparent; border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: .71rem; font-weight: 600; letter-spacing: .05em;
  cursor: pointer; transition: var(--blog-transition);
  font-family: var(--font-body, 'Inter', sans-serif);
}
.blog-lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.blog-lang-btn.active { color: #fff; border-color: rgba(96,165,250,.55); background: rgba(37,99,235,.2); }
.blog-lang-btn img { display: block; border-radius: 2px; }

/* Blog pages: offset header and body below lang-bar */
.blog-page body,
.blog-page .header { top: var(--blog-lang-bar-h); }
.blog-page .header { top: var(--blog-lang-bar-h) !important; }
.blog-page { padding-top: calc(var(--blog-lang-bar-h) + var(--header-height, 70px)); }

/* ── SEÇÃO #blog NO INDEX.HTML ────────────────────────────── */
#blog {
  background: var(--color-bg-dark, #0a0e27);
  padding: 80px 0;
}
#blog .section-header { text-align: center; margin-bottom: 48px; }
#blog .section-title { color: #fff; }
#blog .section-subtitle { color: var(--blog-text-muted); }

.blog-destaques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.blog-mini-card {
  background: var(--blog-surface-2);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  overflow: hidden;
  transition: transform var(--blog-transition), box-shadow var(--blog-transition);
  text-decoration: none; color: inherit; display: block;
}
.blog-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-shadow);
}
.blog-mini-card__img {
  width: 100%; height: 160px; overflow: hidden;
  background: #1e293b;
}
.blog-mini-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.blog-mini-card:hover .blog-mini-card__img img { transform: scale(1.04); }
.blog-mini-card__body { padding: 20px; }
.blog-mini-card__meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.blog-mini-card__titulo {
  font-size: 1rem; font-weight: 600;
  color: #f1f5f9; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-mini-card__data {
  font-size: .75rem; color: var(--blog-text-muted);
  margin-top: 8px;
}
.blog-destaques-cta { text-align: center; }
.blog-destaques-cta .btn--outline {
  border-color: rgba(96,165,250,.4); color: var(--blog-blue-light);
}
.blog-destaques-cta .btn--outline:hover {
  border-color: var(--blog-blue-light); background: rgba(37,99,235,.15);
}

/* ── BADGES DE TIPO ───────────────────────────────────────── */
.tipo-badge {
  display: inline-block;
  padding: 2px 10px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.tipo-badge--noticia   { background: rgba(37,99,235,.2);  color: #60a5fa; }
.tipo-badge--blog      { background: rgba(16,185,129,.18); color: #34d399; }
.tipo-badge--curiosidade { background: rgba(139,92,246,.2); color: #a78bfa; }
.tipo-badge--post      { background: rgba(107,114,128,.2); color: #9ca3af; }

/* ── PÁGINA NOTICIAS.HTML ─────────────────────────────────── */
.noticias-page-wrapper {
  background: var(--color-bg-dark, #0a0e27);
  min-height: 100vh;
}
/* lang-bar offset for blog listing page */
.noticias-page-wrapper .header {
  top: var(--blog-lang-bar-h) !important;
}

/* Page hero */
.noticias-page-hero {
  background: linear-gradient(135deg, #0a0e27 0%, #1e3a8a 100%);
  padding: 120px 0 72px;
  text-align: center;
  border-bottom: 1px solid rgba(37,99,235,.25);
}
.noticias-page-hero__badge {
  display: inline-block; padding: 4px 14px;
  background: rgba(37,99,235,.2); color: var(--blog-blue-light);
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 20px; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.noticias-page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: #fff; margin-bottom: 14px; line-height: 1.15;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}
.noticias-page-hero__subtitle {
  font-size: 1.1rem; color: var(--blog-text-muted);
  max-width: 600px; margin: 0 auto;
}

/* Filtros */
.noticias-filtros {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 40px 0 32px;
}
.filtro-btn {
  padding: 7px 18px; border-radius: 20px;
  border: 1px solid var(--blog-border);
  background: transparent; color: var(--blog-text-muted);
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--blog-transition);
  font-family: var(--font-body, 'Inter', sans-serif);
}
.filtro-btn:hover { border-color: var(--blog-blue); color: var(--blog-blue-light); }
.filtro-btn.active { background: var(--blog-blue); border-color: var(--blog-blue); color: #fff; }

/* Grid de cards */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 200px;
}
.noticia-card {
  background: var(--blog-surface-2);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius);
  overflow: hidden;
  transition: transform var(--blog-transition), box-shadow var(--blog-transition);
  cursor: pointer;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--blog-shadow);
  border-color: rgba(37,99,235,.4);
}
.noticia-card__img {
  width: 100%; height: 180px; overflow: hidden;
  background: #1e293b; flex-shrink: 0;
}
.noticia-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.noticia-card:hover .noticia-card__img img { transform: scale(1.04); }
.noticia-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #475569; font-size: .8rem;
}
.noticia-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.noticia-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.noticia-card__data { font-size: .73rem; color: var(--blog-text-muted); }
.noticia-card__titulo {
  font-size: 1rem; font-weight: 600; color: #f1f5f9;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.noticia-card__excerpt {
  font-size: .83rem; color: var(--blog-text-muted);
  margin-top: 8px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.noticia-card__footer {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--blog-border);
}
.noticia-card__link {
  font-size: .82rem; font-weight: 600; color: var(--blog-blue-light);
  transition: color var(--blog-transition);
}
.noticia-card__link:hover { color: #93c5fd; }

/* Loading e vazio */
.noticias-loading, .noticias-vazio {
  grid-column: 1/-1;
  text-align: center; padding: 60px 24px;
  color: var(--blog-text-muted); font-size: .95rem;
}

/* Skeleton */
.skeleton-card {
  background: var(--blog-surface-2);
  border: 1px solid var(--blog-border);
  border-radius: var(--blog-radius); overflow: hidden;
}
.skeleton-img { height: 180px; background: #1e293b; }
.skeleton-body { padding: 20px; }
.skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #1e293b 25%, #263045 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite; margin-bottom: 10px;
}
.skeleton-line--short { width: 55%; }
.skeleton-line--medium { width: 80%; }
.skeleton-line--full { width: 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Paginação */
.noticias-paginacao {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 48px 0 32px; flex-wrap: wrap;
}
.pag-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--blog-border);
  background: transparent; color: var(--blog-text-muted);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: var(--blog-transition);
  font-family: var(--font-body, 'Inter', sans-serif);
}
.pag-btn:hover:not(:disabled) { border-color: var(--blog-blue); color: var(--blog-blue-light); }
.pag-btn.active { background: var(--blog-blue); border-color: var(--blog-blue); color: #fff; }
.pag-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── PÁGINA POST.HTML ─────────────────────────────────────── */
.post-page {
  background: var(--color-bg-dark, #0a0e27);
  min-height: 100vh;
}
.post-page .header { top: var(--blog-lang-bar-h) !important; }
.post-page-main {
  max-width: 840px; margin: 0 auto;
  padding: 120px 24px 80px;
}
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--blog-text-muted);
  margin-bottom: 32px; flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--blog-blue-light); transition: color var(--blog-transition); }
.post-breadcrumb a:hover { color: #93c5fd; }
.post-breadcrumb__sep { opacity: .4; }

.post-header { margin-bottom: 32px; }
.post-header__meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.post-header__data { font-size: .8rem; color: var(--blog-text-muted); }
.post-header__titulo {
  font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 16px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}
.post-header__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.post-header__tag {
  padding: 3px 10px; background: rgba(37,99,235,.15);
  color: var(--blog-blue-light); border-radius: 20px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}

.post-thumbnail {
  width: 100%; max-height: 400px; border-radius: var(--blog-radius);
  overflow: hidden; margin-bottom: 0;
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.post-foto-credito {
  font-size: .75rem; color: var(--blog-text-muted);
  margin: 6px 0 34px; line-height: 1.5; min-height: 0;
}
.post-foto-credito a { color: var(--blog-blue-light); text-decoration: none; }
.post-foto-credito a:hover { text-decoration: underline; }

.post-content {
  color: #cbd5e1; line-height: 1.75; font-size: 1rem;
}
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5 {
  color: #f1f5f9; margin: 1.5em 0 .6em;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}
.post-content p { margin-bottom: 1.25em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.post-content li { margin-bottom: .4em; }
.post-content a { color: var(--blog-blue-light); text-decoration: underline; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 1em 0; }
.post-content blockquote {
  border-left: 3px solid var(--blog-blue);
  padding: 12px 20px; margin: 1.5em 0;
  background: rgba(37,99,235,.08); border-radius: 0 8px 8px 0;
  color: #94a3b8; font-style: italic;
}
.post-content code {
  background: rgba(255,255,255,.07); padding: 2px 6px;
  border-radius: 4px; font-size: .88em;
}
.post-content pre {
  background: #0f172a; padding: 16px; border-radius: 8px;
  overflow-x: auto; margin: 1.5em 0;
}

/* Post share */
.post-share {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--blog-border);
}
.post-share__title {
  font-size: .85rem; font-weight: 700; color: var(--blog-text-muted);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
}
.post-share__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 8px; border: none;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: var(--blog-transition); text-decoration: none;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.share-btn--linkedin { background: #0A66C2; color: #fff; }
.share-btn--linkedin:hover { background: #0d79e2; }
.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--whatsapp:hover { background: #20bd5a; }
.share-btn--copy { background: var(--blog-surface-2); color: var(--blog-blue-light); border: 1px solid var(--blog-border); }
.share-btn--copy:hover { border-color: var(--blog-blue); }

.post-not-found {
  text-align: center; padding: 80px 24px;
  color: var(--blog-text-muted);
}
.post-not-found h2 { color: #f1f5f9; margin-bottom: 12px; }

/* ── SECÇÃO NOTÍCIAS DESTAQUE — LAYOUT JORNAL ────────────── */
#noticias-destaque {
  background: var(--color-bg-light, #f8f9fc);
  padding: 80px 0;
}
#noticias-destaque .section-header { text-align: center; margin-bottom: 48px; }

.nd-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 40px;
}

/* ── Hero card (coluna esquerda) */
.nd-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  background: #e2e8f0;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.nd-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.nd-hero:hover .nd-hero__img { transform: scale(1.03); }
.nd-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 50%, transparent 72%);
}
.nd-hero__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
}
.nd-hero__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 1;
}
.nd-hero__tag {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-blue-primary, #2563eb);
  color: #fff;
  margin-bottom: 10px;
}
.nd-hero__titulo {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700; color: #fff; line-height: 1.3;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Sidebar (coluna direita) */
.nd-sidebar {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nd-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: inherit;
  transition: background .18s ease;
}
.nd-item:last-child { border-bottom: none; }
.nd-item:hover { background: #f8f9fc; }
.nd-thumb {
  width: 88px; height: 72px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  background: #e2e8f0;
}
.nd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nd-thumb__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
}
.nd-item__body { flex: 1; min-width: 0; }
.nd-item__tag {
  display: inline-block;
  padding: 2px 8px; border-radius: 20px;
  font-size: .63rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 6px;
}
.nd-item__titulo {
  font-size: .875rem; font-weight: 600; color: #1e293b;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── CTA abaixo do grid */
.nd-cta { text-align: center; }
.nd-cta .btn--outline {
  border-color: rgba(37,99,235,.35);
  color: var(--color-blue-primary, #2563eb);
}
.nd-cta .btn--outline:hover {
  border-color: var(--color-blue-primary, #2563eb);
  background: rgba(37,99,235,.07);
}

/* ── ADMIN ESTILOS ────────────────────────────────────────── */
.admin-page {
  background: #0b1527;
  min-height: 100vh;
  font-family: var(--font-body, 'Inter', sans-serif);
  color: #e2e8f0;
}

/* Login */
.admin-login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0b1527; padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 400px;
  background: #1a2540;
  border: 1px solid rgba(255,255,255,.07);
  border-top: 2px solid #2563eb;
  border-radius: 14px; padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.admin-login-card .login-logo-centered {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: inherit; margin-bottom: 12px;
}
.admin-login-card .login-logo__icon {
  width: 250px; height: 250px;
  background: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.admin-login-card .login-brand {
  font-size: 1.05rem; font-weight: 700; color: #f1f5f9;
  text-align: center; margin: 0 0 4px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  letter-spacing: .01em;
}
.admin-login-card h1 {
  font-size: .9rem; font-weight: 500; color: #64748b;
  margin: 0 0 28px; text-align: center;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  text-transform: uppercase; letter-spacing: .1em;
}
.admin-form-group { margin-bottom: 18px; }
.admin-form-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: #94a3b8; margin-bottom: 6px;
}
.admin-form-input {
  width: 100%; padding: 10px 14px; box-sizing: border-box;
  background: #0d1a2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; color: #e2e8f0; font-size: .92rem;
  font-family: inherit; outline: none;
  transition: border-color var(--blog-transition), box-shadow var(--blog-transition);
}
.admin-form-input:focus { border-color: var(--blog-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.admin-form-input::placeholder { color: #3d5170; }
.admin-input-pw { position: relative; display: block; width: 100%; box-sizing: border-box; }
.admin-input-pw .admin-form-input { padding-right: 44px; width: 100%; box-sizing: border-box; }
.admin-btn-eye {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: #64748b; cursor: pointer; padding: 0;
}
.admin-login-error {
  color: #f87171; font-size: .8rem; margin-bottom: 14px; min-height: 16px;
}
.admin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 7px; border: none;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: var(--blog-transition);
  font-family: inherit;
}
.admin-btn--primary { background: var(--blog-blue); color: #fff; }
.admin-btn--primary:hover { background: #1d4ed8; }
.admin-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.12); color: #94a3b8; }
.admin-btn--ghost:hover { border-color: rgba(255,255,255,.25); color: #e2e8f0; }
.admin-btn--danger { background: #dc2626; color: #fff; }
.admin-btn--danger:hover { background: #b91c1c; }
.admin-btn--sm { padding: 7px 14px; font-size: .8rem; }
.admin-btn--full { width: 100%; justify-content: center; }
.admin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Admin layout */
.admin-layout { display: none; }
.admin-layout.visible { display: block; }
.admin-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: #1a2540; border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.admin-header .logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.admin-header .logo__icon {
  width: 44px; height: 44px; background: none;
  border-radius: 0; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-header .logo__text strong { display: block; font-size: .95rem; color: #f1f5f9; font-weight: 700; }
.admin-header .logo__text span { font-size: .73rem; color: #64748b; }
.admin-header-right { display: flex; align-items: center; gap: 12px; }
.admin-header__back {
  font-size: .78rem; color: var(--blog-text-muted);
  text-decoration: none; transition: color var(--blog-transition);
}
.admin-header__back:hover { color: var(--blog-blue-light); }
.admin-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.admin-subtoolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.admin-subtoolbar h2 {
  font-size: 1.15rem; font-weight: 700; color: #f1f5f9;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

/* Table */
.admin-table-wrap { overflow-x: auto; }
.admin-loading { padding: 40px 0; text-align: center; color: var(--blog-text-muted); }
.admin-vazio { padding: 40px 0; text-align: center; color: var(--blog-text-muted); }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.admin-table th {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--blog-border);
  font-size: .75rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em;
}
.admin-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table__thumb { width: 52px; height: 36px; border-radius: 5px; object-fit: cover; }
.admin-estado-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: .7rem; font-weight: 700;
}
.admin-estado-badge--ativo { background: rgba(16,185,129,.18); color: #34d399; }
.admin-estado-badge--rascunho { background: rgba(107,114,128,.18); color: #9ca3af; }

/* Panel */
.admin-panel {
  display: none; margin-top: 32px;
  background: #152038;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 28px 24px;
}
.admin-panel.active { display: block; }
.admin-panel__title {
  font-size: 1.05rem; font-weight: 700; color: #f1f5f9;
  margin-bottom: 24px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}
.admin-panel__actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--blog-border);
}
.admin-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.admin-form-select {
  width: 100%; padding: 10px 14px; box-sizing: border-box;
  background: #0d1a2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; color: #e2e8f0; font-size: .92rem;
  font-family: inherit; outline: none;
  transition: border-color var(--blog-transition), box-shadow var(--blog-transition); cursor: pointer;
}
.admin-form-select:focus { border-color: var(--blog-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.admin-form-textarea {
  width: 100%; padding: 10px 14px; box-sizing: border-box;
  background: #0d1a2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px; color: #e2e8f0; font-size: .92rem;
  font-family: inherit; outline: none; resize: vertical; min-height: 80px;
  transition: border-color var(--blog-transition), box-shadow var(--blog-transition);
}
.admin-form-textarea:focus { border-color: var(--blog-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.admin-check-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: .9rem; color: #94a3b8;
}
.admin-check-label input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blog-blue); }

/* Thumbnail upload */
.admin-thumb-area {
  border: 2px dashed var(--blog-border);
  border-radius: 9px; padding: 24px;
  text-align: center; cursor: pointer;
  transition: border-color var(--blog-transition), background var(--blog-transition);
}
.admin-thumb-area:hover { border-color: var(--blog-blue); background: rgba(37,99,235,.05); }
.admin-thumb-area p { font-size: .82rem; color: #475569; margin: 8px 0 0; }
.admin-thumb-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.admin-thumb-preview img { width: 120px; height: 80px; border-radius: 7px; object-fit: cover; border: 1px solid var(--blog-border); }

/* Lang tabs no CMS */
.cms-lang-tabs {
  display: flex; gap: 4px; margin-top: 20px;
  border-bottom: 1px solid var(--blog-border);
}
.cms-lang-tab {
  padding: 8px 18px; border-radius: 7px 7px 0 0;
  border: 1px solid transparent; border-bottom: none;
  background: transparent; color: #64748b;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--blog-transition);
  font-family: inherit; position: relative; bottom: -1px;
}
.cms-lang-tab:hover { color: #e2e8f0; }
.cms-lang-tab.active {
  background: #152038;
  border-color: rgba(255,255,255,.07); border-bottom-color: #152038;
  color: var(--blog-blue-light);
}
.cms-lang-panel { display: none; padding-top: 20px; }
.cms-lang-panel.active { display: block; }

/* Summernote dark theme */
.note-editor { background: #0d1117 !important; border-color: var(--blog-border) !important; border-radius: 8px !important; }
.note-toolbar { background: #161e2e !important; border-bottom-color: var(--blog-border) !important; }
.note-toolbar .btn-default { background: transparent !important; color: #94a3b8 !important; border-color: transparent !important; }
.note-toolbar .btn-default:hover { background: rgba(255,255,255,.08) !important; color: #e2e8f0 !important; }
.note-editable { background: #0d1117 !important; color: #e2e8f0 !important; caret-color: #fff !important; }
.note-statusbar { background: #0d1117 !important; border-color: var(--blog-border) !important; }
.note-placeholder { color: #475569 !important; }
.note-dropdown-menu { background: #1a2236 !important; border-color: var(--blog-border) !important; }
.note-dropdown-item { color: #94a3b8 !important; }
.note-dropdown-item:hover { background: rgba(37,99,235,.18) !important; color: #fff !important; }
.note-modal .modal-content { background: #1a2236 !important; border-color: var(--blog-border) !important; color: #e2e8f0 !important; }
.note-modal .modal-header { border-color: var(--blog-border) !important; }
.note-modal .form-control { background: #0d1117 !important; color: #e2e8f0 !important; border-color: var(--blog-border) !important; }
.note-modal .btn-primary { background: var(--blog-blue) !important; border-color: var(--blog-blue) !important; }

/* Toast */
.admin-toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px; border-radius: 9px;
  font-size: .88rem; font-weight: 600; color: #fff;
  z-index: 9999; opacity: 1; transition: opacity .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.admin-toast--ok { background: #059669; }
.admin-toast--err { background: #dc2626; }

/* Session warning */
.admin-session-warning {
  position: fixed; top: 70px; right: 24px;
  background: #d97706; color: #fff;
  padding: 10px 20px; border-radius: 9px;
  font-size: .85rem; font-weight: 600; z-index: 9998;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.admin-session-warning.hidden { display: none; }

/* ── FOOTER BLOG PAGES ────────────────────────────────────── */
.blog-footer {
  background: #0a0e27;
  border-top: 1px solid var(--blog-border);
  padding: 48px 0 24px;
}
.blog-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blog-footer__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.blog-footer__brand .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; margin-bottom: 12px;
}
.blog-footer__brand .logo img { width: 32px; height: 32px; }
.blog-footer__brand .logo strong { font-size: .95rem; color: #f1f5f9; }
.blog-footer__desc { font-size: .82rem; color: var(--blog-text-muted); line-height: 1.6; }
.blog-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.blog-footer__nav a {
  font-size: .85rem; color: var(--blog-text-muted);
  text-decoration: none; transition: color var(--blog-transition);
}
.blog-footer__nav a:hover { color: var(--blog-blue-light); }
.blog-footer__bottom {
  padding-top: 24px; border-top: 1px solid var(--blog-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.blog-footer__copy { font-size: .78rem; color: #475569; }
.blog-footer__admin { font-size: .78rem; color: #334155; text-decoration: none; }
.blog-footer__admin:hover { color: #64748b; }

/* ── HEADER BLOG PAGES ────────────────────────────────────── */
.blog-header {
  position: fixed;
  top: var(--blog-lang-bar-h); left: 0; right: 0;
  z-index: 100; height: 68px;
  background: rgba(10,14,39,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blog-border);
  display: flex; align-items: center;
}
.blog-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.blog-header .container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.blog-header .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.blog-header .logo img { width: 36px; height: auto; }
.blog-header .logo strong { font-size: .92rem; color: #f1f5f9; }
.blog-nav {
  display: flex; align-items: center; gap: 6px;
}
.blog-nav__link {
  padding: 7px 14px; border-radius: 7px;
  font-size: .85rem; font-weight: 500; color: #94a3b8;
  text-decoration: none; transition: var(--blog-transition);
}
.blog-nav__link:hover { color: #f1f5f9; background: rgba(255,255,255,.05); }
.blog-nav__link.active { color: var(--blog-blue-light); }
.blog-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 0;
}
.blog-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #94a3b8; border-radius: 2px; transition: var(--blog-transition);
}
.blog-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.blog-hamburger.active span:nth-child(2) { opacity: 0; }
.blog-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.blog-nav-overlay { display: none; }

/* ── LIGHT THEME — PÁGINAS PÚBLICAS DO BLOG ──────────────── */

/* Hero (compartilhado: noticias.html e post.html) */
.blog-page-hero {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: calc(72px + 40px) 0 48px;
}
.blog-page-hero__inner { max-width: 720px; }
#post-hero { padding: calc(72px + 16px) 0 20px; }
.blog-page-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700;
  color: #0f172a; margin-bottom: 12px; line-height: 1.15;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}
.blog-page-hero__subtitle {
  font-size: 1rem; color: #64748b;
  max-width: 600px; line-height: 1.6;
}

/* Breadcrumb light */
.blog-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: #94a3b8;
  margin-bottom: 16px; flex-wrap: wrap;
}
.blog-breadcrumb a { color: var(--color-blue-primary, #3B82F6); text-decoration: none; transition: color .2s; }
.blog-breadcrumb a:hover { color: #1d4ed8; }

/* Seletor de idioma inline (pills no hero) */
.blog-lang-inline { display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.blog-lang-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: 1px solid #e2e8f0; border-radius: 20px;
  background: #fff; color: #94a3b8;
  font-size: .73rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: all .2s;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.blog-lang-pill img { display: block; border-radius: 2px; }
.blog-lang-pill:hover { border-color: #3b82f6; color: #3b82f6; }
.blog-lang-pill.active { background: #eff6ff; border-color: #93c5fd; color: #2563eb; }

/* Área principal light */
.blog-main { padding: 40px 0 64px; }

/* Filtros light */
.blog-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.blog-filtro-btn {
  padding: 7px 18px; border-radius: 20px;
  border: 1px solid #e2e8f0; background: #fff; color: #64748b;
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.blog-filtro-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.blog-filtro-btn.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* Grid de cards light */
.blog-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; min-height: 200px;
}
.blog-cards-grid .noticia-card {
  background: #fff; border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.blog-cards-grid .noticia-card:hover {
  border-color: #93c5fd; box-shadow: 0 6px 24px rgba(37,99,235,.10);
}
.blog-cards-grid .noticia-card__img { background: #f1f5f9; }
.blog-cards-grid .noticia-card__img-placeholder { color: #94a3b8; }
.blog-cards-grid .noticia-card__titulo { color: #0f172a; }
.blog-cards-grid .noticia-card__data { color: #94a3b8; }
.blog-cards-grid .noticia-card__excerpt { color: #64748b; }
.blog-cards-grid .noticia-card__footer { border-top-color: #f1f5f9; }
.blog-cards-grid .noticia-card__link { color: #3b82f6; }
.blog-cards-grid .noticia-card__link:hover { color: #1d4ed8; }
.blog-cards-grid .noticias-vazio { color: #94a3b8; }

/* Skeleton light */
.blog-cards-grid .skeleton-card { background: #fff; border-color: #e2e8f0; }
.blog-cards-grid .skeleton-img { background: #f1f5f9; }
.blog-cards-grid .skeleton-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
}

/* Paginação light */
.blog-paginacao {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 40px 0 24px; flex-wrap: wrap;
}
.blog-pag-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 8px; border: 1px solid #e2e8f0;
  background: #fff; color: #64748b;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.blog-pag-btn:hover:not(:disabled) { border-color: #3b82f6; color: #3b82f6; }
.blog-pag-btn.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.blog-pag-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Post page light (classe .post-public no <main>) */
/* min-height reserva espaço antes do JS injetar conteúdo, reduzindo CLS */
.post-public { padding: 48px 0 80px; min-height: 600px; }
.post-public-wrap { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.post-public .post-header__titulo { color: #0f172a; }
.post-public .post-header__data { color: #64748b; }
.post-public .post-header__tag { background: #eff6ff; color: #3b82f6; }
.post-public .post-content { color: #334155; }
.post-public .post-content h1, .post-public .post-content h2,
.post-public .post-content h3, .post-public .post-content h4,
.post-public .post-content h5 { color: #0f172a; }
.post-public .post-content a { color: #3b82f6; }
.post-public .post-content blockquote { background: #f0f7ff; color: #64748b; border-left-color: #3b82f6; }
.post-public .post-content code { background: #f1f5f9; }
.post-public .post-content pre { background: #f8fafc; border: 1px solid #e2e8f0; }
.post-public .post-share { border-top-color: #e2e8f0; }
.post-public .post-share__title { color: #64748b; }
.post-public .share-btn--copy { background: #f8fafc; color: #3b82f6; border: 1px solid #e2e8f0; }
.post-public .share-btn--copy:hover { border-color: #3b82f6; background: #eff6ff; }
.post-public .post-not-found { color: #64748b; }
.post-public .post-not-found h2 { color: #0f172a; }

/* ── RESPONSIVIDADE ───────────────────────────────────────── */
@media (max-width: 992px) {
  .blog-destaques-grid { grid-template-columns: repeat(2, 1fr); }
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nd-grid { grid-template-columns: 1fr; }
  .nd-hero { min-height: 280px; }
  .nd-hero__titulo { font-size: 1.1rem; }
  .blog-destaques-grid { grid-template-columns: 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .blog-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-table__actions { flex-direction: column; }
  .admin-header { padding: 12px 16px; }
  .admin-body { padding: 20px 16px; }
  .admin-panel { padding: 20px 16px; }
  .admin-subtoolbar { flex-direction: column; align-items: flex-start; }
  .post-page-main { padding: 100px 16px 60px; }
  .post-public { padding: 32px 0 60px; }
  .post-public-wrap { padding: 0 16px; }
  .blog-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 150; background: #0d1117; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
  .blog-nav.open { display: flex; }
  .blog-nav__link { font-size: 1.1rem; padding: 12px 24px; }
  .blog-hamburger { display: flex; }
  .blog-nav-overlay { display: block; position: fixed; inset: 0; z-index: 149; background: rgba(0,0,0,.5); }
  .blog-nav-overlay.visible { display: block; }
}
@media (max-width: 480px) {
  .blog-page-hero { padding: calc(72px + 24px) 0 36px; }
  #post-hero { padding: calc(72px + 8px) 0 14px; }
  .blog-filtros { gap: 6px; }
  .blog-filtro-btn { padding: 6px 12px; font-size: .78rem; }
  .noticias-page-hero { padding: 100px 0 56px; }
  .noticias-filtros { gap: 6px; }
  .filtro-btn { padding: 6px 12px; font-size: .78rem; }
  .admin-login-card { padding: 28px 20px; }
  #blog { padding: 60px 0; }
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) { display: none; }
}
