/* ─────────────────────────────────────────
   PROJECT PAGE STYLES
   Inherits tokens + base from style.css
───────────────────────────────────────── */

/* ─── Force nav scrolled state on project pages ─── */
.nav { background:rgba(245,253,251,.96); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm); }

/* ─── BREADCRUMB ─── */
.breadcrumb { background:var(--bg2); border-bottom:1px solid var(--border); padding:14px 0; margin-top:72px; }
.breadcrumb .container { display:flex; align-items:center; gap:8px; font-size:.8rem; font-weight:500; color:var(--text3); }
.breadcrumb a { color:var(--text2); transition:color var(--transition); }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb .sep { color:var(--border2); }
.breadcrumb .current { color:var(--text); font-weight:600; }

/* ─── PROJECT HERO ─── */
.ph-hero { padding:72px 0 60px; position:relative; overflow:hidden; }
.ph-hero .container { position:relative; z-index:1; }

.ph-hero-bg { position:absolute; inset:0; pointer-events:none; }
.ph-hero-bg .orb {
  position:absolute; border-radius:50%; filter:blur(70px);
  width:600px; height:600px; top:-200px; right:-100px;
  background:radial-gradient(circle,rgba(0,178,148,.1) 0%,transparent 65%);
}
.ph-hero-bg .grid {
  position:absolute; inset:0;
  background-image:linear-gradient(rgba(0,178,148,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(0,178,148,.05) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.4) 0%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.4) 0%,transparent 100%);
}

.ph-meta { display:flex; align-items:center; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.ph-cat {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 14px; border-radius:100px;
  background:var(--accent-xlight); border:1.5px solid var(--accent-light);
  font-size:.73rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-dark);
}
.ph-industry {
  font-size:.82rem; font-weight:600; color:var(--text3);
}
.ph-industry::before { content:'·'; margin-right:12px; }

.ph-hero h1 { font-size:clamp(2rem,5vw,3.4rem); font-weight:800; margin-bottom:20px; max-width:780px; }

.ph-tagline { font-size:1.1rem; color:var(--text2); line-height:1.75; max-width:640px; margin-bottom:28px; }

.ph-tags { display:flex; flex-wrap:wrap; gap:8px; }
.ph-tags span {
  padding:6px 16px; border-radius:100px; border:1.5px solid var(--border2);
  font-size:.8rem; font-weight:600; color:var(--text2); background:var(--card);
}

/* ─── PROJECT IMAGE ─── */
.ph-image { background:var(--bg2); padding:0 0 72px; }

/* Real screenshot layout */
.ph-screenshots { display:flex; flex-direction:column; gap:14px; }
.ph-shot-main {
  border-radius:var(--radius); overflow:hidden;
  border:1.5px solid var(--border); box-shadow:var(--shadow-lg);
  line-height:0;
}
.ph-shot-main img { width:100%; display:block; height:auto; }
.ph-shot-strip { display:flex; gap:12px; }
.ph-shot-strip img {
  flex:1; min-width:0; border-radius:8px;
  border:1.5px solid var(--border); box-shadow:var(--shadow-sm);
  object-fit:cover; height:130px; cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.ph-shot-strip img:hover {
  transform:translateY(-3px); box-shadow:var(--shadow-md);
  border-color:var(--accent-light);
}

/* Lightbox */
.ph-lightbox {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.88); align-items:center; justify-content:center; padding:24px;
}
.ph-lightbox.open { display:flex; }
.ph-lightbox img { max-width:100%; max-height:100%; border-radius:var(--radius); box-shadow:0 32px 96px rgba(0,0,0,.6); }
.ph-lightbox-close {
  position:absolute; top:20px; right:28px; background:rgba(255,255,255,.12);
  border:none; color:#fff; font-size:1.6rem; line-height:1; cursor:pointer;
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.ph-lightbox-close:hover { background:rgba(255,255,255,.25); }

/* Placeholder mockup (kept for pages without screenshots) */
.ph-mockup {
  border-radius:var(--radius); overflow:hidden;
  border:1.5px solid var(--border); box-shadow:var(--shadow-lg);
  background:var(--bg3); min-height:440px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.ph-mockup-inner {
  display:flex; flex-direction:column; align-items:center; gap:16px;
  color:var(--text3); text-align:center; padding:40px;
}
.ph-mockup-inner svg { width:72px; height:72px; opacity:.4; }
.ph-mockup-inner p { font-size:.9rem; font-weight:600; }
.ph-mockup-inner span { font-size:.8rem; max-width:320px; line-height:1.6; opacity:.7; }

/* ─── PROJECT CONTENT ─── */
.ph-content { background:var(--bg); padding:80px 0; }
.ph-grid { display:grid; grid-template-columns:1fr 340px; gap:64px; align-items:start; }

/* Main content */
.ph-main h2 {
  font-size:1.45rem; font-weight:800; margin-bottom:16px; margin-top:52px;
  padding-bottom:12px; border-bottom:2px solid var(--border);
}
.ph-main h2:first-child { margin-top:0; }
.ph-main p { font-size:.97rem; color:var(--text2); line-height:1.85; margin-bottom:16px; }

.ph-list { margin:0 0 16px; display:flex; flex-direction:column; gap:10px; }
.ph-list li {
  display:flex; align-items:flex-start; gap:12px;
  font-size:.95rem; color:var(--text2); line-height:1.7;
}
.ph-list li::before {
  content:''; display:block; width:8px; height:8px; border-radius:50%;
  background:var(--accent); flex-shrink:0; margin-top:7px;
}

/* Results grid */
.ph-results { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:8px; }
.ph-result-card {
  background:var(--bg2); border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:24px 20px; text-align:center;
  transition:border-color var(--transition),transform var(--transition);
}
.ph-result-card:hover { border-color:var(--accent); transform:translateY(-3px); }
.ph-result-card .result-num { font-size:1.9rem; font-weight:800; color:var(--accent-dark); letter-spacing:-.03em; display:block; margin-bottom:6px; }
.ph-result-card .result-label { font-size:.8rem; font-weight:600; color:var(--text2); }

/* Sidebar */
.ph-sidebar { display:flex; flex-direction:column; gap:20px; position:sticky; top:100px; }

.ph-info-card {
  background:var(--bg2); border:1.5px solid var(--border); border-radius:var(--radius); overflow:hidden;
}
.ph-info-card h3 {
  font-size:.8rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); padding:18px 24px 14px; border-bottom:1px solid var(--border);
}
.ph-info-card dl { padding:20px 24px; display:flex; flex-direction:column; gap:16px; }
.ph-info-card dt { font-size:.73rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text3); margin-bottom:4px; }
.ph-info-card dd { font-size:.9rem; font-weight:500; color:var(--text); }

.ph-sidebar .btn { width:100%; justify-content:center; }

/* ─── POWER BI EMBED ─── */
.ph-embed { background:var(--bg2); padding:72px 0; border-top:1px solid var(--border); }
.ph-embed .container > h2 {
  font-size:1.45rem; font-weight:800; margin-bottom:8px;
}
.ph-embed .container > p {
  font-size:.93rem; color:var(--text2); margin-bottom:32px;
}
.ph-embed-frame {
  width:100%; aspect-ratio:16/9; min-height:500px;
  border:none; border-radius:var(--radius); box-shadow:var(--shadow-lg);
  background:var(--bg3); display:block;
}
.ph-embed-placeholder {
  width:100%; aspect-ratio:16/9; min-height:500px;
  border:2px dashed var(--border2); border-radius:var(--radius);
  background:var(--bg3);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; text-align:center; padding:40px;
  color:var(--text3);
}
.ph-embed-placeholder svg { width:64px; height:64px; opacity:.35; }
.ph-embed-placeholder strong { font-size:1rem; font-weight:700; color:var(--text2); }
.ph-embed-placeholder p { font-size:.85rem; line-height:1.7; max-width:480px; margin:0; }
.ph-embed-placeholder code {
  display:inline-block; padding:3px 10px; border-radius:6px;
  background:var(--bg); border:1px solid var(--border2);
  font-size:.78rem; color:var(--accent-dark); font-family:monospace;
}
.ph-embed-steps {
  margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
}
.ph-embed-steps span {
  display:flex; align-items:center; gap:8px;
  background:var(--accent-xlight); border:1.5px solid var(--accent-light);
  border-radius:100px; padding:6px 16px;
  font-size:.78rem; font-weight:600; color:var(--accent-dark);
}
@media (max-width:768px) {
  .ph-embed-frame,
  .ph-embed-placeholder { min-height:280px; }
}

/* ─── PROJECT NAVIGATION ─── */
.ph-nav { background:var(--bg2); border-top:1px solid var(--border); padding:0; }
.ph-nav-grid { display:grid; grid-template-columns:1fr 1fr; }

.ph-nav-link {
  display:flex; flex-direction:column; gap:6px; padding:36px 40px;
  transition:background var(--transition); text-decoration:none;
  border-right:1px solid var(--border);
}
.ph-nav-link:last-child { border-right:none; align-items:flex-end; text-align:right; }
.ph-nav-link:hover { background:var(--accent-xlight); }

.ph-nav-dir { font-size:.72rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--text3); }
.ph-nav-title { font-size:1.05rem; font-weight:700; color:var(--text); }
.ph-nav-link:hover .ph-nav-title { color:var(--accent-dark); }
.ph-nav-link:first-child .ph-nav-dir::before { content:'← '; }
.ph-nav-link:last-child .ph-nav-dir::after  { content:' →'; }

/* ─── RESPONSIVE ─── */
@media (max-width:1024px) {
  .ph-grid { grid-template-columns:1fr; }
  .ph-sidebar { position:static; }
  .ph-results { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:768px) {
  .ph-hero { padding:48px 0 40px; }
  .ph-hero h1 { font-size:clamp(1.7rem,6vw,2.5rem); }
  .ph-results { grid-template-columns:1fr 1fr; }
  .ph-mockup  { min-height:260px; }
  .ph-nav-grid { grid-template-columns:1fr; }
  .ph-nav-link { border-right:none; border-bottom:1px solid var(--border); }
  .ph-nav-link:last-child { align-items:flex-start; text-align:left; border-bottom:none; }
  .ph-nav-link { padding:28px 24px; }
}
@media (max-width:480px) {
  .ph-results { grid-template-columns:1fr; }
}
