/* ============================================================
   Tom Robert — Product & UX Consultant
   Project Detail Page Styles (project.css)
   Supplements style.css — always load style.css first
   ============================================================ */

/* ------------------------------------------------------------
   Project Hero — clean, light, consistent with site palette
   ------------------------------------------------------------ */
.project-hero {
    padding: calc(var(--nav-height) + 80px) 96px 64px;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
    transition: color var(--transition);
    text-decoration: none;
}

.project-back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.project-back:hover {
    color: var(--text);
}

.project-back:hover svg {
    transform: translateX(-3px);
}

.project-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.06);
    padding: 6px 14px;
    border-radius: 999px;
}

.project-main-title {
    font-family: 'Arima', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 800px;
}

.project-short-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
}

.project-info-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.project-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.project-info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

/* ------------------------------------------------------------
   Cover Image
   ------------------------------------------------------------ */
.project-cover {
    padding: 0 96px 80px;
}

.project-cover-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* ------------------------------------------------------------
   Description Content
   ------------------------------------------------------------ */
.project-content {
    padding: 0 96px 96px;
}

.project-description {
    columns: 2;
    column-gap: 64px;
    column-rule: 1px solid rgba(0, 0, 0, 0.07);
}

.project-description h2,
.project-description h3,
.project-description blockquote,
.project-description ul,
.project-description ol {
    break-inside: avoid;
}

.project-description h2 {
    font-family: 'Arima', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 2em 0 0.75em;
    line-height: 1.2;
}

.project-description h2:first-child {
    margin-top: 0;
}

.project-description h3 {
    font-family: 'Arima', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.75em 0 0.5em;
}

.project-description p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5em;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-description ul,
.project-description ol {
    margin: 0 0 1.5em;
    padding-left: 0;
    list-style: none;
}

.project-description ul li,
.project-description ol li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-description ul li:last-child,
.project-description ol li:last-child {
    border-bottom: none;
}

.project-description ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.project-description ol {
    counter-reset: proj-list;
}

.project-description ol li {
    counter-increment: proj-list;
}

.project-description ol li::before {
    content: counter(proj-list);
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-description strong {
    font-weight: 600;
    color: var(--text);
}

.project-description a {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-color: rgba(14, 158, 90, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.project-description a:hover {
    text-decoration-color: var(--green-dark);
}

.project-description img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2em 0;
}

.project-description blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    border-left: 3px solid var(--green);
    background: var(--green-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
    font-size: 1rem;
}

/* ------------------------------------------------------------
   Gallery Section
   ------------------------------------------------------------ */
.project-gallery {
    padding: 0 96px 192px;
}

.gallery-header {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.gallery-item {
    display: block;
    min-width: 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-caption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-inline: 4px;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   404 / Error states
   ------------------------------------------------------------ */
.project-not-found {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
}

.project-not-found-inner {
    text-align: center;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.project-not-found-code {
    font-family: 'Arima', Georgia, serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    letter-spacing: -0.04em;
}

.project-not-found-inner h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
}

.project-not-found-inner p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .project-hero {
        padding: calc(var(--nav-height) + 64px) 64px 56px;
    }

    .project-cover {
        padding: 0 64px 64px;
    }

    .project-content {
        padding: 0 64px 80px;
    }

    .project-description {
        columns: 1;
        column-rule: none;
    }

    .project-gallery {
        padding: 0 64px 80px;
    }
}

/* ------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .project-hero {
        padding: calc(var(--nav-height) + 40px) 24px 40px;
    }

    .project-cover {
        padding: 0 24px 48px;
    }

    .project-cover-image {
        border-radius: 16px;
    }

    .project-content {
        padding: 0 24px 64px;
    }

    .project-gallery {
        padding: 0 24px 64px;
    }

    .project-info-row {
        gap: 24px;
    }

    .project-not-found-code {
        font-size: 5rem;
    }
}
