/* =========================================================
   FORUMDISPLAY THREADLIST
   leichte Szenen-/Themenliste passend zum Theme
   ========================================================= */

.rpg-forumdisplay-page,
.rpg-threadlist-wrap,
.rpg-threadlist-wrap * {
    box-sizing: border-box;
    border-radius: 0;
}

.rpg-threadlist-wrap {
    margin: 18px 0 24px 0;
    color: var(--rpg-text);
    font-family: Arial, Helvetica, sans-serif;
}

/* Kopfbereich */

.rpg-threadlist-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 0;

    border: 1px solid rgba(28,43,49,.14);
    background:
        linear-gradient(90deg, rgba(255,255,255,.42), rgba(236,232,223,.34)),
        rgba(247,246,242,.62);

    box-shadow: 0 12px 24px rgba(28,43,49,.06);
}

.rpg-threadlist-titlebox {
    padding: 17px 20px;
    border-left: 3px solid var(--rpg-dark);
    border-right: 1px solid rgba(28,43,49,.12);
}

.rpg-threadlist-kicker {
    display: block;
    margin: 0 0 6px 0;

    color: rgba(28,43,49,.48);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.rpg-threadlist-titlebox h1 {
    margin: 0 0 6px 0;
    padding: 0;

    color: var(--rpg-dark);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .035em;
}

.rpg-threadlist-desc {
    color: rgba(28,43,49,.62);
    font-size: 11px;
    line-height: 1.55;
}

.rpg-threadlist-actions {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.22);
}

.rpg-threadlist-actions a,
.rpg-threadlist-actions .button,
.rpg-threadlist-actions input.button {
    min-height: 30px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(28,43,49,.18);
    background: var(--rpg-dark);

    color: var(--rpg-paper) !important;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.rpg-threadlist-actions a:hover,
.rpg-threadlist-actions .button:hover,
.rpg-threadlist-actions input.button:hover {
    background: var(--rpg-brick);
    border-color: var(--rpg-brick);
    color: #fff !important;
}

/* Seitenzahlen */

.rpg-threadlist-pages {
    margin: 10px 0;
}

/* Liste */

.rpg-threadlist {
    border: 1px solid rgba(28,43,49,.12);
    border-top: 0;
    background: rgba(247,246,242,.50);
}

/* einzelne Themenzeile */

.rpg-thread-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 190px 34px;
    align-items: stretch;

    min-height: 64px;

    border-top: 1px solid rgba(28,43,49,.10);
    background:
        linear-gradient(90deg, rgba(255,255,255,.38), rgba(236,232,223,.22));

    color: rgba(28,43,49,.76);
}

.rpg-thread-card:first-child {
    border-top: 0;
}

.rpg-thread-card:hover {
    background:
        linear-gradient(90deg, rgba(255,255,255,.56), rgba(236,232,223,.30));
}

/* Status statt dot_folder-Text */

.rpg-thread-status {
    display: flex;
    align-items: center;
    justify-content: center;

    border-right: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.18);

    font-size: 0;
    color: transparent;
}

.rpg-thread-status::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;

    background: rgba(28,43,49,.28);
}

.rpg-thread-status-newfolder::before,
.rpg-thread-status-newhotfolder::before,
.rpg-thread-status-dot_newfolder::before,
.rpg-thread-status-dot_newhotfolder::before {
    background: var(--rpg-dark);
}

.rpg-thread-status-hotfolder::before,
.rpg-thread-status-folder::before,
.rpg-thread-status-dot_folder::before,
.rpg-thread-status-dot_hotfolder::before {
    background: rgba(28,43,49,.32);
}

.rpg-thread-status-lockfolder::before,
.rpg-thread-status-dot_lockfolder::before {
    background: var(--rpg-brick);
}

/* Hauptinhalt */

.rpg-thread-content {
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rpg-thread-title {
    margin: 0 0 5px 0;

    color: var(--rpg-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .025em;
}

.rpg-thread-title a {
    color: var(--rpg-dark);
    text-decoration: none;
}

.rpg-thread-title a:hover {
    color: var(--rpg-brick);
}

.rpg-thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;

    color: rgba(28,43,49,.48);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rpg-thread-meta a {
    color: var(--rpg-dark);
}

/* Letzte Antwort */

.rpg-thread-lastpost {
    min-width: 0;
    padding: 11px 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-left: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.16);
}

.rpg-thread-lastpost span {
    display: block;
    margin: 0 0 3px 0;

    color: rgba(28,43,49,.44);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rpg-thread-lastpost strong {
    display: block;

    color: var(--rpg-dark);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.rpg-thread-lastpost a {
    margin-top: 3px;
    width: max-content;

    color: rgba(28,43,49,.56);
    font-size: 9px;
    line-height: 1.3;
    text-decoration: none;
    border-bottom: 1px solid rgba(28,43,49,.16);
}

.rpg-thread-lastpost a:hover {
    color: var(--rpg-brick);
    border-bottom-color: rgba(115,44,38,.34);
}

/* Moderationscheckbox */

.rpg-thread-modbit {
    display: flex;
    align-items: center;
    justify-content: center;

    border-left: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.14);
}

.rpg-thread-modbit input.checkbox {
    margin: 0;
}

/* Inline Moderation */

.rpg-threadlist-modtools {
    margin: 14px 0;
    padding: 10px 12px;

    border: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.24);

    text-align: right;
    color: rgba(28,43,49,.58);
    font-size: 11px;
}

.rpg-threadlist-modtools select,
.rpg-threadlist-modtools input.button {
    min-height: 28px;
}

/* Unterer Bereich: Legende + Suche */

.rpg-threadlist-bottom {
    margin-top: 14px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.22);
}

.rpg-threadlist-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;

    color: rgba(28,43,49,.48);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rpg-threadlist-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rpg-threadlist-legend i {
    width: 8px;
    height: 8px;
    display: inline-block;
}

.rpg-legend-new {
    background: var(--rpg-dark);
}

.rpg-legend-old {
    background: rgba(28,43,49,.30);
}

.rpg-legend-closed {
    background: var(--rpg-brick);
}

.rpg-threadlist-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* Select all */

.rpg-selectall {
    padding: 8px 12px;
    border-top: 1px solid rgba(28,43,49,.10);
    background: rgba(255,255,255,.18);

    color: rgba(28,43,49,.54);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rpg-selectall a {
    color: var(--rpg-dark);
}

/* Keine Themen */

.rpg-thread-empty {
    padding: 18px 20px;

    border: 1px solid rgba(28,43,49,.12);
    background: rgba(255,255,255,.24);

    color: rgba(28,43,49,.62);
    font-size: 12px;
    line-height: 1.6;
}

/* Responsive */

@media screen and (max-width: 820px) {
    .rpg-threadlist-top {
        grid-template-columns: 1fr;
    }

    .rpg-threadlist-titlebox {
        border-right: 0;
        border-bottom: 1px solid rgba(28,43,49,.12);
    }

    .rpg-thread-card {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .rpg-thread-lastpost {
        grid-column: 2 / 3;
        border-left: 0;
        border-top: 1px solid rgba(28,43,49,.08);
        padding-top: 0;
    }

    .rpg-thread-modbit {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .rpg-threadlist-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .rpg-threadlist-tools {
        width: 100%;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 520px) {
    .rpg-thread-meta {
        flex-direction: column;
        gap: 3px;
    }

    .rpg-threadlist-modtools {
        text-align: left;
    }
}