/* global React */
/* Demo videos · placeholders for follow-up Loom recordings */

const dvStyles = {
  section: {
    background: "var(--k-cotton)",
    color: "var(--k-charcoal)",
    padding: "140px 56px 160px",
    borderTop: "1px solid var(--k-stone)",
  },
  inner: { maxWidth: 1320, margin: "0 auto" },

  head: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 80, alignItems: "end", marginBottom: 56 },
  eyebrow: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--k-poppy)", marginBottom: 24, fontWeight: 700 },
  title: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(36px, 4.5vw, 64px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0 },
  sub: { fontSize: 17, lineHeight: 1.65, color: "var(--k-muted)", maxWidth: 500 },

  grid: { display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: 24 },
  card: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    overflow: "hidden",
    display: "flex", flexDirection: "column",
  },
  thumb: {
    aspectRatio: "16 / 9",
    background: "linear-gradient(135deg, #16182C 0%, #2A1B2E 100%)",
    position: "relative",
    display: "flex", alignItems: "center", justifyContent: "center",
    overflow: "hidden",
  },
  thumbAccent: {
    position: "absolute", inset: 0,
    background: "radial-gradient(circle at 30% 40%, rgba(249,99,83,0.18), transparent 60%)",
    pointerEvents: "none",
  },
  playBtn: {
    position: "relative", zIndex: 2,
    width: 80, height: 80,
    borderRadius: 999,
    background: "var(--k-poppy)",
    color: "var(--k-cotton)",
    display: "flex", alignItems: "center", justifyContent: "center",
    fontSize: 26,
    boxShadow: "0 18px 36px rgba(249,99,83,0.4)",
  },
  thumbLabel: {
    position: "absolute", top: 18, left: 22, zIndex: 2,
    fontSize: 10, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-rose)", fontWeight: 700,
  },
  thumbCorner: {
    position: "absolute", bottom: 18, right: 22, zIndex: 2,
    fontSize: 11, color: "rgba(244,238,227,0.6)", fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
  },

  body: { padding: "28px 30px 32px", display: "flex", flexDirection: "column", gap: 10, flex: 1 },
  num: { fontFamily: "var(--serif)", fontSize: 13, color: "var(--nb-soft)", letterSpacing: "0.18em", textTransform: "uppercase", fontWeight: 600 },
  cardT: { fontFamily: "var(--serif)", fontSize: 24, lineHeight: 1.2, margin: 0, fontWeight: 400, letterSpacing: "-0.005em" },
  cardB: { fontSize: 14, lineHeight: 1.6, color: "var(--nb-navy)" },
  cardFoot: {
    marginTop: "auto", paddingTop: 18, borderTop: "1px solid var(--nb-line)",
    display: "flex", justifyContent: "space-between", alignItems: "center",
  },
  cardMeta: { fontSize: 11, letterSpacing: "0.12em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 600 },
  cardLink: { fontSize: 11, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--nb-rust)", fontWeight: 700 },

  note: {
    marginTop: 48,
    padding: "32px 40px",
    background: "var(--nb-cream-2)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    display: "grid", gridTemplateColumns: "auto 1fr", gap: 24,
    alignItems: "center",
  },
  noteIcon: { width: 56, height: 56, borderRadius: 999, background: "var(--nb-ink)", color: "var(--nb-rose)", display: "flex", alignItems: "center", justifyContent: "center", fontFamily: "var(--serif)", fontSize: 26 },
  noteT: { fontFamily: "var(--serif)", fontSize: 22, lineHeight: 1.25, margin: 0, fontWeight: 400, color: "var(--nb-ink)" },
  noteB: { fontSize: 14, lineHeight: 1.55, color: "var(--nb-navy)", marginTop: 6 },
};

const VIDEOS = [
  { n: "01", label: "FOLLOW-UP · 2 MIN", t: "Multi-brand Organisation hub walkthrough.", b: "A short Loom walking through the live N Brown Organisation workspace — JD Williams, Simply Be, Heritage Brands and Jacamo accounts inside one tenant.", meta: "Joe Bishop · 2 min" },
  { n: "02", label: "FOLLOW-UP · 3 MIN", t: "FS-template lockdown + approval queue.", b: "How regulated FCA-touching comms are template-locked, audit-trailed and routed through approvals before they leave the platform.", meta: "Sabhyata · 3 min" },
];

function DemoVideos() {
  return (
    <section id="demo" style={dvStyles.section} data-screen-label="10 Demo videos">
      <div style={dvStyles.inner}>
        <div style={dvStyles.head}>
          <div>
            <div style={dvStyles.eyebrow}>Demo videos · Follow-up Loom recordings</div>
            <h2 style={dvStyles.title}>
              The live demo, after the live demo.<br/>
              <span className="serif-i" style={{color: "var(--nb-rust)"}}>Short, specific, on-demand.</span>
            </h2>
          </div>
          <p style={dvStyles.sub}>
            Six follow-up Loom recordings — one per topic surfaced in the
            session. Each one short enough to send round the wider N Brown
            team, each one in the actual platform. Replace the placeholders
            below as we record them.
          </p>
        </div>

        <div style={dvStyles.grid}>
          {VIDEOS.map(v => (
            <div key={v.n} style={dvStyles.card}>
              <div style={dvStyles.thumb}>
                <div style={dvStyles.thumbAccent}/>
                <div style={dvStyles.thumbLabel}>{v.label}</div>
                <div style={dvStyles.playBtn}>▶</div>
                <div style={dvStyles.thumbCorner}>loom · placeholder</div>
              </div>
              <div style={dvStyles.body}>
                <div style={dvStyles.num}>{v.n}</div>
                <h3 style={dvStyles.cardT}>{v.t}</h3>
                <p style={dvStyles.cardB}>{v.b}</p>
                <div style={dvStyles.cardFoot}>
                  <div style={dvStyles.cardMeta}>{v.meta}</div>
                  <div style={dvStyles.cardLink}>Replace Loom URL →</div>
                </div>
              </div>
            </div>
          ))}
        </div>

        <div style={dvStyles.note}>
          <div style={dvStyles.noteIcon}>↻</div>
          <div>
            <h4 style={dvStyles.noteT}>Drop Loom embeds in as we record them.</h4>
            <p style={dvStyles.noteB}>
              We&rsquo;ll record and replace through June as topics emerge from
              the follow-up sessions.
            </p>
          </div>
        </div>
      </div>
    </section>
  );
}
