html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.bg-custom {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2,3,10,0.96), rgba(10,20,40,0.98)),
    url('/assets/img/logo1.png');
  background-size: cover, 360px auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  color: #f5f5f5;
}

body.bg-custom {
  background: transparent !important;
}

/* banner não coloca fundo extra */
.top-banner {
  background: transparent;
}

/* container NÃO pode ter fundo branco/escuro chapado globalmente */
.container {
  background: transparent;
}



.badge-categoria {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* cores */
.badge-filmes {
  background: linear-gradient(135deg, #ff4b4b, #c7182a);
  color: #fff;
}

.badge-series {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.badge-tec {
  background: linear-gradient(135deg, #ffd452, #ff9b00);
  color: #000;
}

/* animação no card ao passar o mouse */
.card.h-100 {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.h-100:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}

/* leve brilho no badge quando o card estiver em hover */
.card.h-100:hover .badge-filmes {
  box-shadow: 0 0 12px rgba(255,75,75,0.6);
}

.card.h-100:hover .badge-series {
  box-shadow: 0 0 12px rgba(0,198,255,0.6);
}

.card.h-100:hover .badge-tec {
  box-shadow: 0 0 12px rgba(255,212,82,0.6);
}


.card {
  background-color: #0b0d13; /* mais escuro */
  border: 1px solid rgba(255,255,255,0.08);
}

.card-body {
  color: #f5f5f5;
}

.card-title a {
  color: #ffffff;
}

.card-title a:hover {
  color: #ffd452;
}

/* bloco de destaque na home */
.card-destaque {
  color: #ffffff;
}

.card-destaque h2 a {
  color: #ffffff;
}

.card-destaque h2 a:hover {
  color: #ffd452;
}

.card-destaque .text-muted {
  color: #c0c0c0 !important;
}

.card-destaque .hero-description {
  color: #e0e0e0;
}

/* estrelas sobre texto */
.rating {
  color: #ffd452;
  display: inline-flex;
  align-items: center;
}

/* container das 5 estrelas */
.rating-stars {
  position: relative;
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1;
  color: rgba(255,255,255,0.15); /* estrelas vazias */
  overflow: hidden;
}

/* camada de preenchimento */
.rating-stars::before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffd452; /* estrelas cheias */
  width: 0;
  white-space: nowrap;
  overflow: hidden;
}

/* largura dinâmica vem inline no .rating-fill */
.rating-fill {
  display: block;
  height: 0;
}

/* sincroniza a largura via atributo style */
.rating-stars::before {
  width: inherit;
}

/* animação hover no card */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}


.footer-site {
  background: #060710;
  color: #f5f5f5;
}

.footer-site a {
  color: #f5f5f5;
}

.footer-site a:hover {
  color: #ffd452;
}

.footer-site .border-top {
  border-color: rgba(255,255,255,0.15) !important;
}


/* conteúdo do post */
.post-page .card {
  background-color: #0b0d13;
  border: 1px solid rgba(255,255,255,0.08);
  color: #f5f5f5;
}

.post-page .card a {
  color: #ffd452;
}

.post-page .card a:hover {
  color: #fff;
}

.post-page .post-conteudo {
  color: #f5f5f5;
}

/* ===== FORÇAR TEMA ESCURO NAS PÁGINAS PÚBLICAS ===== */

/* body vindo do header.php */
body.bg-custom {
  background-color: #02030a !important;
  color: #f5f5f5 !important;
}

/* container principal do post e da home */
.bg-custom .container {
  background: rgba(0, 0, 0, 0.9) !important;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* cards (inclusive no post.php) */
.post-page .card,
.bg-custom .card {
  background-color: #0b0d13 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #f5f5f5 !important;
}

/* textos dentro do post */
.post-page,
.post-page .post-conteudo {
  color: #f5f5f5 !important;
}

/* links dentro do post */
.post-page a {
  color: #ffd452;
}

.post-page a:hover {
  color: #ffffff;
}

/* rodapé escuro */
.footer-site {
  background: #060710 !important;
  color: #f5f5f5 !important;
}

.footer-site a {
  color: #f5f5f5 !important;
}

.footer-site a:hover {
  color: #ffd452 !important;
}
