/* Project detail page styles. Shared rules live in common.css. */

:root {
    --pp-max-width: 1100px;
    --pp-muted: #6c6c6c;
    --pp-text: #111;
    --pp-hairline: #e4e4e4;
    --pp-pill-bg: #f3f3f3;
    --pp-pill-bg-hover: #e8e8e8;
    --pp-green: #0dc469;
}

/* ===== Top nav (back link + small site title) ===== */
.project-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 24px 32px;
}
.project-topnav .back-link {
    font-size: 14px;
    color: var(--pp-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.project-topnav .back-link:hover { color: var(--pp-green); }
.project-topnav .site-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--pp-text);
    text-decoration: none;
}
.project-topnav .site-title:hover { color: var(--pp-green); }

/* ===== Hero (Steam-style two-column) ===== */
.project-hero {
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 0 32px;
}
.project-name {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 18px;
}
.project-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}
.project-hero-main {
    min-width: 0;
}
.project-hero-main .project-hero-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    background: #111;
    margin: 0;
}
.project-hero-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.project-hero-capsule {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    background: #222;
}
.project-description {
    font-size: 13.5px;
    color: #333;
    margin: 0;
    line-height: 1.55;
}
.project-hero-meta {
    display: grid;
    grid-template-columns: 80px 1fr;
    row-gap: 8px;
    column-gap: 12px;
    padding: 10px 0 0;
    border-top: 1px solid #ececec;
    margin: 4px 0 0;
}
.project-hero-meta dt {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a8a8a;
    font-weight: 600;
    margin: 0;
}
.project-hero-meta dd {
    margin: 0;
    font-size: 13px;
    color: var(--pp-text);
    font-weight: 500;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.tag-pill {
    background: var(--pp-pill-bg);
    color: var(--pp-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11.5px;
    text-decoration: none;
    transition: background 0.2s;
}
.tag-pill:hover { background: var(--pp-pill-bg-hover); }

/* ===== Divider ===== */
.hairline {
    border: 0;
    height: 1px;
    background: var(--pp-hairline);
    max-width: var(--pp-max-width);
    margin: 56px auto;
}

/* ===== Body (text / lists / media blocks) ===== */
.project-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
    font-family: 'Poppins', sans-serif;
}
.project-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0 0 18px;
}
.project-body ul {
    margin: 0 0 24px;
    padding-left: 22px;
    list-style-type: disc;
}
.project-body li {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 6px;
}
.project-content-image,
.project-content-gif {
    width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
    border-radius: 4px;
    object-fit: cover;
}
.project-content-gif {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project-content-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 24px 0;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Prev / next ===== */
.project-prev-next {
    max-width: var(--pp-max-width);
    margin: 0 auto;
    padding: 0 32px 56px;
    display: grid;
    grid-template-columns: min-content auto auto min-content;
    column-gap: 8px;
    align-items: center;
    justify-content: center;
}
.project-nav-arrow {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #444;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}
.project-nav-arrow:hover {
    color: var(--pp-green);
    transform: scale(1.15);
}
.project-card-link {
    display: block;
    background: #1c1c1c;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
    max-width: 320px;
    justify-self: center;
    transition: transform 0.2s, opacity 0.18s ease;
}
.project-card-link.swapping {
    opacity: 0;
}
.project-card-link:hover { transform: translateY(-2px); }
.project-card-link img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    display: block;
}
.project-card-link .more-name {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}
.project-card-link.next .more-name {
    text-align: right;
}

/* ===== Pagination indicator ===== */
.project-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 32px;
}
.project-pagination .seg {
    height: 4px;
    width: 24px;
    border-radius: 2px;
    background: #d4d4d4;
    transition: background 0.2s ease;
}
.project-pagination .seg.active {
    background: var(--pp-green);
}

/* Contact footer styles live in common.css (shared with homepage). */

/* ===== Responsive tweaks ===== */
@media (max-width: 800px) {
    .project-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-hero-meta { grid-template-columns: 70px 1fr; }
    .project-prev-next {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .project-nav-arrow { display: none; }
    .project-name { font-size: 28px; }
}
