/* ============================================================
   GameLikeUs — Homepage CSS
   /css/pages/home.css
   ============================================================ */

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  border-bottom: 1px solid var(--border);
  min-height: 460px;
}

.hero-featured {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  text-decoration: none;
  color: inherit;
  display: block;
  border-right: 1px solid var(--border);
}
.hero-featured-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
  filter: brightness(.45);
}
.hero-featured:hover .hero-featured-img { transform: scale(1.03); filter: brightness(.5); }
.hero-featured-body {
  position: relative; z-index: 2;
  padding: 0 40px 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 460px;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}
.hero-featured-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white);
  background: var(--red); padding: 5px 12px;
  margin-bottom: 14px; align-self: flex-start;
}
.hero-featured-source {
  font-family: var(--font-display);
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(245,240,235,.5); margin-bottom: 10px;
}
.hero-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: .02em;
  color: var(--white); line-height: 1.15; margin-bottom: 12px;
  transition: color .2s;
}
.hero-featured:hover .hero-featured-title { color: rgba(245,240,235,.85); }
.hero-featured-excerpt {
  font-family: var(--font-serif);
  font-size: .88rem; font-style: italic;
  color: rgba(245,240,235,.6); line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-featured-meta {
  display: flex; align-items: center; gap: 16px;
}
.hero-featured-plat {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero-featured-time {
  font-family: var(--font-display);
  font-size: .6rem; letter-spacing: .1em; color: rgba(245,240,235,.4);
}
.hero-read-more {
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-left: auto;
}

/* Hero sidebar — stacked mini articles */
.hero-sidebar { display: flex; flex-direction: column; }
.hero-sidebar-item {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
  flex: 1;
}
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item:hover { background: var(--card); }
.hsi-image {
  width: 100px; flex-shrink: 0;
  background: var(--card); overflow: hidden;
}
.hsi-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.hero-sidebar-item:hover .hsi-image img { transform: scale(1.05); }
.hsi-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hsi-platform {
  font-family: var(--font-display);
  font-size: .55rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 5px;
}
.hsi-title {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--white); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hsi-time {
  font-family: var(--font-display);
  font-size: .55rem; letter-spacing: .1em; color: var(--muted);
  margin-top: 8px;
}

/* ── SECTION LABELS ── */
.home-section {
  border-bottom: 1px solid var(--border);
}
.home-section-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(232,0,26,.025);
}
.home-section-title {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sub);
  display: flex; align-items: center; gap: 8px;
}
.home-section-title::before { content: '▸'; color: var(--red); }
.home-section-link {
  font-family: var(--font-display);
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  transition: color .2s;
}
.home-section-link:hover { color: var(--white); }

/* ── MAIN GRID ── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  border-bottom: 1px solid var(--border);
}
.home-main { border-right: 1px solid var(--border); }
.home-aside {}

/* ── NEWS LIST ── */
.news-row {
  display: grid; grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.news-row:hover { background: var(--card); }
.news-row:hover .nr-title { color: var(--red); }
.nr-image { overflow: hidden; aspect-ratio: 16/9; background: var(--card); }
.nr-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-row:hover .nr-image img { transform: scale(1.04); }
.nr-body { padding: 14px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.nr-source {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.nr-platform {
  font-family: var(--font-display);
  font-size: .55rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.nr-source-name {
  font-family: var(--font-display);
  font-size: .55rem; letter-spacing: .1em; color: var(--muted);
}
.nr-title {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  color: var(--white); line-height: 1.25;
  transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nr-time {
  font-family: var(--font-display);
  font-size: .55rem; letter-spacing: .1em; color: var(--muted); margin-top: 8px;
}

/* ── ASIDE: HOT THREADS ── */
.hot-thread {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.hot-thread:last-child { border-bottom: none; }
.hot-thread:hover { background: var(--card); }
.hot-thread:hover .ht-title { color: var(--red); }
.ht-num {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--border-l); width: 24px; flex-shrink: 0; line-height: 1;
  transition: color .2s;
}
.hot-thread:hover .ht-num { color: var(--red); }
.ht-body { flex: 1; min-width: 0; }
.ht-platform {
  font-family: var(--font-display);
  font-size: .52rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 4px;
}
.ht-title {
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 600;
  color: var(--white); line-height: 1.3;
  transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ht-meta {
  font-family: var(--font-display);
  font-size: .55rem; letter-spacing: .1em; color: var(--muted); margin-top: 5px;
}

/* ── HYPE RANKINGS ── */
.hype-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.hype-row:last-child { border-bottom: none; }
.hype-row:hover { background: var(--card); }
.hype-rank {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--border-l); width: 28px; text-align: center; flex-shrink: 0;
}
.hype-row:nth-child(1) .hype-rank { color: var(--gold); }
.hype-row:nth-child(2) .hype-rank { color: var(--sub); }
.hype-row:nth-child(3) .hype-rank { color: #cd7f32; }
.hype-info { flex: 1; min-width: 0; }
.hype-game {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 700;
  color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hype-platform {
  font-family: var(--font-display);
  font-size: .52rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.hype-votes {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  color: var(--green); flex-shrink: 0;
}

/* ── PLATFORM SPOTLIGHT BAR ── */
.platform-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.platform-card {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: background .2s;
  display: block;
}
.platform-card:last-child { border-right: none; }
.platform-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--plat-color, var(--red));
}
.platform-card:hover { background: var(--card); }
.platform-card-watermark {
  position: absolute; right: -8px; bottom: -10px;
  font-family: var(--font-display);
  font-size: 5rem; font-weight: 700; letter-spacing: -.04em;
  color: var(--plat-color, var(--red));
  opacity: .06; pointer-events: none; user-select: none;
  line-height: 1;
}
.pc-name {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--plat-color, var(--white)); margin-bottom: 12px;
}
.pc-stat {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--white);
  display: block; line-height: 1; margin-bottom: 4px;
}
.pc-label {
  font-family: var(--font-display);
  font-size: .55rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* ── JOIN CTA ── */
.join-cta {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 40px;
  padding: 48px 40px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  background: var(--surface);
}
.join-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(232,0,26,.03) 28px, rgba(232,0,26,.03) 29px);
  pointer-events: none;
}
.join-cta::after {
  content: '';
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,0,26,.06), transparent 65%);
  pointer-events: none;
}
.join-cta-body { position: relative; z-index: 1; }
.join-cta-label {
  font-family: var(--font-display);
  font-size: .65rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.join-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px; line-height: 1.1;
}
.join-cta-title span { color: var(--red); }
.join-cta-sub {
  font-family: var(--font-serif);
  font-size: .92rem; font-style: italic; color: var(--sub); line-height: 1.6;
}
.join-cta-actions { display: flex; gap: 12px; position: relative; z-index: 1; flex-shrink: 0; }
.btn-cta-primary {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 32px;
  background: var(--red); color: var(--white);
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.btn-cta-primary:hover { background: var(--red-dark); }
.btn-cta-secondary {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 13px 24px;
  background: transparent; color: var(--sub);
  border: 1.5px solid var(--border-l);
  text-decoration: none; white-space: nowrap;
  transition: all .2s;
}
.btn-cta-secondary:hover { border-color: var(--white); color: var(--white); }

/* ── EMPTY STATE ── */
.home-empty {
  padding: 40px 28px; text-align: center;
  font-family: var(--font-serif);
  font-size: .85rem; font-style: italic; color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .platform-bar { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .hero                  { grid-template-columns: 1fr; min-height: auto; }
  .hero-featured         { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-featured-body    { min-height: 280px; padding: 0 20px 24px; }
  .hero-sidebar          { display: grid; grid-template-columns: 1fr 1fr; }
  .hsi-image             { width: 80px; }
  .home-grid             { grid-template-columns: 1fr; }
  .home-main             { border-right: none; }
  .platform-bar          { grid-template-columns: repeat(3, 1fr); }
  .platform-card:nth-child(3) { border-right: none; }
  .join-cta              { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .home-section-bar      { padding: 12px 16px; }
  .news-row              { grid-template-columns: 100px 1fr; }
}
@media (max-width: 600px) {
  .hero-sidebar          { grid-template-columns: 1fr; }
  .platform-bar          { grid-template-columns: repeat(2, 1fr); }
  .platform-card:nth-child(2) { border-right: none; }
  .join-cta-actions      { flex-direction: column; }
  .news-row              { grid-template-columns: 80px 1fr; }
}
