/* =========================================================
   EOU.GG NEWS & NOTÍCIAS PAGE (PREMIUM 1:1 STYLING)
   ========================================================= */

.news-page {
  padding-top: calc(var(--navbar-height, 4.5rem) + 1.25rem);
  padding-bottom: 4rem;
  min-height: calc(100dvh - 184px);
  position: relative;
  justify-items: center;
}

.news-page::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-size: cover;
  background-position-y: 0;
  background-position-x: center;
  background-repeat: no-repeat;
  background-image: url(../../images/nebula.png);
  background-color: var(--clr-brand-500, #c89b3c);
  max-width: 2560px;
  margin-inline: auto;
  height: 220px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );
  opacity: 0.2;
}

.news-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

/* 1. Header */
.news-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.news-header__title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-onSurface-brand, #eedcb2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.15;
}

.news-header__subtitle {
  color: var(--clr-base-300, #a1a1aa);
  font-size: 0.95rem;
  max-width: 620px;
  line-height: 1.5;
  margin: 0;
}

/* 2. Controls Bar (Pills + Search) */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.news-filter-btn {
  padding: 0.45rem 1rem;
  background: var(--clr-surface-04, #1c1d21);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: 9999px;
  color: var(--clr-onSurface-04, #d4d4d8);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  outline: none;
}

.news-filter-btn:hover {
  background: var(--clr-surface-05, #27272a);
  color: #fff;
  border-color: rgba(229, 182, 109, 0.4);
}

.news-filter-btn.active {
  background: var(--clr-brand-500, #c89b3c);
  color: #111;
  border-color: var(--clr-brand-500, #c89b3c);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(200, 155, 60, 0.35);
}

.news-search {
  position: relative;
  min-width: 240px;
  flex: 1 1 240px;
  max-width: 340px;
}

.news-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  background: #0d0e10;
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-2, 4px);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search input:focus {
  border-color: var(--clr-brand-500, #c89b3c);
  box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.2);
}

.news-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #71717a;
  pointer-events: none;
}

/* 3. Featured Spotlight (Hero Card) */
.news-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(20, 21, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.news-spotlight:hover {
  border-color: rgba(229, 182, 109, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

@media (min-width: 860px) {
  .news-spotlight {
    grid-template-columns: 1.25fr 1fr;
  }
}

.news-spotlight__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #090a0c;
}

.news-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-spotlight:hover .news-spotlight__media img {
  transform: scale(1.04);
}

.news-spotlight__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.news-spotlight__body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #a1a1aa;
  font-size: 0.825rem;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--clr-brand-400, #e5b66d);
}

.news-spotlight__title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-spotlight__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-spotlight__title a:hover {
  color: var(--clr-brand-300, #f6e6b4);
}

.news-spotlight__desc {
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: var(--clr-brand-500, #c89b3c);
  color: #111;
  font-weight: 700;
  font-size: 0.825rem;
  border-radius: var(--radius-2, 4px);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}

.news-btn-read:hover {
  background: #deb252;
  box-shadow: 0 0 15px rgba(200, 155, 60, 0.4);
  transform: translateY(-1px);
}

/* 4. News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Item */
.news-card {
  background: rgba(20, 21, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.news-card:hover {
  border-color: rgba(229, 182, 109, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.news-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090a0c;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__thumb img {
  transform: scale(1.06);
}

.news-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.news-card__body {
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.news-card__title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__title a:hover {
  color: var(--clr-brand-300, #f6e6b4);
}

.news-card__desc {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card__footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--clr-forSurface-02, #27272a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: auto;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--clr-brand-400, #e5b66d);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-card__link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Badge Categories Palette */
.badge-novidade, .badge-novidades {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-aviso, .badge-avisos {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-evento, .badge-eventos {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-att, .badge-atualizacao, .badge-atualizacoes, .badge-patch {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.badge-manutencao, .badge-manutencoes {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-default {
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Empty State */
.news-empty {
  grid-column: 1 / -1;
  background: rgba(20, 21, 23, 0.85);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.news-empty svg {
  width: 48px;
  height: 48px;
  color: #52525b;
}

.news-empty__title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.news-empty__text {
  color: #a1a1aa;
  font-size: 0.9rem;
  max-width: 420px;
  margin: 0;
}

/* =========================================================
   SINGLE NEWS VIEW ARTICLE
   ========================================================= */

.article-container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-sizing: border-box;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-brand-400, #e5b66d);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.article-back:hover {
  color: #fff;
  transform: translateX(-3px);
}

.article-card {
  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.article-header {
  padding: 2.25rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--clr-forSurface-02, #27272a);
}

.article-title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.25;
}

.article-media {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  background: #090a0c;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-lead {
  padding: 1.25rem 1.5rem;
  background: rgba(200, 155, 60, 0.08);
  border-left: 4px solid var(--clr-brand-500, #c89b3c);
  border-radius: 0 var(--radius-2, 4px) var(--radius-2, 4px) 0;
  color: #eedcb2;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-content {
  color: #d4d4d8;
  font-size: 0.95rem;
  line-height: 1.8;
}

.article-content h2, .article-content h3, .article-content h4 {
  color: #fff;
  font-family: var(--heading-font, 'Inter', sans-serif);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-2, 4px);
  margin: 1rem 0;
  border: 1px solid var(--clr-forSurface-04, #27272a);
}

.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

/* Comments */
.article-comments {
  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-forSurface-04, #27272a);
  border-radius: var(--radius-3, 6px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--clr-forSurface-02, #27272a);
  padding-bottom: 0.75rem;
}

.comments-title {
  font-family: var(--heading-font, 'Inter', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-onSurface-brand, #eedcb2);
  text-transform: uppercase;
  margin: 0;
}