/* SikGamingHQ — "Today's Board" design, translated from the Claude Design
   export. Brand tokens: primary #001823, secondary #AAC1D0, accent #E8A24C,
   headline font Poppins, body font Source Sans 3. */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* .board-list / .grid-list both set `display` explicitly, which otherwise
   beats the UA [hidden] default regardless of source order or specificity. */
[hidden] { display: none !important; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: #001823;
  color: #EEF3F6;
  background-image: linear-gradient(rgba(170,193,208,0.028) 1px, transparent 1px);
  background-size: 100% 44px;
  background-position: 0 88px;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
  padding: 16px clamp(16px,4vw,52px);
  background: rgba(0,24,35,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(170,193,208,0.12);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark {
  display: flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid rgba(170,193,208,0.28); border-radius: 8px;
  background: linear-gradient(150deg,#0b2c3b,#04202c);
}

.brand-mark-img { width: 22px; height: 22px; object-fit: contain; display: block; }

.brand-name {
  white-space: nowrap; text-transform: uppercase;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px;
  letter-spacing: 0.05em; color: #EEF3F6;
}

.brand-hq { color: #AAC1D0; }

.header-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.site-nav { display: flex; align-items: center; gap: 20px; }

.nav-active {
  position: relative;
  font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; color: #EEF3F6;
}

/* Underline as an absolutely-positioned pseudo-element rather than a
   border/padding, so it doesn't add box height and throw off vertical
   centering against the other (unbordered) nav items in .site-nav. */
.nav-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #AAC1D0;
}

.nav-soon {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 600;
  color: rgba(170,193,208,0.4);
}

.nav-soon em {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  padding: 2px 6px; border: 1px solid rgba(170,193,208,0.22); border-radius: 100px;
}

.live-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid rgba(170,193,208,0.18); border-radius: 100px;
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #AAC1D0;
}

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #E8A24C;
  animation: livepulse 1.8s ease-in-out infinite;
}

@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- homepage ---------- */

.home-main {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(20px,4vw,44px) clamp(16px,4vw,52px) 80px;
}

/* Driven entirely by pagination-transition.js on click, not by real
   document navigation — sidesteps browser-specific navigation/
   prerendering behavior (this is what made the CSS-only attempts
   unreliable in Arc) since no actual page load happens for a
   fetch()-swapped pagination click. */
@media (prefers-reduced-motion: no-preference) {
  .home-main { transition: opacity 0.2s ease; }
  .home-main.is-transitioning { opacity: 0; }
}

.board-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 18px; margin-bottom: 22px;
}

.board-title-row h1 {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(28px,5vw,46px); letter-spacing: -0.015em; line-height: 1.12;
}

.board-subtitle {
  margin-top: 12px; font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(14px,1.6vw,16px); color: #AAC1D0; max-width: 46ch;
}

.empty-state { color: #AAC1D0; font-family: 'Source Sans 3', sans-serif; padding: 40px 0; }

/* view toggle */

.view-toggle {
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid rgba(170,193,208,0.2); border-radius: 100px;
  background: rgba(170,193,208,0.04);
}

.view-btn {
  appearance: none; cursor: pointer; border: none; background: transparent;
  font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; color: #AAC1D0; padding: 7px 16px; border-radius: 100px;
  transition: background .15s, color .15s;
}

.view-btn.active { background: #AAC1D0; color: #001823; }

/* hero / leader */

.hero {
  position: relative; display: flex; align-items: flex-end; width: 100%;
  min-height: clamp(340px,42vw,510px); margin: 26px 0;
  border: 1px solid rgba(170,193,208,0.16); border-radius: 5px; overflow: hidden;
  background: #0b2c3b; text-decoration: none; display: block;
}

.hero-thumb, .hero-thumb.thumb-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,24,35,0.97) 0%, rgba(0,24,35,0.72) 42%, rgba(0,24,35,0.08) 100%);
  display: flex; align-items: flex-end;
}

.hero-meta {
  position: relative; display: flex; align-items: flex-start;
  gap: clamp(14px,2.5vw,26px); padding: clamp(20px,3.5vw,40px); width: 100%;
}

.hero-rank {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(40px,7vw,80px); line-height: 0.85; color: #AAC1D0; letter-spacing: -0.04em;
}

.hero-copy { flex: 1; }

.pill-category {
  display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #001823; background: #AAC1D0; padding: 4px 9px; border-radius: 2px; margin-bottom: 12px;
}

.hero-copy h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(24px,4.2vw,50px);
  line-height: 1.15; letter-spacing: -0.012em;
}

.hero-source {
  /* Plain inline text now (no CTA span alongside it) — was display:flex,
     which treated the bare "via " text node and the <strong> element as
     separate flex items and inserted `gap` between them too, causing an
     oversized, uneven space instead of normal inline spacing. */
  margin-top: 16px;
  font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: #AAC1D0;
}

.hero-source strong { color: #EEF3F6; }

/* board list */

.board-list { display: flex; flex-direction: column; gap: 10px; }

.board-row {
  /* stretch (not center) so the thumbnail's height tracks the copy
     column's actual content height instead of a fixed aspect-ratio —
     robust to any headline length, rather than a number that drifts out
     of sync the moment text wraps differently. */
  display: flex; align-items: stretch; gap: clamp(12px,2vw,22px); flex-wrap: wrap;
  width: 100%; padding: 14px clamp(14px,2vw,20px);
  background: #06212e; border: 1px solid rgba(170,193,208,0.1); border-radius: 4px;
  text-decoration: none; transition: border-color .15s, background .15s;
}

.board-row:hover { background: #0b2c3b; border-color: rgba(170,193,208,0.3); }

.board-rank {
  display: flex; align-items: center; justify-content: center;
  width: 44px; flex-shrink: 0; text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(24px,3vw,34px);
  color: #AAC1D0; letter-spacing: -0.03em;
}

.board-thumb {
  /* No fixed width: height comes from the row's stretch (matching the
     copy column), and aspect-ratio computes width from that height —
     keeps the 16:10 ratio intact instead of distorting the crop by
     stretching height against a fixed width. max-width is just a
     safety cap so an unusually tall copy column can't blow this out. */
  position: relative; aspect-ratio: 16/10; max-width: 200px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden; background: #0b2c3b;
  border: 1px solid rgba(170,193,208,0.1);
}

.board-thumb-img, .board-thumb-img.thumb-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.board-copy {
  /* .board-row's align-items: stretch gives this box the full thumbnail
     height, but its children (pill, h3, source) are normal block flow —
     they were just sitting at the top, leaving dead space below instead
     of the source line reaching the bottom. Column flex + space-between
     pins the pill to the top and the source line to the bottom. */
  flex: 1; min-width: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}

.pill-category-sm {
  display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 10px;
  font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: #001823; background: #AAC1D0; padding: 3px 7px; border-radius: 2px;
  margin-bottom: 6px;
  /* .grid-card-copy is a column flex container, whose default
     align-items: stretch otherwise stretches this to full width despite
     being inline-block — display only controls in-flow sizing, not a flex
     item's cross-axis size. */
  align-self: flex-start;
}

.board-copy h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(16px,2vw,20px);
  line-height: 1.32; letter-spacing: -0.005em; color: #EEF3F6;
  /* Clamp to 2 lines (desktop default — mobile override at the end of this
     file bumps to 3) with an ellipsis, and reserve that height (line-height
     em unit tracks the clamped font-size) even when the title is shorter,
     so cards stay a consistent height regardless of headline length. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden; min-height: 2.64em;
}

.board-source {
  display: inline-block; margin-top: 7px; font-family: 'Source Sans 3', sans-serif;
  font-size: 13px; color: rgba(170,193,208,0.7);
}

/* grid list (alternate view) */

.grid-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px;
}

.grid-card {
  display: flex; flex-direction: column; width: 100%;
  background: #06212e; border: 1px solid rgba(170,193,208,0.1); border-radius: 5px;
  overflow: hidden; text-decoration: none; transition: border-color .15s;
}

.grid-card:hover { border-color: rgba(170,193,208,0.3); }

.grid-card-thumb {
  position: relative; aspect-ratio: 16/9; background: #0b2c3b;
}

.grid-card-thumb-img, .grid-card-thumb-img.thumb-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.grid-card-rank {
  position: absolute; top: 0; left: 0; padding: 6px 12px 8px;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; line-height: 1;
  color: #EEF3F6; letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(0,24,35,0.85), rgba(0,24,35,0));
}

.grid-card-copy { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.grid-card-copy h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px;
  line-height: 1.32; letter-spacing: -0.005em; color: #EEF3F6; margin-top: 2px;
  /* Always 3 lines, mobile and desktop alike — only .board-copy h3 splits
     by breakpoint (see the mobile override at the end of this file). */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  line-clamp: 3; overflow: hidden; min-height: 3.96em;
}

/* pagination */

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(170,193,208,0.1);
}

.page-link, .page-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; color: #AAC1D0; background: transparent;
  border: 1px solid rgba(170,193,208,0.24);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s ease;
}

.page-link:hover, .page-arrow:hover { border-color: rgba(170,193,208,0.45); transform: scale(1.08); }

.page-link:active, .page-arrow:active { transform: scale(0.92); }

.page-link.active {
  color: #001823; background: #AAC1D0; border-color: #AAC1D0;
}

.page-arrow.disabled {
  color: rgba(170,193,208,0.22); border-color: rgba(170,193,208,0.09);
  pointer-events: none;
}

.page-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; color: rgba(170,193,208,0.4); font-size: 14px;
}

/* thumbnail placeholder (used when an article has no image) */
.thumb-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-image: repeating-linear-gradient(135deg, rgba(170,193,208,0.06) 0 9px, rgba(170,193,208,0) 9px 18px);
  font-family: ui-monospace, 'SFMono-Regular', monospace; font-size: 9px;
  letter-spacing: 0.12em; color: rgba(170,193,208,0.42);
}

/* ---------- article page ---------- */

.article-main {
  max-width: 820px; margin: 0 auto;
  padding: clamp(20px,4vw,40px) clamp(16px,4vw,52px) 90px;
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 8px 14px; border: 1px solid rgba(170,193,208,0.2); border-radius: 100px;
  text-decoration: none; font-family: 'Source Sans 3', sans-serif; font-size: 13px;
  font-weight: 600; color: #AAC1D0;
}
.back-link:hover { border-color: rgba(170,193,208,0.45); color: #EEF3F6; }

.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.article-main h1 {
  margin: 0 0 18px; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(28px,5vw,48px); line-height: 1.04; letter-spacing: -0.03em;
}

.article-hero {
  position: relative; aspect-ratio: 16/9; margin-bottom: 26px; border-radius: 5px;
  overflow: hidden; border: 1px solid rgba(170,193,208,0.16); background: #0b2c3b;
}

.article-hero-img, .article-hero-img.thumb-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.ai-box {
  position: relative; padding: 24px clamp(20px,3vw,30px); margin-bottom: 26px;
  background: #06212e; border: 1px solid rgba(170,193,208,0.12); border-radius: 5px;
}

.ai-box-label {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; color: #E8A24C;
}

.ai-box-logo-mark {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(170,193,208,0.28);
  background: linear-gradient(150deg,#0b2c3b,#04202c);
}

/* even dimensions on both the mark's content box (26px - 2x1px border =
   24px) and the logo keep the centering an exact integer instead of a
   .5px split that browsers round inconsistently. */
.ai-box-logo { width: 16px; height: 16px; object-fit: contain; display: block; }

.ai-box p {
  font-family: 'Source Sans 3', sans-serif; font-size: clamp(16px,2vw,19px);
  line-height: 1.6; color: #DCE6EC;
}

.source-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(20px,3vw,28px); background: #AAC1D0; border-radius: 5px;
  text-decoration: none; transition: background .15s;
}
.source-cta:hover { background: #c3d4df; }

.source-cta-copy { display: flex; flex-direction: column; gap: 3px; }

.source-cta-label {
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0,24,35,0.6);
}

.source-cta-publisher {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(17px,2.4vw,22px);
  letter-spacing: -0.01em; color: #001823;
}

.source-cta-arrow { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; color: #001823; }

.source-note {
  margin: 12px 2px 0; font-family: 'Source Sans 3', sans-serif; font-size: 12.5px;
  color: rgba(170,193,208,0.55);
}

.up-next { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(170,193,208,0.12); }

.up-next h3 {
  margin: 0 0 16px; font-family: 'Source Sans 3', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #AAC1D0;
}

.up-next-list { display: flex; flex-direction: column; gap: 8px; }

.up-next-row {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 14px;
  background: #06212e; border: 1px solid rgba(170,193,208,0.1); border-radius: 4px;
  text-decoration: none; transition: border-color .15s;
}
.up-next-row:hover { border-color: rgba(170,193,208,0.28); }

.up-next-headline {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  line-height: 1.2; color: #EEF3F6;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid rgba(170,193,208,0.1);
  padding: 28px clamp(16px,4vw,52px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  font-family: 'Source Sans 3', sans-serif; font-size: 12.5px; color: rgba(170,193,208,0.5);
}

.footer-social { display: flex; align-items: center; gap: 12px; }

.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(170,193,208,0.28); color: #AAC1D0;
  transition: border-color .15s, color .15s, background .15s;
}

.social-btn:hover { border-color: rgba(170,193,208,0.55); color: #EEF3F6; background: rgba(170,193,208,0.06); }

/* ---------- mobile menu (burger) ---------- */
/* Placed last on purpose: .mobile-menu-panel reuses .footer-social for its
   own social row, and the mobile override below needs to win over the
   earlier unconditional .footer-social/.site-footer rules above — equal
   specificity means source order decides, so this has to come after them. */

.mobile-menu { display: none; }

.burger-btn {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  /* Fixed rather than laid out via .site-header's flex row, since
     .mobile-menu now lives outside <header> (see .mobile-menu-panel
     comment below for why) — this just re-places it visually where it
     was, in the header's top-right corner. */
  position: fixed; top: 16px; right: clamp(16px,4vw,52px); z-index: 210;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid rgba(170,193,208,0.28);
  background: linear-gradient(150deg,#0b2c3b,#04202c);
  color: #EEF3F6; list-style: none;
}

.burger-btn::-webkit-details-marker { display: none; }
.burger-btn::marker { content: ''; }

.burger-icon-close { display: none; }
.mobile-menu[open] .burger-icon-open { display: none; }
.mobile-menu[open] .burger-icon-close { display: block; }

/* Always rendered (overrides <details>'s default display:none-when-closed
   via normal author-beats-UA cascade precedence) so transform can animate
   it — full-screen, slides in from the right, slides out the same way. */
.mobile-menu-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  position: fixed; inset: 0;
  background: #001823;
  background-image: linear-gradient(rgba(170,193,208,0.028) 1px, transparent 1px);
  background-size: 100% 44px;
  background-position: 0 88px;
  z-index: 200;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s ease,
              visibility 0s linear 0.32s;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.32s ease,
              visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel { transition: none; }
}

.mobile-menu-panel .site-nav { flex-direction: column; gap: 22px; }
.mobile-menu-panel .nav-active { font-size: 20px; }
.mobile-menu-panel .nav-soon { font-size: 16px; }
.mobile-menu-panel .live-pill { font-size: 12px; padding: 8px 16px; }
.mobile-menu-panel .footer-social { gap: 18px; }
.mobile-menu-panel .social-btn { width: 42px; height: 42px; }
.mobile-menu-panel .social-btn svg { width: 22px; height: 22px; }

/* Keeps the page from scrolling behind the full-screen panel. */
body:has(.mobile-menu[open]) { overflow: hidden; }

@media (max-width: 768px) {
  .header-right { display: none; }
  .mobile-menu { display: block; }
  .site-footer { justify-content: center; }
  /* Scoped to the footer specifically — .footer-social is also reused
     inside .mobile-menu-panel above and must stay visible there. */
  .site-footer .footer-social { display: none; }

  /* Board headlines clamp to 2 lines on desktop (set above); mobile gets a
     3rd line since rows are full-width and have more room to breathe.
     Grid stays 3 lines everywhere (its own rule, not overridden here). */
  .board-copy h3 {
    -webkit-line-clamp: 3; line-clamp: 3; min-height: 3.96em;
  }
}

/* Board's row layout fits fine as-is down to ~520px (see the 768px block
   above) — below that, rather than maintaining a second stacked-layout
   variant of Board, just force Grid (which is already a thumbnail-on-top,
   text-below card — the exact shape Board would otherwise need to become)
   and hide the toggle, since there's no reason to offer a choice between
   a view that doesn't fit and one that does. Uses !important because
   .grid-list's default-hidden state comes from the `hidden` attribute
   ([hidden] { display: none !important } elsewhere in this file), and
   .board-list is shown by default (no JS/attribute state to override, but
   kept as !important too for symmetry/robustness against future changes
   to how the toggle is implemented). */
@media (max-width: 520px) {
  .view-toggle { display: none; }
  .board-list { display: none !important; }
  .grid-list { display: grid !important; }
}
