/* ============================================================
   BIKEBLUES — Brand-specific styles
   Shared case study structure lives in css/casestudy.css
   Accent: the portfolio's own purple (--purple / --purple-light from css/base.css)
============================================================ */

/* ---- Colour tokens ----------------------------------------- */
:root {
  --bb-accent:      var(--purple-light);
  --bb-accent-dark: var(--purple);
  --bb-glow:      rgba(var(--purple-rgb), 0.2);

  /* Shared cs-* components (casestudy.css) read the accent through these */
  --cs-accent:       var(--bb-accent);
  --cs-accent-dark:  var(--bb-accent-dark);
  --cs-glow:         var(--bb-glow);
  --cs-hover-border: rgba(var(--purple-rgb), 0.35);
}

/* ---- Section tag ------------------------------------------ */
.bb-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-accent);
  background: rgba(var(--purple-rgb), 0.1);
  border: 1px solid rgba(var(--purple-rgb), 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ---- Brand accent overrides ------------------------------- */
.cs-meta__label       { color: var(--bb-accent); }
.cs-section__title em { color: var(--bb-accent); }

/* ---- Hero visual ------------------------------------------ */
/* The hero image is a cropped photo-style mockup with its own
   background (not a transparent phone cut-out), so it gets a framed
   card instead of the shared 120%-wide bleed. */
.cs-hero__mockup-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin-left: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--purple-rgb), 0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px var(--bb-glow);
}

/* ---- Feature cards ---------------------------------------- */
.cs-feature-card::after {
  background: linear-gradient(to right, transparent, rgba(var(--purple-rgb), 0.5), transparent);
}
.cs-feature-card:hover { border-color: rgba(var(--purple-rgb), 0.3); }
.cs-feature-card__tag {
  color: var(--bb-accent);
  background: rgba(var(--purple-rgb), 0.08);
  border-color: rgba(var(--purple-rgb), 0.2);
}

/* ---- Download / CTA --------------------------------------- */
.cs-download__inner::before {
  background: linear-gradient(to right, transparent, var(--bb-accent), transparent);
}

/* ---- Secondary hero badge (e.g. "Final Year Project") ------- */
.bb-section-tag--muted {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}

/* ---- Landscape demo video (3D Bike Modification) ----------- */
.bb-video {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 32 / 15; /* matches the 1920×900 demo video */
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(var(--purple-rgb), 0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45), 0 0 40px var(--bb-glow);
}
/* Placeholder sits behind the video; the video covers it once the
   file at assets/BikeBlues/videos/ loads and plays. */
.bb-video { position: relative; }
.bb-video::before {
  content: "3D modification demo video coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: radial-gradient(circle at 50% 50%, rgba(var(--purple-rgb), 0.12), transparent 70%);
}
.bb-video__el {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Team & roles: tall photo cards ------------------------ */
.bb-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.bb-member {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.bb-member:hover {
  border-color: rgba(var(--purple-rgb), 0.35);
  transform: translateY(-4px);
}
.bb-member--me {
  border-color: rgba(var(--purple-rgb), 0.45);
  box-shadow: 0 0 40px var(--bb-glow);
}
.bb-member__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--purple-rgb), 0.28), transparent 65%),
    var(--bg-card-2, #16161c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.bb-member:hover .bb-member__photo img { transform: scale(1.04); }
/* Fade the bottom of the photo into the card body */
.bb-member__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}
.bb-member__initials {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(var(--purple-rgb), 0.55);
}
.bb-member__me {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  border-radius: 100px;
}
.bb-member__body { padding: 4px 24px 26px; }
.bb-member__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.bb-member__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-accent);
  margin: 0 0 16px;
}
.bb-member__mods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-member__mods li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.bb-member__mods li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bb-accent);
}

/* ---- Tech stack chips -------------------------------------- */
.bb-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 40px;
}
.bb-stack__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.bb-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bb-stack__list li {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

@media (max-width: 1024px) {
  .bb-team { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
@media (max-width: 640px) {
  .bb-team { grid-template-columns: 1fr; max-width: 400px; }
}
