/* ================= IP DETAIL (project hub) ================= */
/* Extends open-dna.css tokens (--od-*). Include open-dna.css before this file. */

.ipd-hero {
  position: relative;
  border-radius: var(--od-radius);
  overflow: hidden;
  margin: 18px 0 28px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.ipd-hero-bg { position: absolute; inset: 0; }
.ipd-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,10,35,0.92) 0%, rgba(15,10,35,0.55) 45%, rgba(15,10,35,0.15) 75%, transparent 100%);
}
.ipd-hero-body { position: relative; padding: 30px 32px; width: 100%; color: #fff; }
.ipd-hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ipd-hero-top .stage { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); font-size: 11px; font-weight: 800; }
.ipd-hero-top .genre { font-size: 12.5px; color: rgba(255,255,255,0.8); }
.ipd-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.ipd-hero-tagline { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 20px; max-width: 560px; }

.ipd-hero-stats { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.ipd-hero-stat .label { font-size: 10.5px; color: rgba(255,255,255,0.65); font-weight: 700; }
.ipd-hero-stat .value { font-size: 19px; font-weight: 800; margin: 2px 0 6px; }
.ipd-hero-stat .bar { width: 110px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.22); overflow: hidden; }
.ipd-hero-stat .bar-fill { height: 100%; background: linear-gradient(90deg, var(--od-purple-2), var(--od-blue)); }

.ipd-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ipd-btn-join { padding: 12px 26px; border-radius: 12px; border: none; background: linear-gradient(120deg, var(--od-purple), var(--od-purple-2)); color: #fff; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.ipd-btn-join:disabled, .ipd-btn-join.is-done { opacity: 0.7; cursor: default; }
.ipd-btn-follow { display: flex; align-items: center; gap: 7px; padding: 12px 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ipd-btn-follow svg { width: 15px; height: 15px; }
.ipd-btn-follow.is-following { background: #fff; color: var(--od-purple); border-color: #fff; }
.ipd-btn-follow.is-following svg { fill: currentColor; }
.ipd-hero-foot { display: flex; gap: 22px; margin-left: auto; font-size: 12.5px; color: rgba(255,255,255,0.85); }
.ipd-hero-foot span, .ipd-hero-foot button { display: flex; align-items: center; gap: 5px; }
.ipd-hero-foot svg { width: 14px; height: 14px; }
.ipd-cheer-btn { border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ipd-cheer-btn.active { color: #ff6b81; }
.ipd-cheer-btn.active svg { fill: currentColor; }

/* Body grid */
.ipd-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; padding-bottom: 60px; }
.ipd-main-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ipd-side-col { display: flex; flex-direction: column; gap: 18px; }

.ipd-panel { background: var(--od-panel); border: 1px solid var(--od-border); border-radius: var(--od-radius); padding: 22px; box-shadow: var(--od-shadow); }
.ipd-panel h2 { font-size: 15.5px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.ipd-panel h2 svg { width: 17px; height: 17px; color: var(--od-purple); }
.ipd-panel p.desc { font-size: 13px; line-height: 1.7; color: var(--od-ink); }

/* Creators */
.ipd-creators { display: flex; flex-direction: column; gap: 12px; }
.ipd-creator-row { display: flex; align-items: center; gap: 12px; }
.ipd-creator-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.ipd-creator-info { flex: 1; min-width: 0; }
.ipd-creator-info .n { font-size: 13px; font-weight: 700; }
.ipd-creator-info .r { font-size: 11px; color: var(--od-ink-soft); }
.ipd-creator-badge { font-size: 10px; font-weight: 800; color: var(--od-purple); background: var(--od-active-bg); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }

/* Episodes */
.ipd-ep-list { display: flex; flex-direction: column; gap: 10px; }
.ipd-ep-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--od-border); border-radius: 14px; cursor: pointer; transition: background 0.15s; text-decoration: none; color: inherit; }
.ipd-ep-card:hover { background: var(--od-bg); }
.ipd-ep-thumb { width: 96px; aspect-ratio: 16/9; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; }
.ipd-ep-thumb .badge { position: absolute; top: 5px; left: 5px; font-size: 8.5px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #fff; }
.ipd-ep-info { flex: 1; min-width: 0; }
.ipd-ep-info .n { font-size: 11px; color: var(--od-ink-soft); font-weight: 700; }
.ipd-ep-info .t { font-size: 13.5px; font-weight: 700; margin: 2px 0; }
.ipd-ep-info .m { font-size: 11px; color: var(--od-ink-soft); }
.ipd-ep-chev { width: 15px; height: 15px; color: var(--od-ink-soft); flex-shrink: 0; }
.ipd-ep-card.disabled { cursor: default; opacity: 0.6; }
.ipd-ep-card.disabled:hover { background: none; }
.ipd-ep-soon { font-size: 10.5px; font-weight: 700; color: var(--od-ink-soft); white-space: nowrap; flex-shrink: 0; }

/* Updates feed */
.ipd-feed { display: flex; flex-direction: column; gap: 14px; }
.ipd-feed-item { display: flex; gap: 12px; }
.ipd-feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--od-purple); margin-top: 6px; flex-shrink: 0; }
.ipd-feed-text .t { font-size: 12.5px; font-weight: 700; }
.ipd-feed-text .d { font-size: 11px; color: var(--od-ink-soft); margin-top: 2px; }

/* Sidebar: recruiting */
.ipd-recruit-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--od-border); border-radius: 14px; margin-bottom: 10px; }
.ipd-recruit-row:last-child { margin-bottom: 0; }
.ipd-recruit-info .r { font-size: 12.5px; font-weight: 700; }
.ipd-recruit-info .f { font-size: 11px; color: var(--od-ink-soft); margin-top: 2px; }
.ipd-apply-btn { font-size: 11px; font-weight: 700; padding: 8px 13px; border-radius: 999px; border: none; background: var(--od-active-bg); color: var(--od-purple); cursor: pointer; white-space: nowrap; }
.ipd-apply-btn.is-done { background: var(--od-bg); color: var(--od-ink-soft); }
.ipd-apply-btn.is-done:hover { color: #d64545; }

/* Sidebar: info list */
.ipd-info-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 9px 0; border-bottom: 1px solid var(--od-border); }
.ipd-info-row:last-child { border-bottom: none; }
.ipd-info-row .k { color: var(--od-ink-soft); }
.ipd-info-row .v { font-weight: 700; }

/* Sidebar: related */
.ipd-related-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 6px 0; }
.ipd-related-thumb { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; }
.ipd-related-info .t { font-size: 12px; font-weight: 700; }
.ipd-related-info .m { font-size: 10.5px; color: var(--od-ink-soft); }

.ipd-creators-empty, .ipd-ep-empty, .ipd-recruit-empty, .ipd-feed-empty {
  font-size: 12.5px; color: var(--od-ink-soft); padding: 6px 0;
}

@media (max-width: 1080px) {
  .ipd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ipd-hero-foot { margin-left: 0; width: 100%; }
}
