 /* =========================================================
   /public_html/lib/css/platforms.css
   Platforms module styles (landing + per-platform pages)
   Depends on: /lib/css/public.css (mk-* UI tokens)
   ========================================================= */

/* ---------------------------------------------------------
   Page spacing helpers
--------------------------------------------------------- */
.mk-page { padding: 24px 0; }

.mk-page-actions{
  margin: 8px 0 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Compact hero variant for platform pages */
.mk-hero.mk-hero--compact .mk-hero__inner { padding: 18px 18px 16px; }

.mk-lede{
  margin-top: 8px;
  max-width: 88ch;
  line-height: 1.75;
}

.mk-hero__actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------------------------------------------------------
   Platforms landing hero (pf-hero)
--------------------------------------------------------- */
.pf-hero{
  margin-top: 8px;
  border: 1px solid var(--border, rgba(0,0,0,.10));
  border-radius: calc(var(--radius, 16px) + 2px);
  background: var(--card, #fff);
  overflow: hidden;
  box-shadow: var(--shadow, 0 12px 28px rgba(0,0,0,.05));
}

.pf-hero__bar{
  height: 7px;
  background: var(--accent, #111);
}

.pf-hero__inner{
  padding: 18px 18px 16px;
}

.pf-hero__title{
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.pf-hero__desc{
  margin: 8px 0 0;
  max-width: 92ch;
  line-height: 1.75;
  color: var(--text, inherit);
}

/* ---------------------------------------------------------
   Platforms sections
--------------------------------------------------------- */
.pf-section{ margin-top: 18px; }

.pf-section__title{
  margin: 24px 0 10px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.pf-section__title h2{
  margin:0;
  font-size: 1.15rem;
}

/* ---------------------------------------------------------
   Platforms grid/cards
--------------------------------------------------------- */
.pf-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

/* Critical: defend against global resets from public.css or other CSS.
   This ensures BOTH "Available now" and "Coming soon" render as grid. */
.mk-page .pf-section > .pf-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 12px !important;
  width: 100%;
}

/* Ensure children behave as grid items (defends against floats/width rules) */
.mk-page .pf-section > .pf-grid > *{
  min-width: 0;
}

/* Card */
.pf-card{
  border: 1px solid var(--border, rgba(0,0,0,.10));
  border-radius: calc(var(--radius, 16px) + 2px);
  background: var(--card, #fff);
  overflow:hidden;
  box-shadow: var(--shadow, 0 12px 28px rgba(0,0,0,.05));
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 170px;
}

.pf-card:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.22);
  box-shadow: var(--shadow-hover, 0 18px 36px rgba(0,0,0,.08));
}

/* Accent bar */
.pf-card__bar{
  height: 7px;
  background: var(--pf-accent, #111);
}

/* Full-card links (support both old + current DOM hooks) */
.pf-card__link,
.pf-stretch{
  text-decoration:none;
  color: inherit;
  display:block;
  height:100%;
}

/* Extra defense: some globals force anchors inline */
.pf-card__link{
  display:block !important;
  height:100%;
  color: inherit;
  text-decoration:none;
}

/* Disabled preview cards (Coming soon section) */
.pf-card__link.is-disabled{
  cursor: not-allowed;
  opacity: .72;
  filter: grayscale(18%);
}

.pf-card__link.is-disabled:hover{
  transform: none;
}

/* Body */
.pf-card__body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}

.pf-card__top{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.pf-card__text{ min-width:0; }

.pf-card__title{
  margin: 2px 0 6px;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pf-card__desc{
  margin: 0;
  line-height: 1.6;
  color: var(--text, inherit);
}

/* Icon block */
.pf-icon{
  width:56px;
  height:56px;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(0,0,0,.10));
  background: rgba(0,0,0,0.02);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

/* Pills + meta row */
.pf-pill{
  display:inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  background: #fff;
  font-size: .85rem;
  color: #495057;
}

.pf-card__meta{
  margin-top:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Small text helper */
.pf-note{ font-size: .92rem; }

/* ---------------------------------------------------------
   Platform accent mapping (Option 1 slugs)
--------------------------------------------------------- */
.pf-card--blog { --pf-accent: #2F3A4A; }
.pf-card--forum { --pf-accent: #2F4A5A; }
.pf-card--podcast { --pf-accent: #3C2F4A; }
.pf-card--vlog { --pf-accent: #4A2F59; }
.pf-card--gallery { --pf-accent: #4A3F2F; }
.pf-card--knowledge-index { --pf-accent: #2F4A43; }
.pf-card--media-library { --pf-accent: #59312F; }

/* Extra discovered platforms */
.pf-card--communities { --pf-accent: #2F4658; }
.pf-card--posts       { --pf-accent: #3B3F52; }
.pf-card--reel        { --pf-accent: #4A3A2F; }
.pf-card--threads     { --pf-accent: #2F4A43; }
