/* Listings update, September 2026.
   Homepage only: status lines on the new product cards, logo cards for Ferrum and MagicGlass,
   and the PyroSoftPro repository list in the contact section. styles.css is untouched. */

/* Status line under a card title. Same size and weight as the old inline-styled subtitles
   ("The Game" / "The Movie", which now use this rule too), in a darker orange that reads
   at 5.2:1 on the white card instead of 2.1:1. */
.portfolio-content p.project-subtitle {
    font-size: 0.9rem;
    color: #c2410c;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* Logo cards: show the whole mark on a dark ground instead of cropping it
   (the FriendlyIP card does the same thing with an inline style). */
.portfolio-image.logo-image {
    position: relative;
    background: radial-gradient(60% 75% at 50% 45%, rgba(255, 255, 255, 0.10), transparent 70%), #0b0c10;
}
.portfolio-image.logo-image.logo-image--ember {
    background: radial-gradient(55% 75% at 50% 50%, rgba(255, 138, 61, 0.22), transparent 70%), #110d0b;
}
/* The mark is taken out of the flow so a square logo can't stretch the box on phones,
   where styles.css sizes .portfolio-image by aspect-ratio instead of a fixed 200px. */
.portfolio-image.logo-image .project-image {
    position: absolute;
    inset: 0;
    object-fit: contain;
    padding: 22px;
}

/* ---- Public PyroSoftPro repositories (contact section) ---- */
.oss-repos {
    margin-top: 80px;
}
.oss-repos-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}
.oss-repos-head h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-color);
}
.oss-repos-head h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}
.oss-repos-head p {
    color: #666;
    line-height: 1.6;
}
.oss-repos-head a {
    color: var(--primary-ink);
    font-weight: 600;
    text-decoration: none;
}
.oss-repos-head a:hover {
    text-decoration: underline;
}
.oss-repo-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.oss-repo-list li {
    display: flex;
}
.oss-repo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid rgba(255, 91, 4, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(255, 91, 4, 0.08);
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.oss-repo:hover,
.oss-repo:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 91, 4, 0.35);
    box-shadow: var(--shadow-hover);
    outline: none;
}
.oss-repo-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.oss-repo-name i {
    color: var(--primary-color);
}
.oss-repo-desc {
    flex: 1;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.55;
}
.oss-repo-meta {
    color: #6e6e73;
    font-size: 0.8rem;
    font-weight: 600;
}
.oss-repos-more {
    margin-top: 32px;
    text-align: center;
}
.oss-repos-more a {
    padding: 12px 26px;
}

@media (max-width: 992px) {
    .oss-repo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .oss-repos {
        margin-top: 56px;
    }
    .oss-repos-head h3 {
        font-size: 1.5rem;
    }
    .oss-repo-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
