/* ==========================================================================
   FliperNews — Página de notícia (artigo)
   Folha de conteúdo. Carregada sobre game.css (base: fundo, partículas,
   header, logo, botão do menu) e sidebar.css (menu lateral).
   ========================================================================== */

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* Logo FliperNews — regras finais em game.css (.logo.logo--flipernews) */

/* Skip link (acessibilidade) — só aparece ao receber foco */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: #1571f4;
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #9ad6ff;
  outline-offset: 2px;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid #66c0f4;
  outline-offset: 2px;
}

main#main-content {
  display: block;
  width: 100%;
}

/* Breadcrumb */
.fz-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 1000px;
  margin: 16px auto 0;
  padding: 0 30px;
  color: #8f9bab;
  font-size: 13px;
}
.fz-breadcrumb a {
  color: #66c0f4;
}
.fz-breadcrumb a:hover {
  color: #9ad6ff;
}
.fz-breadcrumb [aria-current="page"] {
  color: #eaf0f8;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 60vw;
}
@media (max-width: 768px) {
  .fz-breadcrumb {
    padding: 0 12px;
  }
}

/* ============================ ARTIGO ============================ */
.post-container {
  display: grid;
  justify-content: center;
  padding: 30px 0;
}
@media (max-width: 768px) {
  .post-container {
    padding: 12px;
  }
}
.post-content {
  max-width: 1000px;
  padding: 30px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.35);
  overflow: visible;
}
@media (max-width: 768px) {
  .post-content {
    padding: 12px;
  }
}

.post-header {
  padding-bottom: 40px;
}
.header-text h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
}
.header-text p {
  margin: 10px 0 0;
  color: #ccc;
  font-size: 18px;
}
.header-data {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #ccc;
  font-size: 12px;
  padding-top: 12px;
}
.header-tag {
  color: #fff;
  font-weight: bold;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 7px;
}
.header-time {
  color: #66c0f4;
}

/* ============================ CORPO ============================ */
.post-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  color: #ccc;
  padding: 0 0 20px;
}
.post-data {
  min-width: 0;
  border-right: none;
  padding-right: 0;
}
.post-box {
  display: block;
  box-sizing: border-box;
}
.post-box-empty {
  margin: 0 0 16px;
  font-size: 14px;
  color: #8f9bab;
}
.post-box-games-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-box-games {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .post-body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    column-gap: 20px;
    align-items: start;
  }
  .post-data {
    grid-column: 1;
    border-right: 1px solid #616161;
    padding-right: 20px;
  }
  .post-box {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    position: sticky;
    top: 86px;
    align-self: start;
  }
}

@media (max-width: 768px) {
  .post-box {
    display: block;
    width: 100%;
    padding: 24px 0 0;
    margin-top: 8px;
    border-top: 1px solid #616161;
  }
}
.post-img img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 3px;
}
.post-text {
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  line-height: 1.6;
}
.post-text p {
  margin: 0 0 14px;
}
.post-text img,
.post-text video,
.post-text iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}
.post-text iframe {
  width: 100%;
  max-width: 600px;
  height: 350px;
}
@media (max-width: 768px) {
  .post-text iframe,
  .post-text video {
    width: 100%;
    height: auto;
  }
}

.header-tag a {
  color: inherit;
  text-decoration: none;
}
.header-tag a:hover {
  color: #66c0f4;
}

/* ============================ RODAPÉ DO POST ============================ */
.post-footer {
  margin-top: 20px;
}
.post-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  padding-top: 20px;
}
.post-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  border: none;
  font-size: 1.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border-radius: 3px;
  width: 100%;
  height: 50px;
  padding: 0;
  transition: 0.2s;
}
.post-button:hover {
  color: #fff;
  background-color: #1571f4;
}
.post-button i {
  font-size: 1.5rem;
}

.copyright {
  text-align: center;
  margin: 24px 0;
  font-size: 0.9rem;
  color: #888;
}

/* ============================ JOGOS (ASIDE) ============================ */
.game-ads-container {
  width: 100%;
  margin: 0 0 12px;
}
.game-ads-container:last-of-type {
  margin-bottom: 0;
}
.game-ads {
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
  border-radius: 3px;
  overflow: hidden;
}
.game-ads > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.game-ads:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
}
.container-ads-title h2 {
  margin: 0 0 14px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #eaf0f8;
}
.game-ads-cover {
  width: 100%;
  line-height: 0;
}
.game-ads-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
}
.game-ads-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 0 0 3px 3px;
  font-weight: bold;
  width: 100%;
  padding: 10px;
  gap: 12px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.85);
}
.game-ads-title p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-ads-title i {
  font-size: 1.15em;
  color: #66c0f4;
  flex-shrink: 0;
}

/* ============================ OUTRAS NOTÍCIAS ============================ */
.other-articles-container {
  padding-top: 30px;
  width: 100%;
}
.other-articles-title {
  padding-bottom: 10px;
  font-size: 14px;
  color: #fff;
}
.other-articles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-item {
  display: flex;
  width: 100%;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
}
.other-articles-cover {
  height: 100%;
  width: 30%;
  min-width: 175px;
}
@media (max-width: 768px) {
  .other-articles-cover {
    min-width: 125px;
  }
}
.other-articles-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.other-articles-text {
  position: relative;
  padding: 5px 8px;
  width: 100%;
}
.other-articles-text h3 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: normal;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.other-article-data span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: bold;
}
@media (max-width: 768px) {
  .other-article-data span {
    bottom: 5px;
    right: 5px;
  }
}
