/* ============================================================
   Djarumplay Redesign 2026 — visual layer (child theme add-on)
   Chuẩn giao diện Reviewstook áp cho djarumplay-maxwin.com.
   Fonts: Anton (display) / Archivo (UI) / Space Mono (labels)
   Accent: #2E5BFF (hover #1F49D8) · Header/Footer: #0A0C10
   NOTE: does NOT touch the yellow Amazon button rules.
   Scoped to body.rd-gaming so other sites sharing the theme
   codebase are never affected.
   ============================================================ */

/* ---------- Design tokens ---------- */
body.rd-gaming {
  --rd-accent: #2E5BFF;
  --rd-dark: #0A0C10;
}

/* ---------- Base typography ---------- */
body.rd-gaming,
body.rd-gaming button,
body.rd-gaming input,
body.rd-gaming select,
body.rd-gaming textarea {
  font-family: 'Archivo', 'Segoe UI', Arial, sans-serif;
}
body.rd-gaming h1,
body.rd-gaming h2,
body.rd-gaming .rd-brand-name {
  font-family: 'Anton', 'Archivo', sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 400;
}
body.rd-gaming h3,
body.rd-gaming h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
}
body.rd-gaming .rd-eyebrow,
body.rd-gaming .rd-date,
body.rd-gaming .rd-image-label small,
body.rd-gaming .rd-footer-bottom,
body.rd-gaming .dj-mega-col small {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
body.rd-gaming .rd-eyebrow { color: #2E5BFF; }

/* ---------- Header ---------- */
body.rd-gaming .rd-topline {
  background: #0A0C10;
  color: rgba(255, 255, 255, .75);
}
body.rd-gaming .rd-header {
  background: #0A0C10;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
body.rd-gaming .rd-header a { color: #fff; }
body.rd-gaming .rd-brand-name {
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1;
}
body.rd-gaming .rd-brand-name small {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .62rem;
  color: rgba(255, 255, 255, .65);
}
body.rd-gaming .rd-mark { background: #2E5BFF; color: #fff; }
body.rd-gaming .rd-desktop-nav a {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  transition: background .15s ease;
}
body.rd-gaming .rd-desktop-nav a:hover { background: rgba(255, 255, 255, .12); }
body.rd-gaming .rd-desktop-nav a.dj-all-topics {
  background: #2E5BFF;
  color: #fff;
}
body.rd-gaming .rd-desktop-nav a.dj-all-topics:hover,
body.rd-gaming .rd-desktop-nav a.dj-all-topics[aria-expanded="true"] {
  background: #1F49D8;
}
body.rd-gaming .rd-search-toggle,
body.rd-gaming .rd-menu-toggle { color: #fff; }

/* ---------- Mega menu (ALL TOPICS) ---------- */
body.rd-gaming .dj-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0A0C10;
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
  z-index: 95;
  padding: 22px 0 14px;
}
body.rd-gaming .dj-mega[hidden] { display: none; }
body.rd-gaming .dj-mega-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 26px;
}
body.rd-gaming .dj-mega-col h3 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 700;
  color: #2E5BFF;
  margin: 0 0 10px;
}
body.rd-gaming .dj-mega-col a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
body.rd-gaming .dj-mega-col a:hover { color: #9DB4FF; }
body.rd-gaming .dj-mega-col small {
  font-size: .64rem;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}
body.rd-gaming .dj-mega-foot { padding-top: 12px; }
body.rd-gaming .dj-mega-foot a {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #2E5BFF;
}
body.rd-gaming .dj-mega-foot a:hover { color: #9DB4FF; }

/* ---------- Hero / buttons / values ---------- */
body.rd-gaming .rd-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
}
body.rd-gaming .rd-hero h1 em { color: #2E5BFF; }
body.rd-gaming .rd-button {
  background: #2E5BFF;
  color: #fff !important;
}
body.rd-gaming .rd-button:hover { background: #1F49D8; color: #fff !important; }
body.rd-gaming .rd-dot { background: #2E5BFF; }
body.rd-gaming .rd-value-number {
  font-family: 'Anton', 'Archivo', sans-serif;
  color: #2E5BFF;
}
body.rd-gaming .rd-text-link { color: #2E5BFF; }
body.rd-gaming .rd-text-link:hover { color: #1F49D8; }

/* ---------- Intent cards (homepage topics) ---------- */
body.rd-gaming .rd-topic { overflow: hidden; }
body.rd-gaming .rd-topic:hover { border-color: #2E5BFF; }
body.rd-gaming .rd-topic .dj-intent-img {
  display: block;
  width: calc(100% + 32px);
  margin: -14px -16px 12px;
  height: 110px;
  object-fit: cover;
}
body.rd-gaming .rd-topic-no {
  font-family: 'Anton', 'Archivo', sans-serif;
  color: #2E5BFF;
}
body.rd-gaming .rd-more-topics a:hover { color: #2E5BFF; }

/* ---------- Homepage topic hub tiles (JS adds .dj-hub-grid) ---------- */
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link .dj-tile-img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link > span { padding: 8px 12px 0; }
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link > span:last-child {
  padding: 0 12px 10px;
  font-family: 'Space Mono', monospace;
  color: #2E5BFF;
  opacity: 1;
}
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid.dj-collapsed > li:nth-child(n+13) { display: none; }
body.rd-gaming .dj-topics-toggle {
  display: inline-block;
  margin-top: 16px;
  background: #2E5BFF;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .7rem 1.4rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  cursor: pointer;
}
body.rd-gaming .dj-topics-toggle:hover { background: #1F49D8; }

/* ---------- Cards / latest list ---------- */
body.rd-gaming .rd-card h3,
body.rd-gaming .rd-latest-item h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
body.rd-gaming .rd-list-number {
  font-family: 'Anton', 'Archivo', sans-serif;
  color: #2E5BFF;
}
body.rd-gaming .rd-card:hover { border-color: #2E5BFF; }

/* ---------- Directory (guides page) ---------- */
body.rd-gaming .rd-group-tabs a[aria-current] { background: #2E5BFF; border-color: #2E5BFF; color: #fff; }
body.rd-gaming .rd-directory-group:hover { border-color: #2E5BFF; }
body.rd-gaming .rd-directory a:hover { color: #2E5BFF; }

/* ---------- Footer ---------- */
body.rd-gaming .rd-footer {
  background: #0A0C10;
  color: #fff;
}
body.rd-gaming .rd-footer h2 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: #2E5BFF;
}
body.rd-gaming .rd-footer a { color: rgba(255, 255, 255, .85); }
body.rd-gaming .rd-footer a:hover { color: #fff; }

/* ---------- Catsweep 20261121: guides directory tiles + footer clusters ---------- */
body.rd-gaming .dj-dir-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; }
body.rd-gaming .dj-dir-tile { display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(127,127,127,.3); border-radius: 8px; overflow: hidden; text-decoration: none; background: #fff; color: #14161a; }
body.rd-gaming .dj-dir-tile .dj-dir-img { display: block; width: 100%; height: 110px; object-fit: cover; }
body.rd-gaming .dj-dir-tile > span { padding: 8px 12px 0; font-weight: 700; }
body.rd-gaming .dj-dir-tile > small { padding: 0 12px 10px; font-family: 'Space Mono', monospace; color: #2E5BFF; }
body.rd-gaming .dj-dir-extra { display: none; }
body.rd-gaming .dj-subtopic-img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
body.rd-gaming .dj-footer-explore { min-width: 260px; }
body.rd-gaming .dj-footer-cluster { margin-bottom: 10px; }
body.rd-gaming .dj-footer-cluster h3 { font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9DB4FF; margin: 0 0 4px; }
body.rd-gaming .dj-footer-cluster a { display: block; }
body.rd-gaming .dj-footer-all { font-weight: 800; color: #fff; }

/* FIX 2026-11-23 (Lion): nhãn ô danh mục trang chủ (hub tiles) kế thừa --rd-ink
   gần trắng #f2f5ed của palette rd-gaming trên nền thẻ trắng → khách không đọc
   được tên danh mục (chỉ thấy số đếm xanh). Đổi nhãn sang xanh accent #2E5BFF. */
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link { color: #2E5BFF; }
body.rd-gaming .rd-topic-hubs ul.dj-hub-grid > li > a.dj-tile-link > span:first-of-type {
  color: #2E5BFF;
  font-weight: 700;
}
