/* Project pages, changelogs and credits (pages added with the dashboard).
   Builds on portfolio.css. */

/* Main heading, as on the Bots page (bots.css), a little larger than the
   section headings below it. */
.section-head h1 {
    font-size: 2.3em;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: var(--text);
}

.project-image {
    width: 100%;
    max-width: 46em;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: -12px 0 32px 0;
}

.project-image.project-image-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    padding: 16px;
    background: var(--surface-alt);
}

.page-section .text-section + .button-group,
.page-section .project-image + .button-group {
    margin-top: 28px;
}

.changelog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card .changelog-meta,
.changelog-meta {
    color: var(--text-muted);
    font-size: 0.85em;
    flex: none;
    margin: 0 0 12px 0;
}

.changelog-empty {
    color: var(--text-muted);
    margin: 0;
}

.changelog-more {
    margin: 28px 0 0 0;
    font-weight: 600;
}

.changelog-back {
    margin: 0 0 28px 0;
    font-weight: 600;
    font-size: 0.95em;
}

.changelog-post .section-head {
    margin-bottom: 16px;
}

.changelog-post .changelog-meta {
    margin-bottom: 28px;
}

.changelog-cover {
    width: 100%;
    max-width: 46em;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 0 0 32px 0;
}

.changelog-post .tag-list {
    margin-top: 32px;
}

.credit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.credit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 0;
}

.credit img,
.credit .credit-initial {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-alt);
}

.credit .credit-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-bright);
}

.credit div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.credit strong {
    display: block;
}

.credit span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9em;
}
