/* ==========================================================================
   Portfolio detail page — standalone styles
   Loaded AFTER the compiled style.css (reuses its header/footer/buttons/tokens).
   Hand-written (no SCSS) so it stays independent of the main build.
   Palette mirrors _variables.scss (forge theme).
   ========================================================================== */

:root {
    --pd-primary: #FF6B2C;
    --pd-accent: #FFA92B;
    --pd-bg: #1B1C20;
    --pd-section: #17181B;
    --pd-card: #212227;
    --pd-border: rgba(255, 255, 255, .08);
    --pd-heading: #FFFFFF;
    --pd-text: #B6B3BB;
    --pd-radius: 18px;
    --pd-grad: linear-gradient(135deg, #FF6B2C 0%, #FF8A3D 45%, #FFA92B 100%);
}

/* Push content below the fixed site header */
.pd {
    padding: 130px 0 40px;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(255, 138, 61, .16), transparent 60%),
        var(--pd-bg);
}

/* ---- Breadcrumb ---- */
.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--pd-text);
    margin-bottom: 26px;
}
.pd-breadcrumb a { color: var(--pd-text); text-decoration: none; transition: color .3s; }
.pd-breadcrumb a:hover { color: var(--pd-accent); }
.pd-breadcrumb span[aria-current] { color: var(--pd-heading); }
.pd-breadcrumb .sep { opacity: .5; }

/* ---- Hero ---- */
.pd-hero__cat {
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pd-accent);
    background: rgba(255, 107, 44, .08);
    border: 1px solid rgba(255, 107, 44, .2);
}
.pd-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--pd-heading);
    margin-bottom: 18px;
}
.pd-hero__intro {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--pd-text);
    margin-bottom: 32px;
}

/* ---- Meta grid ---- */
.pd-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.pd-meta__item {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
}
.pd-meta__item span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--pd-text); margin-bottom: 6px; }
.pd-meta__item strong { font-size: 16px; color: var(--pd-heading); font-weight: 600; }
.pd-meta__item a { color: var(--pd-accent); text-decoration: none; }
.pd-meta__item a:hover { text-decoration: underline; }

/* ---- Featured image ---- */
.pd-figure {
    border-radius: var(--pd-radius);
    overflow: hidden;
    border: 1px solid var(--pd-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    margin-bottom: 60px;
}
.pd-figure img { width: 100%; height: auto; display: block; }

/* ---- Content sections ---- */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}
.pd-section { margin-bottom: 44px; }
.pd-section:last-child { margin-bottom: 0; }
.pd-section__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--pd-heading);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}
.pd-section__title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px;
    background: var(--pd-grad);
}
.pd-section p { font-size: 16px; line-height: 1.8; color: var(--pd-text); margin-bottom: 14px; }

/* Feature list */
.pd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pd-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.6; color: var(--pd-text); }
.pd-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 2px;
    color: var(--pd-accent); font-size: 14px;
}

/* ---- Sidebar ---- */
.pd-aside {
    position: sticky;
    top: 100px;
    padding: 28px;
    border-radius: var(--pd-radius);
    background: var(--pd-card);
    border: 1px solid var(--pd-border);
}
.pd-aside h3 { font-size: 18px; color: var(--pd-heading); margin: 0 0 16px; }
.pd-aside + .pd-aside { margin-top: 24px; }

/* Tech chips */
.pd-tech { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-tech span {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pd-heading);
    background: rgba(255, 107, 44, .08);
    border: 1px solid rgba(255, 107, 44, .22);
}

/* Results */
.pd-results { display: grid; gap: 16px; margin-top: 20px; }
.pd-result { text-align: left; }
.pd-result strong {
    display: block; font-size: 30px; font-weight: 800; line-height: 1;
    background: linear-gradient(120deg, #FF6B2C, #FFA92B);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 4px;
}
.pd-result span { font-size: 14px; color: var(--pd-text); }

/* ---- Gallery ---- */
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }
.pd-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--pd-border); }
.pd-gallery img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.pd-gallery figure:hover img { transform: scale(1.05); }

/* ---- Prev / Next nav ---- */
.pd-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 34px;
    border-top: 1px solid var(--pd-border);
}
.pd-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: var(--pd-heading);
    transition: color .3s;
    max-width: 45%;
}
.pd-nav a small { font-size: 13px; color: var(--pd-text); }
.pd-nav a strong { font-size: 17px; font-weight: 600; }
.pd-nav a:hover { color: var(--pd-accent); }
.pd-nav a.is-next { text-align: right; align-items: flex-end; margin-left: auto; }

/* ---- CTA ---- */
.pd-cta {
    margin-top: 70px;
    padding: 50px 40px;
    text-align: center;
    border-radius: var(--pd-radius);
    background: linear-gradient(160deg, rgba(255, 107, 44, .16), rgba(255, 107, 44, .05));
    border: 1px solid rgba(255, 107, 44, .25);
}
.pd-cta h2 { font-size: clamp(24px, 4vw, 34px); color: var(--pd-heading); margin: 0 0 12px; }
.pd-cta p { color: var(--pd-text); margin: 0 auto 26px; max-width: 520px; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .pd-layout { grid-template-columns: 1fr; gap: 40px; }
    .pd-aside { position: static; }
    .pd-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .pd { padding-top: 110px; }
    .pd-gallery { grid-template-columns: 1fr; }
    .pd-nav { flex-direction: column; }
    .pd-nav a, .pd-nav a.is-next { max-width: 100%; text-align: left; align-items: flex-start; }
}
