/* ── p.css — post Instagram: incorpora post-body + noticias + mídia ─────────── */

/* ── SECTION: noticia-body — layout only ── */

.noticia-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.noticia-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.noticia-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
}
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem 1.1rem;
}
.card-source { display: flex; align-items: center; gap: .9rem; }
.source-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.source-info { display: flex; flex-direction: column; gap: .18rem; }
.source-name { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: .35rem; }
.source-verified { display: flex; align-items: center; }
.source-meta { font-size: 0.75rem; font-weight: 500; display: flex; align-items: center; gap: .35rem; }
.card-body { padding: 1.6rem 1.8rem 1.2rem; display: flex; flex-direction: column; gap: 1.15rem; }
.card-body p { font-size: 1rem; font-weight: 500; line-height: 1.82; }
.noticia-quote {
  margin: .5rem 0; padding: 1.4rem 1.6rem;
  border-radius: 16px; position: relative; overflow: hidden;
}
.noticia-quote::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.quote-content { font-size: 1rem; font-weight: 500; line-height: 1.82; font-style: italic; padding-left: .5rem; }
.photo-credit { display: flex; align-items: center; gap: .4rem; font-size: 0.78rem; font-weight: 500; padding-top: .25rem; }
.card-image-wrap { position: relative; line-height: 0; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.card-image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; filter: brightness(0.92) saturate(1.05); }
.image-overlay { position: absolute; inset: 0; pointer-events: none; }
.image-badge {
  position: absolute; bottom: 1rem; right: 1rem;
  border-radius: 50px; padding: 5px 12px; font-size: 0.72rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  backdrop-filter: blur(8px);
}
.card-footer { display: flex; align-items: stretch; }
.footer-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .5rem; background: none; border: none; cursor: pointer;
  font-family: 'Quicksand', sans-serif; font-size: 0.82rem; font-weight: 600;
  transition: all .2s ease; position: relative; text-decoration: none;
}
.footer-action:last-child { border-right: none; }
.footer-action::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.footer-action:hover::after { transform: scaleX(1); }
.relacionados { border-radius: 20px; overflow: hidden; }
.relacionados-header {
  display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.5rem;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.relacionados-list { padding: .5rem 0; }
.rel-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; transition: background .2s; text-decoration: none; }
.rel-item:last-child { border-bottom: none; }
.rel-thumb { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { display: flex; flex-direction: column; gap: .25rem; }
.rel-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.rel-meta { font-size: 0.72rem; font-weight: 500; }
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  padding: 1rem 1.5rem; border-radius: 14px; font-size: .9rem; font-weight: 600;
  border-left: 3px solid; z-index: 99999;
  display: flex; align-items: center; gap: .75rem;
  transform: translateY(100px); opacity: 0; transition: all .35s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 640px) {
  .noticia-wrap { padding: 1.5rem 1rem 4rem; }
  .card-body { padding: 1.3rem 1.2rem 1rem; }
  .card-top { padding: 1.1rem 1.2rem; }
  .footer-action span { display: none; }
  .footer-action { gap: 0; }
}

/* ═══════════════════════════════════════════════════════
   INSTITUTO LORDE — SKIN: noticias + noticia
   Decora as sections noticias-hero, noticias-feed, noticia-body.
   Só background, border, color, gradientes, box-shadow.
═══════════════════════════════════════════════════════ */

/* ── noticias-hero ── */
.noticias-hero {
  background:
    radial-gradient(ellipse at 60% 0%, rgba(201,168,76,0.07) 0%, transparent 55%),
    linear-gradient(175deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.10);
}
.noticias-hero__glow {
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 65%);
}
.noticias-hero__eyebrow { color: var(--gold); }
.noticias-hero__eyebrow i { color: var(--gold); }
.noticias-hero__title {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.noticias-hero__sub { color: rgba(255,255,255,0.48); }

/* ── noticia-card ── */
.noticia-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.noticia-card::before {
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-bright), var(--gold-light), transparent);
}

/* ── card-top ── */
.card-top { border-bottom: 1px solid rgba(255,255,255,0.06); }
.source-avatar {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(201,168,76,0.25);
}
.source-avatar i { color: var(--gold); }
.source-name { color: #fff; }
.source-verified i { color: var(--gold-light); }
.source-meta { color: var(--muted); }
.source-meta i { color: var(--muted); }

/* ── card-body ── */
.card-body p { color: rgba(255,255,255,0.82); }
.noticias-feed__ver-mais { color: var(--gold-light); }
.noticias-feed__ver-mais:hover { color: var(--gold-bright); }
.noticias-feed__empty { color: rgba(255,255,255,0.35); }

/* ── imagem ── */
.image-overlay {
  background: linear-gradient(to bottom, transparent 60%, rgba(8,15,30,0.45) 100%);
}
.image-badge {
  background: rgba(8,15,30,0.8);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--muted);
}
.image-badge i { color: var(--gold); }

/* ── card-footer ── */
.card-footer { border-top: 1px solid rgba(255,255,255,0.07); }
.footer-action {
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.footer-action i { color: rgba(255,255,255,0.4); }
.footer-action:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }
.footer-action:hover i { color: rgba(255,255,255,0.75); }
.footer-action::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── paginação ── */
.noticias-feed__pg-btn {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
}
.noticias-feed__pg-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--gold); }
.noticias-feed__pg-btn i { color: var(--gold); }
.noticias-feed__pg-info { color: rgba(255,255,255,0.35); }

/* ── citação ── */
.noticia-quote {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
}
.noticia-quote::before {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
}
.quote-content { color: rgba(255,255,255,0.88); }

/* ── crédito foto ── */
.photo-credit { color: var(--muted); }
.photo-credit i { color: var(--muted); }

/* ── relacionados ── */
.relacionados {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.14);
}
.relacionados-header {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.relacionados-header i { color: var(--gold); }
.rel-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.rel-item:hover { background: rgba(201,168,76,0.05); }
.rel-thumb { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); }
.rel-thumb i { color: var(--gold-light); }
.rel-item:hover .rel-thumb { background: rgba(201,168,76,0.18); }
.rel-title { color: rgba(255,255,255,0.82); }
.rel-meta { color: var(--muted); }

/* ── toast ── */
.toast {
  background: var(--navy-dark);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.toast i { color: var(--gold); }

/* ── Carrossel (posts Instagram) ─────────────────────────────────────────────── */

.cms-carousel {
  position: relative;
  margin: 0 0 1.25rem;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.cms-carousel__track {
  display: flex;
  transition: transform 0.35s ease;
}

.cms-carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.cms-carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.cms-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s;
}

.cms-carousel__btn:hover { background: rgba(0,0,0,0.7); }
.cms-carousel__btn--prev { left: 0.5rem; }
.cms-carousel__btn--next { right: 0.5rem; }

.cms-carousel__dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.cms-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.cms-carousel__dot--active { background: #fff; }

.cms-carousel figcaption {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--color-muted, #888);
  text-align: center;
}

/* ── Vídeo (posts Instagram clips/reels) ─────────────────────────────────────── */

.cms-video {
  margin: 0 0 1.25rem;
}

.cms-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.cms-video figcaption {
  font-size: 0.78rem;
  color: var(--color-muted, #888);
  text-align: center;
  padding: 0.4rem 0;
}

/* ── card-media — área de mídia do post Instagram ───────────────────────────── */

.card-media {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.card-media .cms-image {
  margin: 0;
}

.card-media .cms-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.card-media-badge {
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.45);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── Carrossel ─────────────────────────────────────────────────────────────── */

.cms-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
  margin: 0;
}

.cms-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s ease;
  will-change: transform;
}

.cms-carousel__slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0;
}

.cms-carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

.cms-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s;
}

.cms-carousel__btn:hover { background: rgba(0,0,0,0.7); }
.cms-carousel__btn--prev { left: 0.5rem; }
.cms-carousel__btn--next { right: 0.5rem; }

.cms-carousel__dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.cms-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.cms-carousel__dot--active { background: #fff; }

/* ── Vídeo ─────────────────────────────────────────────────────────────────── */

.cms-video {
  margin: 0;
  background: #000;
}

.cms-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.cms-video figcaption {
  font-size: 0.78rem;
  color: var(--color-muted, #888);
  text-align: center;
  padding: 0.4rem 0;
}
