/* Marketplace whitelabel creator hub — themed to match marketplace.tyga.games.

   Faithful port of WeSell's Steam/games storefront chrome, retargeted at a
   CREATOR roster. The page background is the operator BRAND colour
   (--hub-primary, cherry red for tyga.games); the accent underline / active
   states use --hub-accent (bright blue for tyga.games). Both are injected
   per-marketplace from the operator theme in marketplace-hub.ejs. The top nav
   (.mp-navbar) and footer (.mp-footer) are the dark games chrome, styled inline
   in the view exactly as WeSell renders them. */

.hub-body {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Operator brand background (cherry red for tyga.games) */
  background: var(--hub-primary, #d2042d);
  color: #f3d9dd;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Translucent-white "card" tint that reads over the red brand background. */
.hub-body {
  --card: rgba(255, 255, 255, .14);
  --card-hover: rgba(255, 255, 255, .24);
  --hub-primary-dark: color-mix(in srgb, var(--hub-primary, #d2042d) 76%, #000);
}

/* ---- Red browse sub-nav (Steam-style, under the dark top nav) ---- */
.hub-subnav {
  background: var(--hub-primary-dark, #a3021f);
  border-bottom: 1px solid rgba(0, 0, 0, .55);
  position: sticky;
  top: 68px;
  z-index: 1010;
}
.hub-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.hub-subnav-link {
  color: #f0c9cf;
  text-decoration: none;
  font-size: 13px;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: color .15s, box-shadow .15s;
}
.hub-subnav-link:hover { color: #fff; text-decoration: none; }
.hub-subnav-link.active { color: #fff; box-shadow: inset 0 -3px 0 var(--hub-accent, #66c0f4); }
.hub-subnav-link.ms-auto { margin-left: auto; }

/* ---- Content container ---- */
.hub-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; }

/* ---- Hero (dark contained featured banner, like the games carousel) ---- */
.hub-hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
  padding: 96px 28px 28px;
  margin-bottom: 40px;
}
.hub-hero-inner { max-width: 720px; }
.hub-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 700; color: var(--hub-accent, #66c0f4); margin-bottom: 12px;
}
.hub-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.06;
  margin: 0 0 14px; letter-spacing: -.01em; color: #fff;
}
.hub-sub { font-size: 1.05rem; color: rgba(255, 255, 255, .82); max-width: 60ch; margin: 0 0 18px; }
.hub-stats { display: flex; gap: 22px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.hub-stats strong { color: #fff; }
.hub-live-count strong { color: #ff5a5c; }

/* ---- Section heading (left accent bar, Steam-style) ---- */
.hub-section { margin-bottom: 40px; }
.hub-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hub-section-head h2 {
  color: #fff; font-weight: 500; font-size: 18px; margin: 0;
  text-transform: uppercase; letter-spacing: .04em;
  border-left: 3px solid var(--hub-accent, #66c0f4); padding-left: 10px;
}
.hub-empty { color: rgba(255, 255, 255, .78); font-size: 1rem; }

/* ---- Grid + creator cards (translucent white over the red brand) ---- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.hub-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px; overflow: hidden;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
  color: inherit; text-decoration: none;
}
.hub-card-cover {
  height: 118px; background-size: cover; background-position: center;
  background-color: rgba(0, 0, 0, .25); position: relative;
}
.hub-card-live {
  position: absolute; top: 10px; left: 10px;
  background: #ff4d4f; color: #fff; font-size: .68rem; font-weight: 800;
  padding: 4px 9px; border-radius: 3px; letter-spacing: .04em;
}
.hub-card-body { display: flex; align-items: center; gap: 12px; padding: 0 14px; margin-top: -26px; }
.hub-card-avatar {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hub-primary-dark, #a3021f); background: var(--hub-primary-dark, #a3021f);
}
.hub-card-meta { display: flex; flex-direction: column; min-width: 0; padding-top: 24px; }
.hub-card-name { font-weight: 700; font-size: .96rem; color: #fff; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-card-verified { color: var(--hub-accent, #66c0f4); font-size: .82rem; }
.hub-card-username { font-size: .82rem; color: rgba(255, 255, 255, .6); }
.hub-card-bio { padding: 10px 14px 16px; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .78); line-height: 1.5; }

@media (max-width: 640px) {
  .hub-hero { padding: 64px 20px 22px; }
  .hub-wrap { padding: 20px 16px 40px; }
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
