/*
  Playtest Print - detail-page components (buttons row, title, overview media,
  about text, steps accordion). Riso-poster look: cream paper, thick ink borders,
  hard offset shadows, one yellow accent ink.

  Tokens, reset and the nav sidebar live in style/nav.css (loaded site-wide) -
  load that BEFORE this file. Load template-project.css / template-article.css
  AFTER this one to layer page-specific rules.
*/

/* ---------- Page shell ---------- */

#page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- Action buttons row ---------- */

#buttons {
    margin: 3% 0 0 0;
    width: 80%;
    min-height: 8vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#buttons .button {
    border-radius: var(--radius-sm);
    background-color: var(--card);
    border: 2px solid var(--line);
    box-shadow: 3px 3px 0 var(--line);
    transition: transform .12s ease, box-shadow .12s ease;
}

#buttons .button a {
    display: inline-block;
    padding: .6rem 1.4rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .95vw;
    color: var(--ink);
}

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

#buttons .button.accent {
    background-color: var(--accent);
}

/* ---------- Section titles ---------- */

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

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

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

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

/* ---------- Overview media (video / iframe) ---------- */

#page iframe,
.project-overview {
    width: 70%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 0 3% 0;
    border: 2px solid var(--line);
    box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--line);
    overflow: hidden;
}

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

/* ---------- About text ---------- */

#about {
    text-align: center;
    width: 70%;
    margin: 0 0 4% 0;
    line-height: 1.65;
}

/* ---------- Steps accordion (shared by "contributions" and "steps") ---------- */

#steps-list {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 4% 0;
}

.step {
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
}

.step .bar {
    background-color: var(--card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--line);
    transition: transform .12s ease, box-shadow .12s ease;
}

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

.step.active .bar {
    background-color: var(--accent);
}

.step .bar p {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 1.15vw;
}

.step .arrow {
    transform: rotate(90deg);
    display: inline-block;
    transition: transform .2s ease;
}

.step.active .arrow {
    transform: rotate(-90deg);
}

.step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
}

.step.active .step-content {
    max-height: 1200px;
}

.step-content-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-content video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid var(--line);
}

.step-content p {
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
/* #content / #navigation / .vertical-bar breakpoints live in nav.css */

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

    .title p,
    #buttons .button a,
    .step .bar p {
        font-size: 3vw;
    }

    #page iframe,
    .project-overview,
    #about,
    #steps-list {
        width: 92%;
    }
}
