/* File: assets/css/timeline.css */
/* ======================================================================
   TGT — Timeline (Membership)
   Uses the same hero gradient, thicker glowing gold spine,
   time INSIDE the yellow badges on the spine.
   ====================================================================== */

:root{
  --tgt-colour-white:#fff;
  --tgt-colour-gold:#d4a574;
  --tgt-colour-gold-2:#e8c196;
  --tgt-colour-ink:#0d1b2b;
  --tgt-frost:rgba(255,255,255,.06);
  --tgt-frost-bd:rgba(255,255,255,.14);
  --tgt-shadow-xl:0 28px 60px rgba(0,0,0,.28);
  --tgt-radius-xl:20px;
}

/* Section with HERO background (fall back if var missing) */
body .tgt-timeline-section{
  position:relative;
  padding:clamp(4rem,8vw,6rem) min(5vw,48px);
  background:var(--tgt-gradient-hero, linear-gradient(135deg, #102842 0%, #0f1f35 55%, #7a2448 100%));
  color:var(--tgt-colour-white);
  overflow:hidden;
}

/* Heading */
body .tgt-timeline-header{
  text-align:center;
  max-width:1100px;
  margin-inline:auto;
  margin-bottom:clamp(2.5rem,5vw,3.5rem);
}
body .tgt-timeline-section-title{
  font-family:Montserrat,system-ui,sans-serif;
  font-weight:800;
  color:var(--tgt-colour-gold);
  font-size:clamp(2.2rem,4.2vw,3.2rem);
  margin:0 0 .35rem;
}
body .tgt-timeline-section-sub{ margin:0; opacity:.9; }

/* Grid + central track */
body .tgt-timeline{
  --progress:0%;
  position:relative;
  display:grid;
  grid-template-columns:1fr 96px 1fr;
  column-gap:48px;
  row-gap:56px;
  max-width:1200px;
  margin:0 auto;
  padding:12px 0 24px;
}

/* Grey base spine */
body .tgt-timeline::before{
  content:"";
  position:absolute;
  left:50%; top:0; bottom:0;
  transform:translateX(-50%);
  width:10px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
}

/* Gold progress (height controlled by JS through --progress) */
body .tgt-timeline::after{
  content:"";
  position:absolute;
  left:50%; top:0;
  transform:translateX(-50%);
  width:10px;
  height:var(--progress);
  border-radius:12px;
  background:linear-gradient(#f3d8b0,var(--tgt-colour-gold));
  box-shadow:0 0 22px rgba(212,165,116,.6), 0 0 3px rgba(212,165,116,.9) inset;
}

/* Decorative caps (added by JS) */
body .tgt-timeline .tgt-cap{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  width:14px;height:14px;border-radius:999px;
  background:var(--tgt-colour-gold-2);
  box-shadow:0 0 0 6px rgba(212,165,116,.2), 0 10px 20px rgba(0,0,0,.35);
}
body .tgt-timeline .tgt-cap--top{ top:-7px; }
body .tgt-timeline .tgt-cap--bottom{ bottom:-7px; }

/* Items */
body .tgt-item{ display:contents; position:relative; }

/* Yellow badges with the TIME inside */
body .tgt-node{
  grid-column:2;
  place-self:center;
  position:relative;
  width:64px;height:64px;border-radius:999px;
  background:radial-gradient(60% 60% at 45% 40%, var(--tgt-colour-gold-2) 0%, var(--tgt-colour-gold) 100%);
  border:4px solid #3d4a5d;
  box-shadow:0 0 0 10px rgba(16,40,66,.28), var(--tgt-shadow-xl);
  z-index:2;
}
body .tgt-node::before{
  content:attr(data-time);
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-weight:900; font-size:.96rem; letter-spacing:.01em;
  color:var(--tgt-colour-ink);
}
body .tgt-node::after{
  content:"";
  position:absolute; inset:-18px;
  border-radius:inherit;
  background:radial-gradient(closest-side, rgba(212,165,116,.35), transparent 70%);
  z-index:-1;
}

/* Cards */
body .tgt-card{
  grid-column:1;
  padding:24px 28px;
  background:var(--tgt-frost);
  border:1px solid var(--tgt-frost-bd);
  border-radius:var(--tgt-radius-xl);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  box-shadow:var(--tgt-shadow-xl);
}
body .tgt-item.is-left .tgt-card{ grid-column:3; }

body .tgt-card__title{
  margin:0 0 .35rem;
  font-weight:800;
  color:var(--tgt-colour-white);
  font-size:clamp(1.15rem,1.6vw,1.35rem);
}
body .tgt-card__desc{
  margin:0;
  color:rgba(255,255,255,.86);
  line-height:1.65;
}

/* Hover niceties */
@media (hover:hover){
  body .tgt-card:hover{ translate:0 -2px; border-color:rgba(212,165,116,.32); box-shadow:0 30px 64px rgba(0,0,0,.36); }
  body .tgt-node:hover{ scale:1.05; }
}

/* Responsive stack */
@media (max-width: 860px){
  body .tgt-timeline{
    grid-template-columns:56px 1fr;
    column-gap:20px;
    row-gap:28px;
  }
  body .tgt-timeline::before,
  body .tgt-timeline::after,
  body .tgt-timeline .tgt-cap{ left:28px; transform:none; }
  body .tgt-node{ grid-column:1; width:58px;height:58px; }
  body .tgt-card{ grid-column:2; }
}
