/* =============================================
   PANTHERBLACK, PÁGINAS INTERNAS (galeria, blog e artigos)
   Cabeçalho completo, artigos em duas colunas com sumário fixo,
   botões e ajustes. Carregado depois do CSS embutido de cada página.
   ============================================= */

:root { --pb-ease: cubic-bezier(0.22, 1, 0.36, 1); --gold-gradient: linear-gradient(135deg, #F0C84A 0%, #D4A820 40%, #A07A10 100%); --gold-light: #F0C84A; }

/* ===================== CABEÇALHO ===================== */
.pb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
}
/* o vidro fica num pseudo-elemento: backdrop-filter no próprio header prenderia a gaveta (position: fixed) dentro dele */
.pb-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid rgba(212, 168, 32, 0.16);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pb-header.is-scrolled::before, .pb-header.is-solid::before { opacity: 1; }
.pb-header-in {
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pb-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.pb-logo img { height: 46px; width: auto; transition: transform 0.5s var(--pb-ease); }
.pb-logo:hover img { transform: scale(1.06); }
.pb-nav { display: flex; align-items: center; gap: 2px; }
.pb-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-70);
  transition: color 0.25s ease;
}
.pb-nav a:not(.pb-cta)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--pb-ease);
}
.pb-nav a:not(.pb-cta):hover, .pb-nav a[aria-current="page"] { color: var(--gold-light); }
.pb-nav a:not(.pb-cta):hover::after, .pb-nav a[aria-current="page"]::after { transform: scaleX(1); }
.pb-nav .pb-cta {
  margin-left: 12px;
  padding: 11px 22px;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.35s var(--pb-ease), filter 0.3s ease;
}
.pb-nav .pb-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pb-burger { display: none; }
.pb-overlay { display: none; }

@media (max-width: 900px) {
  .pb-header-in { padding: 0 14px 0 20px; }
  .pb-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    margin-right: -6px;
    position: relative;
    z-index: 1003;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .pb-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--pb-ease), opacity 0.25s ease; }
  .pb-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pb-burger.is-open span:nth-child(2) { opacity: 0; }
  .pb-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pb-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 92px 24px 32px;
    background: rgba(0, 0, 0, 0.97);
    border-left: 1px solid var(--gold-border);
    transform: translateX(100%);
    transition: transform 0.5s var(--pb-ease);
    z-index: 1002;
    overflow-y: auto;
  }
  .pb-nav.is-open { transform: none; }
  .pb-nav a:not(.pb-cta) { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .pb-nav a:not(.pb-cta)::after { display: none; }
  .pb-nav .pb-cta { margin: 28px 0 0; text-align: center; padding: 16px 22px; font-size: 0.82rem; }
  .pb-overlay {
    display: block;
    position: fixed; inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.4s ease;
  }
  .pb-overlay.is-open { background: rgba(0, 0, 0, 0.7); pointer-events: auto; }
}

/* ===================== GALERIA ===================== */
.galeria-page { padding-top: 120px; }
.load-more-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 64px 0 110px;
}
.load-more-wrap .load-more-btn { margin: 0 auto; padding: 16px 42px; }

/* ===================== BLOG: ÍNDICE ===================== */
.blog-page { padding-top: 128px; }
.blog-header { margin-bottom: 64px; }
.blog-header h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; }
.mag-card { border-radius: 20px; }
.mag-card--featured .mag-card-media { aspect-ratio: 2.3 / 1; }
.blog-filter { margin-bottom: 48px; }
.filter-btn { padding: 10px 24px; }
.blog-grid { gap: 28px; }

/* ===================== ARTIGO ===================== */
.article-hero { min-height: min(68vh, 640px); align-items: flex-end; }
.article-hero-bg { transform: scale(1.04); }
.article-hero-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.25) 38%, rgba(5, 5, 5, 0.97) 100%); }
.article-hero-content { max-width: 1120px; padding: 150px 24px 56px; }
.article-title { max-width: 940px; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.03; margin-bottom: 22px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: var(--white-70);
}
.article-meta::before { content: ""; width: 34px; height: 2px; background: var(--gold-gradient); flex-shrink: 0; }

.article-page { padding-bottom: 110px; }
.article-page .article-container {
  max-width: 1120px;
  padding: 72px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 72px;
  align-items: start;
}
.article-page .article-container > * { grid-column: 1; max-width: 740px; width: 100%; }
.article-page .article-container > .article-aside { grid-column: 2; grid-row: 1 / span 4; max-width: none; position: sticky; top: 108px; align-self: start; }

.article-body { font-size: 1.1rem; line-height: 1.9; color: rgba(255, 255, 255, 0.76); }
.article-body > p:first-of-type { font-size: 1.3rem; line-height: 1.7; color: rgba(255, 255, 255, 0.94); margin-bottom: 34px; }
.article-body p { margin-bottom: 26px; }
.article-body h2 {
  position: relative;
  padding-left: 22px;
  margin: 60px 0 22px;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.1;
  scroll-margin-top: 110px;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.08em; bottom: 0.08em;
  width: 4px;
  border-radius: 2px;
  background: var(--gold-gradient);
}
.article-body strong { color: var(--gold-light); }
.article-body ul { padding-left: 0; list-style: none; margin-bottom: 28px; }
.article-body ul li { position: relative; padding: 0 0 0 28px; margin-bottom: 14px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.article-body a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(212, 168, 32, 0.4); text-underline-offset: 4px; transition: text-decoration-color 0.25s ease; }
.article-body a:hover { text-decoration-color: var(--gold-light); }

.article-cta {
  margin-top: 64px;
  padding: 44px 36px;
  border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(212, 168, 32, 0.1), transparent 55%), linear-gradient(160deg, #0f0f0f, #0a0a0a);
  border: 1px solid rgba(212, 168, 32, 0.28);
}
.article-cta p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); }

.related-articles { margin-top: 72px; }
.related-articles h3 { font-size: 1.6rem; margin-bottom: 22px; }
.related-grid { gap: 16px; }
.related-card { padding: 14px; border-radius: 16px; transition: transform 0.45s var(--pb-ease), border-color 0.3s ease; }
.related-card img { width: 92px; height: 92px; border-radius: 12px; }
.related-card span { font-size: 0.95rem; }

/* barra lateral: sumário + chamada */
.aside-card {
  padding: 26px 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f0f0f, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}
.aside-label { display: block; margin-bottom: 16px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.aside-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.aside-toc li { counter-increment: toc; }
.aside-toc a {
  display: flex;
  gap: 12px;
  padding: 9px 0 9px 12px;
  margin-left: -12px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--white-70);
  transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.35s var(--pb-ease);
}
.aside-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; color: rgba(212, 168, 32, 0.6); }
.aside-toc a:hover { color: #fff; padding-left: 16px; }
.aside-toc a.is-active { color: var(--gold-light); border-left-color: var(--gold); }
.aside-cta strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.aside-cta p { font-size: 0.9rem; line-height: 1.6; color: var(--white-70); margin-bottom: 18px; }
.aside-cta .btn { width: 100%; justify-content: center; padding: 14px 20px; }
.aside-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white-70); transition: color 0.25s ease, gap 0.3s var(--pb-ease); }
.aside-back:hover { color: var(--gold-light); gap: 12px; }

@media (max-width: 1020px) {
  .article-page .article-container { display: block; max-width: 760px; padding-top: 56px; }
  .article-page .article-container > * { max-width: none; }
  .article-page .article-container > .article-aside { position: static; margin-top: 48px; }
  .aside-toc { display: none; }
}
@media (max-width: 640px) {
  .article-body { font-size: 1.04rem; }
  .article-body > p:first-of-type { font-size: 1.16rem; }
  .article-hero-content { padding: 128px 20px 40px; }
  .article-cta { padding: 32px 22px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ===================== PÁGINAS CLARAS (galeria, blog, artigos) ===================== */
/* --- galeria, blog e artigos --- */
.galeria-page, .blog-page, .article-page {
  background: radial-gradient(50% 30% at 100% 0%, rgba(212, 175, 55, 0.13), transparent 70%), radial-gradient(40% 25% at 0% 100%, rgba(212, 175, 55, 0.09), transparent 70%), #ffffff;
  color: #111;
}
.galeria-page .section-title, .blog-page .section-title { color: #0a0a0a; }
.galeria-page .section-title em, .blog-page .section-title em { background: none; -webkit-text-fill-color: #A77A12; color: #A77A12; }
html.fx .galeria-page .fx-split em .mw-i, html.fx .blog-page .fx-split em .mw-i { -webkit-text-fill-color: #A77A12; color: #A77A12; }
.galeria-header p, .blog-header p, .galeria-intro { color: #3d3d3d; }
.galeria-header strong, .blog-header strong { color: #0a0a0a; }
.galeria-page .filter-btn, .blog-page .filter-btn { color: #333; border-color: rgba(0, 0, 0, 0.22); background: transparent; }
.galeria-page .load-more-btn { color: #8C6410; border-color: rgba(140, 100, 16, 0.55); }
.galeria-page .load-more-count { color: #666; }
.galeria-page .load-more-btn:hover .load-more-count { color: rgba(0, 0, 0, 0.6); }

.article-page .article-body { color: #2b2b2b; }
.article-page .article-body > p:first-of-type { color: #0a0a0a; }
.article-page .article-body h2 { color: #0a0a0a; }
.article-page .article-body strong { color: #8C6410; }
.article-page .article-body a { color: #8C6410; text-decoration-color: rgba(140, 100, 16, 0.45); }
.article-page .related-articles h3 { color: #0a0a0a; }
.article-page .aside-back { color: #333; }
.article-page .aside-back:hover { color: #8C6410; }

/* FAQ da galeria fica preta dentro da página branca: título claro */
.galeria-page .faq .section-title { color: #fff; }
.galeria-page .faq .section-title em { -webkit-text-fill-color: #FFC72C; color: #FFC72C; }
html.fx .galeria-page .faq .fx-split em .mw-i { -webkit-text-fill-color: #FFC72C; color: #FFC72C; }
.galeria-page .faq .section-subtitle { color: rgba(255, 255, 255, 0.72); }

/* filtro ativo preenchido de dourado também nas páginas brancas */
.galeria-page .filter-btn.active, .blog-page .filter-btn.active {
  background: linear-gradient(135deg, #F2D27A 0%, #D4AF37 55%, #B8891F 100%);
  color: #0a0a0a;
  border-color: transparent;
}
