/* ============================================================
   Project Detail Page — standalone layout
   Pairs with main.css; reuses .showcase device-mockup styles.
   ============================================================ */

:root {
  --pp-fg: #ededed;
  --pp-fg-muted: rgba(237, 237, 237, 0.62);
  --pp-fg-dim: rgba(237, 237, 237, 0.38);
  --pp-accent: #ccf280;
  --pp-pink: #ff4ec3;
  /* Site's primary blue — same base color the Vanta topology paints over */
  --pp-bg: #4931d5;
  --pp-bg-deep: #3a26ac;
}

html, body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(109, 92, 225, 0.45), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(204, 242, 128, 0.08), transparent 60%),
    linear-gradient(180deg, var(--pp-bg) 0%, var(--pp-bg-deep) 100%);
  color: var(--pp-fg);
  min-height: 100vh;
}

body.project-page {
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Header */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  background: rgba(73, 49, 213, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(237, 237, 237, 0.12);
}

/* Back button — exact .carrer/.resume layout: text first, arrow on the
   right. Same left → right slide direction as the action buttons below. */
.pp-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 6px 19px 6px 14px;
  color: var(--pp-fg);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.6;
  cursor: pointer;
}

.pp-back::after {
  content: "";
  position: absolute;
  top: 0;
  left: 2ch;
  right: 0;
  bottom: 0;
  background-color: var(--pp-pink);
  z-index: -1;
  -webkit-transition: left 0.2s ease-in-out;
  transition: left 0.2s ease-in-out;
}

.pp-back:hover::after {
  left: 0;
  -webkit-transition: left 0.3s ease-in-out;
  transition: left 0.3s ease-in-out;
}

.pp-back svg {
  position: relative;
  left: 6px;
  width: 18px;
  height: 18px;
  /* Stroke-style icon — inherits stroke via currentColor on the SVG */
}

.pp-back:focus { outline: none; }
.pp-back:focus-visible {
  outline: 2px solid var(--pp-accent);
  outline-offset: 2px;
}

.pp-brand {
  font-family: "Black Han Sans", "Montserrat", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--pp-fg);
  text-decoration: none;
}

.pp-brand span { color: var(--pp-accent); }

/* Article */
.pp-article {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 60px) 100px;
}

.pp-hero {
  margin-bottom: 72px;
}

.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pp-accent);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
  animation: pp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.pp-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--pp-accent);
}

.pp-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin: 0 0 22px;
  color: #ffffff;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  animation: pp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.pp-tagline {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--pp-fg-muted);
  margin: 0 0 36px;
  max-width: 60ch;
  opacity: 0;
  transform: translateY(14px);
  animation: pp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  padding: 28px 0;
  border-top: 1px solid rgba(237, 237, 237, 0.12);
  border-bottom: 1px solid rgba(237, 237, 237, 0.12);
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(14px);
  animation: pp-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.pp-meta__group { min-width: 110px; }

.pp-meta__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pp-fg-dim);
  margin-bottom: 10px;
}

.pp-meta__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--pp-fg);
  letter-spacing: 0.2px;
}

.pp-meta__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.pp-meta__stack span { position: relative; }
.pp-meta__stack span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--pp-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Device showcase wrapper — reuses .showcase__devices block from main.css */
.pp-showcase {
  margin: 0 auto 88px;
  width: min(820px, 100%);
  opacity: 0;
  transform: translateY(24px);
  animation: pp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* Body content */
.pp-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  margin-bottom: 80px;
}

.pp-body__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pp-fg-dim);
  padding-top: 8px;
}

.pp-body__content p {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(237, 237, 237, 0.78);
  margin: 0 0 22px;
  max-width: 64ch;
}

.pp-body__content p:first-child::first-line-disabled {
  font-weight: 500;
  color: var(--pp-fg);
}

/* Action bar */
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding: 36px 0 0;
  border-top: 1px solid rgba(237, 237, 237, 0.12);
}

/* Action buttons — exact same pattern as .carrer / .resume on the
   main site. Live uses a green slide, GitHub uses the standard pink. */
.pp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 6px 19px 6px 14px;
  color: var(--pp-fg);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.25s ease-in-out;
}

/* Slide enters from the left edge and expands rightward to fill */
.pp-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 2ch;
  bottom: 0;
  background-color: var(--pp-pink);
  z-index: -1;
  -webkit-transition: right 0.2s ease-in-out;
  transition: right 0.2s ease-in-out;
}

.pp-btn:hover::after {
  right: 0;
  -webkit-transition: right 0.3s ease-in-out;
  transition: right 0.3s ease-in-out;
}

.pp-btn svg {
  position: relative;
  left: 6px;
  width: 16px;
  height: 16px;
  /* Stroke-style icon — inherits stroke via currentColor on the SVG */
}

.pp-btn i {
  position: relative;
  left: 5px;
  font-size: 16px;
  color: var(--pp-fg);
  -webkit-transition: color 0.25s ease-in-out;
  transition: color 0.25s ease-in-out;
}

/* Live variant — green slide; text + icon stay white in all states */
.pp-btn--live          { color: #ffffff; }
.pp-btn--live i        { color: #ffffff; }
.pp-btn--live::after   { background-color: var(--pp-pink); }

.pp-btn:focus { outline: none; }
.pp-btn:focus-visible {
  outline: 2px solid var(--pp-accent);
  outline-offset: 3px;
}

/* Next-project link */
.pp-next {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(237, 237, 237, 0.12);
}

.pp-next__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pp-fg-dim);
  margin-bottom: 14px;
  display: block;
}

.pp-next__link {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  text-decoration: none;
  color: var(--pp-fg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pp-next__name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.pp-next__arrow svg {
  width: 22px;
  fill: var(--pp-fg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pp-next__link:hover { transform: translateX(8px); }
.pp-next__link:hover .pp-next__arrow svg { transform: translate(8px, -8px); }
.pp-next__link:hover .pp-next__name { color: var(--pp-accent); }

@keyframes pp-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .pp-article { padding: 40px 24px 80px; }
  .pp-hero { margin-bottom: 56px; }
  .pp-meta { gap: 24px 40px; padding: 22px 0; margin-bottom: 40px; }
  .pp-showcase { margin-bottom: 64px; }
  .pp-body {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }
  .pp-body__label { padding-top: 0; }
}

@media (max-width: 600px) {
  .pp-header { padding: 16px 20px; }
  .pp-brand { font-size: 16px; }
  .pp-back { 
    padding: 4px 16px 4px 10px;
    font-size: 14px;
  }
  .pp-back svg {
    width: 13px;
    height: 13px;
    left: 5px;
  }
  .pp-article { padding: 32px 18px 60px; }
  .pp-title { letter-spacing: -1px; }
  .pp-meta { flex-direction: column; gap: 18px; }
  .pp-meta__group { min-width: 0; }
  .pp-body__content p { font-size: 15px; }
  .pp-actions { gap: 18px; padding-top: 24px; }
  .pp-btn { font-size: 14px; padding: 4px 16px 4px 10px; }
  .pp-btn svg { width: 13px; height: 13px; left: 5px; }
  .pp-btn i { font-size: 13px; left: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-eyebrow, .pp-title, .pp-tagline, .pp-meta, .pp-showcase {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
