/* ==========================================================================
   FliperNews — Home / listagem de notícias
   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;
}

main#main-content {
  display: block;
  width: 100%;
  padding-bottom: 20px;
}

/* Breadcrumb */
.fz-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 1050px;
  width: 80%;
  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;
}
@media (max-width: 768px) {
  .fz-breadcrumb {
    width: 100%;
    padding: 0 12px;
  }
}

/* Bloco de introdução (H1) */
.home-info {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
  padding: 0 30px;
}
.home-info .info-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  width: 80%;
  max-width: 1050px;
  color: #ffffffbb;
  background-color: rgba(0, 0, 0, 0.4);
}
.home-info .info-content h1 {
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffffe5;
}
.home-info .info-content p {
  margin: 8px 0 0;
  font-size: 16px;
  color: #ffffff9e;
}
@media (max-width: 768px) {
  .home-info {
    margin: 0;
    padding: 0;
  }
  .home-info .info-content {
    width: 100%;
    padding: 12px;
  }
}

/* Seção "Em breve" — eventos futuros (layout conforme mockup) */
.upcoming-events {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 30px;
}
.upcoming-container {
  width: 80%;
  max-width: 1050px;
  padding-top: 20px;
}
.upcoming-events .upcoming-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  background: none;
  height: auto;
  border-bottom: none;
  box-shadow: none;
  position: static;
  width: auto;
  padding: 0;
}
.upcoming-events .upcoming-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #eaf0f8;
  white-space: nowrap;
}
.upcoming-events .header-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #3a4657, transparent 90%);
}
.upcoming-events .see-all {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8f9bab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.upcoming-events .see-all:hover {
  color: #eaf0f8;
}
.upcoming-events .see-all .count {
  background: #2a3444;
  color: #cdd6e2;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}
.upcoming-events .event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  overflow: hidden;
}
.upcoming-events .event-item {
  padding: 7px;
}
.upcoming-events .event-item:hover {
  background-color: rgba(0, 0, 0, 0.5);
}
.upcoming-events .event-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.upcoming-events .event-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #c3ccd8;
  line-height: 1.3;
}
.upcoming-events .event-source img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.upcoming-events .event-source img.event-source-img--default {
  object-fit: contain;
}
.upcoming-events .event-source .badge {
  color: #5b6674;
  font-weight: 400;
  margin-left: 2px;
}
.upcoming-events .event-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.upcoming-events .event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.upcoming-events .event-time {
  margin: 0;
  font-size: 13px;
  color: #66c0f4;
}
.upcoming-events .notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border: none;
  color: #66c0f4;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.upcoming-events .notify-btn:hover {
  color: #9ad6ff;
  transform: scale(1.1);
}
.upcoming-events .notify-btn.active {
  color: #4cbb17;
}
@media (max-width: 768px) {
  .upcoming-events {
    padding: 0;
  }
  .upcoming-container {
    width: 100%;
  }
  .upcoming-events .event-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .upcoming-events .see-all span:not(.count) {
    display: none;
  }

  /* No mobile: só o 1º evento; demais ao expandir pelo header */
  .upcoming-events.is-collapsible .upcoming-header {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  .upcoming-events.is-collapsible .upcoming-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #8f9bab;
    margin-left: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .upcoming-events.is-collapsible.is-expanded .upcoming-header::after {
    transform: rotate(180deg);
    color: #eaf0f8;
  }
}

/* Anúncio central */
.center-ad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 90px;
  overflow: hidden;
}

/* Lista de notícias (cards) */
.news-colum {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px;
}
@media (max-width: 768px) {
  .news-colum {
    padding: 0;
  }
}
.news-empty {
  color: #ffffffbb;
  padding: 20px;
}

.news-link {
  display: block;
  width: 80%;
  max-width: 1050px;
  color: #fff;
}
@media (max-width: 768px) {
  .news-link {
    width: 100%;
  }
}
.news-link:hover .colum-title {
  color: #66c0f4;
}

.colum {
  display: flex;
  min-height: 200px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
  position: relative;
  padding: 12px;
  margin-bottom: 20px;
  transition: 0.15s ease;
}
.colum:hover {
  background-color: #090a0e;
  box-shadow: 0 0 15px #111727;
}
@media (max-width: 768px) {
  .colum {
    flex-direction: column;
    width: 100%;
    padding: 0 0 10px;
    margin-bottom: 14px;
  }
  .colum:hover {
    box-shadow: none;
  }
}

.colum-cover-mobile {
  display: none;
}
@media (max-width: 768px) {
  .colum-cover-mobile {
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
    background-color: rgb(63, 68, 82);
  }
  .colum-cover-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.colum-cover {
  max-width: 350px;
  width: 100%;
  height: 200px;
  padding-left: 10px;
  margin-left: auto;
}
.colum-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
@media (max-width: 768px) {
  .colum-cover {
    display: none;
  }
}

.colum-txt {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  font-size: 14px;
}
@media (max-width: 768px) {
  .colum-txt {
    min-height: 150px;
    padding: 0 10px;
  }
}
.colum-title {
  margin: 0;
  padding-top: 5px;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .colum-title {
    font-size: 20px;
  }
}
.colum-des {
  margin: 0;
  padding-top: 5px;
  color: rgb(177, 190, 200);
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.colum-tag {
  padding-top: 8px;
}
.colum-tag .tag {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  border-radius: 3px;
  padding: 3px 7px;
}
@media (max-width: 768px) {
  .colum-tag {
    position: absolute;
    bottom: 0;
    right: 10px;
    padding-top: 0;
    z-index: 1;
  }
}
.colum-meta,
.colum-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  color: #ffffff94;
  font-size: 13px;
}
@media (max-width: 768px) {
  .colum-meta,
  .colum-footer {
    left: 10px;
    bottom: 0;
    max-width: calc(100% - 110px);
  }
  .colum-autor {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.colum-meta time,
.colum-footer time {
  color: #66c0f4;
}
.colum-footer p {
  margin: 0;
}

/* Paginação */
.pagination {
  text-align: center;
  margin: 30px 0;
}
.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.pagination ul li {
  display: inline-block;
}
.pagination ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  transition: 0.2s ease;
}
.pagination ul li a:hover {
  background: rgba(0, 0, 0, 0.8);
}
.pagination ul li a.active {
  background: #1571f4;
  pointer-events: none;
}
.pagination ul li a.prev,
.pagination ul li a.next {
  font-weight: bold;
}
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid #66c0f4;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .pagination ul {
    gap: 4px;
  }
  .pagination ul li a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

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