/* =============================================================================
 * TEAM FORGE — FORGE XI — shared styling (WEB PHASE 1A)
 * Premium black + restrained gold. Self-contained; does NOT touch global site CSS.
 * ========================================================================== */

:root {
  --fx-black:   #0a0a0b;
  --fx-panel:   #121214;
  --fx-panel-2: #17171a;
  --fx-line:    rgba(212, 175, 55, 0.22);
  --fx-line-soft: rgba(255, 255, 255, 0.08);
  --fx-gold:    #d4af37;
  --fx-gold-dim: rgba(212, 175, 55, 0.55);
  --fx-ink:     #f4f2ec;
  --fx-muted:   #a7a29a;
  --fx-radius:  14px;
  --fx-maxw:    1140px;
  --fx-font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --fx-font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.fx-page {
  background: var(--fx-black);
  color: var(--fx-ink);
  font-family: var(--fx-font-body);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.fx-wrap { max-width: var(--fx-maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------- header/nav ------------------------------- */
.fx-nav {
  display: flex; align-items: center; gap: 26px;
  padding: 18px 20px; max-width: var(--fx-maxw); margin: 0 auto;
  border-bottom: 1px solid var(--fx-line-soft);
}
.fx-nav .fx-brand {
  font-family: var(--fx-font-display); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fx-ink); text-decoration: none; font-size: 1.05rem;
}
.fx-nav .fx-brand b { color: var(--fx-gold); }
.fx-nav .fx-nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.fx-nav a.fx-link {
  color: var(--fx-muted); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.fx-nav a.fx-link:hover { color: var(--fx-ink); }
.fx-nav a.fx-link[aria-current="page"] { color: var(--fx-gold); border-bottom-color: var(--fx-gold-dim); }

/* ------------------------------- hero/blocks ------------------------------ */
.fx-hero { padding: 64px 0 40px; }
.fx-eyebrow {
  font-family: var(--fx-font-display); text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--fx-gold); font-size: 0.8rem; margin: 0 0 14px;
}
.fx-title {
  font-family: var(--fx-font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.02; margin: 0 0 16px;
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.fx-title b { color: var(--fx-gold); }
.fx-lead { color: var(--fx-muted); font-size: 1.08rem; line-height: 1.6; max-width: 60ch; margin: 0 0 28px; }

.fx-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.fx-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--fx-font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.9rem; padding: 13px 22px; border-radius: 10px; border: 1px solid var(--fx-gold-dim);
  color: var(--fx-black); background: var(--fx-gold); transition: transform .12s, box-shadow .12s;
}
.fx-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,175,55,0.18); }
.fx-btn.fx-btn-ghost { background: transparent; color: var(--fx-ink); }
.fx-btn.fx-btn-ghost:hover { border-color: var(--fx-gold); color: var(--fx-gold); }

.fx-section { padding: 30px 0 60px; }
.fx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.fx-h2 { font-family: var(--fx-font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.5rem; margin: 0; }
.fx-back { color: var(--fx-muted); text-decoration: none; font-size: 0.9rem; }
.fx-back:hover { color: var(--fx-gold); }

/* ------------------------- category filter chips -------------------------- */
.fx-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.fx-chip {
  font-family: var(--fx-font-body); font-size: 0.85rem; color: var(--fx-muted);
  background: var(--fx-panel); border: 1px solid var(--fx-line-soft); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: all .15s;
}
.fx-chip:hover { color: var(--fx-ink); border-color: var(--fx-line); }
.fx-chip[aria-pressed="true"] { color: var(--fx-black); background: var(--fx-gold); border-color: var(--fx-gold); }

/* ------------------------------- role grid -------------------------------- */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.fx-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--fx-panel); border: 1px solid var(--fx-line-soft); border-radius: var(--fx-radius);
  overflow: hidden; transition: transform .14s, border-color .14s, box-shadow .14s;
}
.fx-card:hover { transform: translateY(-3px); border-color: var(--fx-line); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.fx-card-body { padding: 14px 15px 16px; }
.fx-card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fx-gold-dim); margin: 0 0 4px; }
.fx-card-name { font-family: var(--fx-font-display); font-size: 1.12rem; letter-spacing: 0.02em; margin: 0 0 6px; }
.fx-card-desc { font-size: 0.86rem; color: var(--fx-muted); line-height: 1.45; margin: 0; }
.fx-proto-tag {
  display: inline-block; margin-top: 10px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fx-gold); border: 1px solid var(--fx-gold-dim); border-radius: 999px; padding: 3px 10px;
}

/* ============================ VISUAL + PLACEHOLDER ========================= *
 * Aspect-ratio boxes lock the footprint so a later real image causes NO shift. */
.fx-visual { position: relative; width: 100%; background: var(--fx-panel-2); overflow: hidden; }
/* 2:3 matches the Character Master export ratio exactly -> object-fit:cover crops nothing. */
.fx-ratio-card    { aspect-ratio: 2 / 3; }
.fx-ratio-portrait{ aspect-ratio: 2 / 3; }
.fx-ratio-square  { aspect-ratio: 1 / 1; }
.fx-visual-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Premium placeholder — restrained geometry, gold monogram, zero illustration. */
.fx-visual-placeholder {
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(212,175,55,0.10), rgba(212,175,55,0) 60%),
    linear-gradient(160deg, #141416 0%, #0c0c0d 100%);
}
.fx-ph-frame {
  position: absolute; inset: 12px; border: 1px solid var(--fx-line);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.fx-ph-frame::before,
.fx-ph-frame::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--fx-gold-dim);
}
.fx-ph-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.fx-ph-frame::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.fx-ph-mono {
  font-family: var(--fx-font-display); font-weight: 700; color: var(--fx-gold);
  font-size: clamp(1.8rem, 6vw, 2.8rem); letter-spacing: 0.06em; opacity: 0.92; z-index: 1;
}
.fx-ph-mark {
  position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%);
  width: 42%; height: 1px; background: linear-gradient(90deg, transparent, var(--fx-gold-dim), transparent);
}

/* ---------------------------- role detail page ---------------------------- */
.fx-detail { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 40px; align-items: start; padding: 20px 0 60px; }
.fx-detail .fx-visual { border: 1px solid var(--fx-line-soft); border-radius: var(--fx-radius); }
.fx-detail-body h1 { font-family: var(--fx-font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 6px; }
.fx-detail-cat { color: var(--fx-gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; margin: 0 0 18px; }
.fx-detail-understanding { font-size: 1.12rem; line-height: 1.55; color: var(--fx-ink); margin: 0 0 16px; }
.fx-detail-desc { color: var(--fx-muted); line-height: 1.6; margin: 0 0 24px; max-width: 60ch; }
.fx-meta { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.fx-meta li { display: flex; gap: 14px; border-top: 1px solid var(--fx-line-soft); padding-top: 12px; }
.fx-meta .k { color: var(--fx-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; min-width: 130px; padding-top: 2px; }
.fx-meta .v { color: var(--fx-ink); font-size: 0.98rem; }

/* --------------------------- teaser / not-found --------------------------- */
.fx-teaser { padding: 60px 0; text-align: center; max-width: 640px; margin: 0 auto; }
.fx-teaser .fx-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.fx-note {
  margin-top: 28px; padding: 18px 20px; border: 1px solid var(--fx-line-soft); border-radius: var(--fx-radius);
  background: var(--fx-panel); color: var(--fx-muted); font-size: 0.92rem; line-height: 1.6;
}
.fx-empty { color: var(--fx-muted); padding: 40px 0; text-align: center; }

.fx-footer { border-top: 1px solid var(--fx-line-soft); padding: 26px 0; color: var(--fx-muted); font-size: 0.85rem; text-align: center; }

@media (max-width: 720px) {
  .fx-detail { grid-template-columns: 1fr; gap: 24px; }
  .fx-detail .fx-visual { max-width: 320px; }
}
