/* ============================================================
   GameLikeUs — News Page Styles
   /css/pages/news.css
   ============================================================ */

/* ── PAGE HEADER ── */
.news-page-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 40px 0;
}
.news-page-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.news-page-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  position: relative; padding-left: 16px;
}
.news-page-title::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--red);
}
.news-page-title span { color: var(--red); }

/* Platform filter tabs */
.platform-tabs {
  display: flex; gap: 0;
  overflow-x: auto;
}
.platform-tab {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 20px;
  color: var(--sub); text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
  transition: color .2s, border-color .2s;
}
.platform-tab:hover { color: var(--white); }
.platform-tab.active { color: var(--white); border-bottom-color: var(--red); }
.platform-pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pc, var(--red));
  flex-shrink: 0;
}

/* ── LAYOUT ── */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

/* ── MAIN FEED ── */
.news-feed {
  border-right: 1px solid var(--border);
  min-width: 0;
}

/* Featured article — first item, bigger */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.article-featured:hover { background: var(--card); }

.article-featured .art-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a0005, #400010, #600015);
  position: relative; overflow: hidden;
}
.article-featured .art-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.article-featured:hover .art-image img { transform: scale(1.03); }
.article-featured .art-image .no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; letter-spacing: -.02em;
  color: rgba(232,0,26,.15);
}

.article-featured .art-body {
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.article-featured .art-body::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
}

/* Standard article card */
.article-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { background: var(--card); }
.article-card .art-image {
  aspect-ratio: 16/9;
  background: var(--card);
  overflow: hidden;
}
.article-card .art-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .art-image img { transform: scale(1.04); }
.article-card .art-body { padding: 18px 22px; }

/* Shared art-body styles */
.art-source {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.art-platform-tag {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--plat-color, var(--red));
}
.art-source-name {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.art-source-sep { color: var(--border-l); font-size: .7rem; }

.art-title {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: .02em;
  color: var(--white); line-height: 1.2;
  margin-bottom: 8px;
}
.article-featured .art-title { font-size: 1.3rem; margin-bottom: 12px; }
.article-card .art-title     { font-size: .95rem; }

.art-excerpt {
  font-family: var(--font-serif);
  font-size: .82rem; font-style: italic;
  color: var(--sub); line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-featured .art-excerpt { -webkit-line-clamp: 3; }

.art-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.art-time {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.art-read-more {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  transition: color .2s;
}
.art-read-more:hover { color: var(--white); }

/* Load more */
.load-more-wrap {
  padding: 28px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.btn-load-more {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 36px;
  background: transparent; color: var(--sub);
  border: 1.5px solid var(--border-l);
  cursor: pointer;
  transition: all .2s;
}
.btn-load-more:hover { border-color: var(--white); color: var(--white); }
.btn-load-more:disabled { opacity: .4; cursor: not-allowed; }

/* ── SIDEBAR ── */
.news-sidebar { padding: 0; }

.sidebar-block {
  border-bottom: 1px solid var(--border);
}
.sidebar-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(232,0,26,.03);
}
.sidebar-block-title {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-block-title::before { content: '▸'; color: var(--red); }

/* Trending in sidebar */
.trending-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--card); }
.tr-rank {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--border-l); width: 28px; flex-shrink: 0;
  transition: color .2s;
  line-height: 1;
}
.trending-item:hover .tr-rank { color: var(--red); }
.tr-info { flex: 1; min-width: 0; }
.tr-name {
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tr-platform {
  font-family: var(--font-display);
  font-size: .55rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}
.tr-score {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

/* Source list */
.source-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.source-item:last-child { border-bottom: none; }
.source-item:hover { background: var(--card); }
.source-pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.source-name {
  font-family: var(--font-body);
  font-size: .82rem; color: var(--sub); flex: 1;
  transition: color .2s;
}
.source-item:hover .source-name { color: var(--white); }
.source-count {
  font-family: var(--font-display);
  font-size: .6rem; letter-spacing: .1em;
  color: var(--muted);
}

/* ── EMPTY STATE ── */
.news-empty {
  padding: 60px 40px; text-align: center;
}
.news-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.news-empty h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; letter-spacing: .06em;
  color: var(--white); margin-bottom: 8px;
}
.news-empty p {
  font-family: var(--font-serif);
  font-size: .88rem; font-style: italic; color: var(--sub);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { border-right: none; border-top: 1px solid var(--border); }
  .news-feed    { border-right: none; }
  .article-featured { grid-template-columns: 1fr; }
  .news-page-header { padding: 20px 16px 0; }
  .article-card { grid-template-columns: 120px 1fr; }
  .article-card .art-body { padding: 12px 14px; }
}

@media (max-width: 600px) {
  .article-card { grid-template-columns: 90px 1fr; }
  .platform-tab { padding: 8px 12px; font-size: .7rem; }
}