/* ========================================
   Bloomies Press Kit - im Look der Bloomiepedia
   Baut auf wiki.css auf: helle Tokens und Key-Art-Hintergrund ueber body.bp,
   Aufbau ueber .wiki-layout (links Logo + Abschnittsleiste, rechts das Inhaltsfenster).
   Die Klasse .pk-footer wird auch vom Wiki genutzt.
   ======================================== */

/* ---------- Kopf im Inhaltsfenster ---------- */
.pk-intro {
    max-width: 52em;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.pk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

/* ---------- Abschnittsleiste links: bleibt beim Scrollen stehen ---------- */
.presskit-page .wiki-side {
    position: sticky;
    top: 61px; /* Hoehe der Topbar + Abstand oben in .wiki-layout */
}

/* ---------- Abschnitte ---------- */
.pk-section {
    scroll-margin-top: 72px;
}

.pk-section + .pk-section {
    margin-top: 48px;
}

.pk-section .wiki-section-title {
    margin: 0 0 20px;
}

.pk-section p,
.pk-section li {
    font-size: 16px;
    line-height: 1.7;
}

.pk-main a:not(.pk-btn) {
    color: var(--sprout);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(30, 106, 18, 0.4);
    text-underline-offset: 4px;
}

.pk-main a:not(.pk-btn):hover {
    color: var(--strong);
    text-decoration-color: currentColor;
}

.pk-section strong {
    font-weight: 700;
    color: var(--strong);
}

.pk-columns {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: start;
}

/* nebeneinander stehende Tafeln brauchen keinen Abstand nach oben */
.pk-columns > .pk-card,
.pk-columns > .pk-card + .pk-card {
    min-width: 0;
    margin-top: 0;
}

/* ---------- Tafeln (wie die Skill-Karten im Wiki) ---------- */
.pk-card {
    padding: 14px 18px 18px;
    background: var(--panel);
    border: 2px solid var(--line);
}

.pk-card + .pk-card,
.pk-video-grid + .pk-card,
.pk-grid + .pk-card {
    margin-top: 14px;
}

.pk-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--h3);
}

.pk-card p {
    margin-bottom: 12px;
}

.pk-card p:last-child {
    margin-bottom: 0;
}

.pk-muted {
    font-weight: 400;
    color: var(--cream-dim);
}

/* ---------- Factsheet ---------- */
.pk-facts {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.pk-facts th,
.pk-facts td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.pk-facts tr:nth-child(odd) {
    background: var(--row);
}

.pk-facts th {
    width: 42%;
    font-weight: 400;
    color: var(--cream-dim);
}

.pk-facts td {
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ---------- Feature-Liste ---------- */
.pk-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 8px 28px;
}

.pk-list > li {
    position: relative;
    padding-left: 22px;
}

/* Muenze als Aufzaehlungszeichen */
.pk-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    background: url('../images/wiki/coin.png') center / contain no-repeat;
    image-rendering: pixelated;
}

/* ---------- Buttons in den Farben der Spiel-Buttons ---------- */
.pk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 11px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    background: var(--wood-grad);
    border: 3px solid var(--ink);
    text-shadow: 0 2px 0 var(--ink);
}

.pk-btn:hover {
    background: linear-gradient(#a57d5f 0 3px, #936a4c 3px 55%, #7a573f 55%);
}

.pk-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 0 var(--ink));
}

/* Steam-Button in Gruen wie im Spiel die Bestaetigen-Buttons */
.pk-btn.is-steam {
    color: #10210a !important;
    text-shadow: none;
    background: linear-gradient(#c8ff8a 0 3px, #9eff44 3px 55%, #7dd632 55%);
}

.pk-btn.is-steam img {
    filter: brightness(0);
}

.pk-btn.is-steam:hover {
    background: linear-gradient(#d8ffa8 0 3px, #b0ff66 3px 55%, #8ee644 55%);
}

/* ---------- Trailer ---------- */
.pk-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pk-video-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.pk-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--line);
}

.pk-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pk-video-item figcaption {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cream-dim);
}

/* ---------- Screenshots ---------- */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.pk-shot {
    display: block;
    padding: 0;
    line-height: 0;
    cursor: zoom-in;
    background: #000;
    border: 2px solid var(--line);
}

.pk-shot:hover,
.pk-shot:focus-visible {
    border-color: var(--sprout);
}

/* Screenshots und Key Arts werden verkleinert -> weich skalieren statt pixelig */
body.wiki-page .pk-shot img,
body.wiki-page .pk-keyart-frame img,
body.wiki-page .pk-lightbox img {
    image-rendering: auto;
}

.pk-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Key Arts ---------- */
.pk-keyarts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.pk-keyart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background: var(--panel);
    border: 2px solid var(--line);
}

.pk-keyart-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 12px;
    cursor: zoom-in;
    background: var(--panel-deep);
    border: 2px solid var(--line);
}

.pk-keyart-frame:hover,
.pk-keyart-frame:focus-visible {
    border-color: var(--sprout);
}

.pk-keyart-frame img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    height: auto;
}

.pk-keyart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.pk-keyart-meta strong {
    font-size: 14px;
    font-weight: 700;
}

.pk-keyart-meta span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--cream-dim);
}

.pk-download {
    font-size: 14px;
    white-space: nowrap;
}

/* ---------- Text / Kontakt ---------- */
.pk-text {
    max-width: 52em;
}

.pk-text + .pk-contact-list {
    margin-top: 12px;
}

.pk-contact-list {
    list-style: none;
    max-width: 620px;
    border: 2px solid var(--line);
}

.pk-contact-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 12px;
    background: var(--panel);
}

.pk-contact-list li:nth-child(odd) {
    background: var(--row);
}

.pk-contact-list a {
    overflow-wrap: anywhere;
}

.pk-contact-list span {
    min-width: 120px;
    color: var(--cream-dim);
}

/* ---------- Footer (Basis, Wiki-Look kommt aus wiki.css: .bp .pk-footer) ---------- */
.pk-footer {
    padding: 32px;
    text-align: center;
    font-size: 14px;
}

.pk-footer a {
    margin: 0 10px;
}

/* ---------- Lightbox ---------- */
.pk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(21, 17, 16, 0.94);
}

.pk-lightbox.is-open {
    display: flex;
}

.pk-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border: 3px solid var(--ink);
}

.pk-lightbox-close,
.pk-lightbox-nav {
    position: absolute;
    width: 46px;
    height: 46px;
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    background: var(--wood-grad);
    border: 3px solid var(--ink);
    text-shadow: 0 2px 0 var(--ink);
}

.pk-lightbox-close:hover,
.pk-lightbox-nav:hover {
    color: #9eff44;
}

.pk-lightbox-close {
    top: 20px;
    right: 20px;
}

.pk-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.pk-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- Tastatur-Fokus ---------- */
.pk-btn:focus-visible,
.pk-shot:focus-visible,
.pk-keyart-frame:focus-visible,
.pk-main a:focus-visible,
.pk-lightbox button:focus-visible {
    outline: 3px solid var(--sprout);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .presskit-page .wiki-side {
        position: static;
    }

    /* Nur 8 Abschnitte: auf dem Handy immer sichtbar, als umbrechende Reihe statt Klappmenue */
    .presskit-page .wiki-nav {
        display: block;
        margin-top: 0;
    }

    .presskit-page .wiki-nav ol {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 6px;
    }

    .presskit-page .wiki-nav a {
        padding: 4px 10px;
        background: var(--panel);
    }

    .pk-columns,
    .pk-video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pk-section + .pk-section {
        margin-top: 36px;
    }

    .pk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pk-hero-actions .pk-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .pk-list {
        grid-template-columns: 1fr;
    }

    .pk-facts th {
        width: 38%;
    }
}
