/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: white;
}

img {
  transition: 0.3s;
}

img:hover {
  transform: scale(1.03);
}

/* =========================
   TOPO
========================= */
.topo {
  background-color: #000;
  padding: 20px 30px;
  border-bottom: 3px solid #ff7a00;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.logo h1 {
  margin: 0;
  font-size: 40px;
}

.logo p {
  margin: 5px 0 0;
  color: #cfcfcf;
}

.laranja {
  color: #ff7a00;
}

/* =========================
   MENU
========================= */
.menu {
  background-color: #111;
  text-align: center;
  padding: 15px;
  border-bottom: 2px solid #ff7a00;
}

.menu-link {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.menu-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #ff7a00;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.menu-link:hover,
.menu-link.ativo {
  color: #ff7a00;
}

.menu-link:hover::after,
.menu-link.ativo::after {
  width: 100%;
}

/* =========================
   LAYOUT
========================= */
.container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.principal {
  flex: 3;
  min-width: 0;
}

.lateral {
  flex: 1;
  min-width: 280px;
  overflow: hidden;
}

/* =========================
   LINKS
========================= */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* =========================
   TAG
========================= */
.tag {
  display: inline-block;
  background-color: #ff7a00;
  color: black;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* =========================
   DESTAQUE
========================= */
.card-destaque {
  background-color: #111;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: 0.35s;
}

.card-destaque img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}

.card-destaque:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.45);
}

.card-destaque:hover h3 {
  color: #ff7a00;
}

/* =========================
   POSTS
========================= */
.grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.35s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.45);
}

.conteudo-card {
  padding: 12px;
  flex: 1;
}

.conteudo-card h3 {
  margin: 8px 0;
  line-height: 1.35;
  word-break: break-word;
}

.conteudo-card p {
  line-height: 1.5;
  word-break: break-word;
  color: #d1d1d1;
}

/* =========================
   MAIS VISTOS
========================= */
#mais-vistos-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mini-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mini-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  padding: 14px;
  transition: 0.3s;
  overflow: hidden;
}

.mini-post img {
  width: 120px;
  height: 85px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.mini-post-info {
  flex: 1;
  min-width: 0;
}

.mini-post-info h4 {
  margin: 8px 0;
  line-height: 1.35;
  color: white;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mini-post-info p {
  margin: 0 0 8px;
  color: #d1d1d1;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mini-post-views {
  margin-top: 6px;
  font-size: 13px;
  color: #aaa !important;
}

.mini-post:hover {
  transform: translateX(6px);
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.25);
}

.mini-post:hover h4 {
  color: #ff7a00;
}

/* =========================
   AFILIADO
========================= */
.caixa-afiliado {
  background-color: #111;
  border-radius: 12px;
  padding: 16px;
  margin-top: 25px;
  border: 1px solid #ff7a00;
}

.botao-afiliado {
  display: inline-block;
  margin-top: 10px;
  background-color: #ff7a00;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
}

/* =========================
   RODAPÉ
========================= */
.rodape {
  text-align: center;
  padding: 20px;
  border-top: 2px solid #ff7a00;
  background-color: #111;
  margin-top: 30px;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 900px) {
  .grid-posts {
    grid-template-columns: 1fr;
  }

  .container {
    flex-direction: column;
  }

  .lateral {
    min-width: auto;
  }

  .mini-post {
    flex-direction: column;
  }

  .mini-post img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .menu-link {
    display: block;
    margin: 12px auto;
  }

  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo h1 {
    font-size: 32px;
  }
}