/* project-7.css */

/* =========================
   Maplebrook Color System
========================= */
:root{
  --mb-purple-900:#2b1a73;
  --mb-purple-700:#4b2bd6;
  --mb-blue-600:#1f6fff;
  --mb-accent-yellow:#f4d54a;

  --mb-ink:#0b1020;
  --mb-text: rgba(17,19,24,.86);
  --mb-muted: rgba(17,19,24,.72);

  --mb-border: rgba(17,19,24,.10);
  --mb-card: rgba(255,255,255,.92);
  --mb-soft: rgba(11,16,32,.06);
}

body.project-page.project-7{
  background:#f3f6ff !important; /* soft bluish-gray like Maplebrook */
}

/* ===== Top back pill (same language as Project 6) ===== */
.cs-topbar{
  display:flex;
  justify-content:flex-start;
  margin:14px 0 6px;
}

.cs-backpill{
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(17,19,24,.12);
  background:rgba(255,255,255,.75);
  color:rgba(17,19,24,.86);
}

/* ===== HERO (reuse Project 6 look, Maplebrook colors) ===== */
.gd-hero{
  border-radius:22px;
  border:1px solid rgba(17,19,24,.10);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(244,213,74,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(31,111,255,.16), transparent 55%),
    linear-gradient(120deg, var(--mb-purple-900), var(--mb-purple-700));
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  overflow:hidden;
}

.cs-hero-top{ padding:14px 16px 8px; }

.cs-pill{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(244,213,74,.18);
  border: 1px solid rgba(244,213,74,.28);
  color:rgba(255,255,255,.90);
}

.cs-hero-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:18px;
  padding:10px 16px 18px;
}

.cs-hero-meta{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:12px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.cs-meta-label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.70);
}

.cs-meta-value{
  font-weight:800;
  color:rgba(255,255,255,.90);
}

.cs-title{
  font-family:var(--font-serif);
  font-size:clamp(26px, 3.2vw, 40px);
  margin:0 0 8px;
  letter-spacing:-.02em;
  color:rgba(255,255,255,.96);
}

.cs-lede{
  margin:0 0 12px;
  color:rgba(255,255,255,.80);
  line-height:1.7;
}

.cs-hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.cs-tag{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  color:rgba(255,255,255,.82);
}

/* ===== Body layout (same as Project 6) ===== */
.cs-body{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:26px;
  margin-top:18px;
}

.cs-side{
  position:sticky;
  top:120px;
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  border-radius:18px;
  background: var(--mb-soft);
  border:1px solid rgba(17,19,24,.10);
}

.cs-side a{
  text-decoration:none;
  color:rgba(17,19,24,.86);
  font-weight:800;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.65);
}

.cs-side a:hover{
  background: linear-gradient(120deg, var(--mb-purple-900), var(--mb-purple-700));
  color:rgba(255,255,255,.95);
  border-color: transparent;
}

.cs-section{
  padding:14px 0 4px;
  border-bottom:1px solid rgba(17,19,24,.06);
  margin-bottom:16px;
  scroll-margin-top: 40vh;
  scroll-margin-bottom: 40vh;
}

.cs-section h2{
  font-size:20px;
  margin:0 0 10px;
  letter-spacing:-.01em;
  color: var(--mb-blue-600);
}

.cs-section p{
  margin:0 0 12px;
  color:rgba(17,19,24,.78);
  line-height:1.75;
}

/* =========================================================
   PROJECT 7: PROCESS IMAGE BLOCK (long screenshots, no crop)
   ========================================================= */
.img-row{ margin-top:14px; }

.img-card{
  border-radius:18px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 55px rgba(17,19,24,.06);
  overflow:hidden;

  transition: transform .25s ease, box-shadow .25s ease;
}

.img-card:hover{
  transform: translateY(-6px);
  box-shadow:0 26px 70px rgba(17,19,24,.10);
}

.img-card img{
  width:100%;
  height:auto;
  display:block;

  object-fit: contain;
  background: #0b1020;
}

.img-card span{
  display:block;
  padding:12px;
  font-weight:800;
  font-size:13px;
  color:rgba(17,19,24,.80);
  border-top:1px solid rgba(17,19,24,.08);
}

/* =========================================================
   WIREFRAME vs FINAL (side-by-side cards, no crop)
   ========================================================= */
.compare-grid{
  display:grid;
  grid-template-columns: 1.8fr 0.8fr; /* homepage bigger, mobile slimmer */
  gap:14px;
}

.compare-card{
  border-radius:18px;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 55px rgba(17,19,24,.06);
  overflow:hidden;
}

.compare-card h4{
  margin:0;
  padding:12px;
  font-size:14px;
  font-weight:900;
  border-bottom:1px solid rgba(17,19,24,.08);
  color: var(--mb-purple-900);
}

.compare-images{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  padding:12px;
}

.compare-images img{
  width:100%;
  height:auto;              /* ✅ no forced height = no blank edges */
  display:block;
  object-fit: contain;      /* ✅ still no crop */
  background: transparent;  /* ✅ no “box” color showing */
  border-radius:14px;
  border:1px solid rgba(17,19,24,.10);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}


.compare-images img:hover{
  transform: translateY(-4px);
  box-shadow:0 18px 45px rgba(17,19,24,.10);
  filter: brightness(1.05) contrast(1.02);
}

/* =========================================================
   LIVE EMBED (same as Project 5/6 embed style)
   ========================================================= */
.cs-embed{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.60);
  box-shadow:0 18px 55px rgba(17,19,24,.10);
}

.cs-embed{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(17,19,24,.10);
  background:rgba(255,255,255,.60);
  box-shadow:0 18px 55px rgba(17,19,24,.10);

  /* realistic browser viewport */
  aspect-ratio: 16 / 9;
  max-height: 85vh;
}

.cs-embed iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}


/* ===== Responsive ===== */
@media (max-width:980px){
  .cs-body{ grid-template-columns:1fr; }

  .cs-side{
    position:relative;
    top:auto;
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px;
  }

  .cs-hero-grid{ grid-template-columns:1fr; }

  .compare-grid{ grid-template-columns:1fr; }
  /* .compare-images{ grid-template-columns:1fr; }
  .compare-images img{ height: auto; } /* mobile: fully visible, no crop */
} 

/* Smooth scroll (matches your other pages) */
html{ scroll-behavior:smooth; }
