/* =========================================================
   Publisher home page (hub) theme overlay
   Loaded AFTER css/style.css on / only.

   style.css is shared by both product sites and is frozen.
   This file re-declares its custom properties under
   [data-brand="hub"] so the front door reads as neither
   product: a neutral slate canvas, with each app card
   carrying its own brand accent instead.

   As with isharago.css, --gold keeps its name while holding
   a neutral value; renaming it would mean editing style.css.
   ========================================================= */

[data-brand="hub"] {
  color-scheme: dark;

  --bg: #0B0D11;
  --bg-alt: #0F1217;
  --surface: #14181F;
  --surface-2: #1A1F28;
  --border: #252B36;
  --border-soft: #1C222B;

  --text: #F3F5F8;
  --text-muted: #9BA5B4;
  --text-faint: #6B7484;

  /* Neutral accent: cool slate, deliberately not gold and not teal. */
  --gold: #7C8CA3;
  --gold-bright: #AEBBCC;
  --gold-deep: #556174;
  --gold-glow: rgba(124, 140, 163, 0.28);

  --gradient-gold: linear-gradient(135deg, #C6D2E2 0%, #8B9AB1 50%, #556174 100%);
  --gradient-hero:
    radial-gradient(circle at 12% 18%, rgba(124, 140, 163, 0.14), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(240, 192, 74, 0.06), transparent 40%),
    radial-gradient(circle at 60% 100%, rgba(26, 174, 138, 0.07), transparent 46%);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 12px 40px rgba(124, 140, 163, 0.16);
}

/* Gold literals baked into style.css component rules, neutralised here.
   tools/verify.sh (check_gold_leak) fails the build if a new one appears. */

[data-brand="hub"] .eyebrow {
  background: rgba(124, 140, 163, 0.12);
  border: 1px solid rgba(124, 140, 163, 0.28);
  color: var(--gold-bright);
}

[data-brand="hub"] .brand img {
  box-shadow: none;
}

[data-brand="hub"] .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(124, 140, 163, 0.28);
}

[data-brand="hub"] .feature-card:hover {
  border-color: rgba(124, 140, 163, 0.35);
}

[data-brand="hub"] .soon-tag {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-faint);
}

/* ---------- Profile ---------- */

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.profile-initials {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.profile-meta h1 {
  margin: 0 0 4px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.profile-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- App cards ----------
   Adding a third app is one <article class="app-card"> plus one
   --app-accent value. Nothing else needs to change. */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.app-card {
  --app-accent: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--app-accent);
  opacity: 0.85;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--app-accent);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-card-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: var(--surface-2);
  padding: 6px;
}

.app-card-name {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-card-kicker {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-accent);
  margin-top: 3px;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 18px;
  flex: 1;
}

.app-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.app-platforms {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.app-platforms span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}

.app-platforms span.live {
  background: rgba(34, 198, 117, 0.12);
  color: #3EE892;
}

.app-card-go {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--app-accent);
  white-space: nowrap;
}

/* Placeholder slot so the grid reads as "more to come" rather than empty. */
.app-card-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-faint);
  font-size: 0.9rem;
  min-height: 190px;
}

/* ---------- Legal index ---------- */

.legal-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.legal-index-col {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal-index-col h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.legal-index-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-index-col li { margin-bottom: 8px; }

.legal-index-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-index-col a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .profile { flex-direction: column; align-items: flex-start; gap: 14px; }
  [data-brand="hub"] .nav-links.is-open { background: rgba(11, 13, 17, 0.98); }
}
