/*
  Playtest Print - shared listing-page components.
  Load AFTER nav.css (needs its tokens). Used by index.html, games.html, jams.html,
  engine.html, tools.html, misc.html: the #title header, optional .category
  grouping, and the .project card grid.
*/

#projects {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 4% 0;
}

#projects #title {
    width: 80%;
    margin: 3% 0 3% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#projects #title h2 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 2.8vw;
    margin: 0 0 .8rem 0;
}

#projects #title hr {
    width: 70%;
    height: 3px;
    background-color: var(--line);
    border: 0;
    box-shadow: 3px 3px 0 var(--accent);
    margin: 0 0 1rem 0;
}

#projects #title p {
    color: var(--ink-soft);
    font-size: 1vw;
    max-width: 60ch;
}

/* ---------- Category grouping (e.g. Professional / School Projects) ---------- */

.category {
    width: 80%;
    margin: 0 0 3% 0;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .95vw;
    color: var(--ink-soft);
    margin: 0 0 1.2rem 0;
}

.category-label::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border: 2px solid var(--line);
    flex: none;
}

/* ---------- Project card grid ---------- */

#container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project {
    display: block;
    text-decoration: none;
    color: var(--ink);
    width: calc((100% - 3rem) / 3);
    background-color: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--line);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}

.project:hover {
    cursor: pointer;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--line);
}

.project-img {
    width: 100%;
    height: 20vh;
    overflow: hidden;
    background-color: var(--paper);
    border-bottom: 2px solid var(--line);
}

.project-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .4rem;
    padding: 1rem .75rem 1.25rem;
}

.info h4 {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-size: 1.05vw;
}

.info p {
    color: var(--ink-soft);
    font-size: .85vw;
}

.info p.plateform {
    font-family: var(--font-mono);
    font-size: .78vw;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--accent-ink);
    background-color: var(--accent);
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
    #projects #title h2 {
        font-size: 8vw;
    }

    #projects #title p,
    .category-label {
        font-size: 3vw;
    }

    .project {
        width: 100%;
    }

    .info h4 {
        font-size: 4vw;
    }

    .info p {
        font-size: 3.2vw;
    }

    .info p.plateform {
        font-size: 3vw;
    }
}
