/* Aus der Community: Reddit-Threads ueber der eigenen Liste (2026-12-02).
   resources/views/game/reddit.blade.php.

   Dasselbe Papier wie die Kassenzettel darunter (.feed-receipts in
   project.css: Papierfarbe, Zacken unten, drop-shadow, Schreibmaschinen-
   Kopf mit Punktlinie), aber im Kopf steht "Von Reddit" statt einer
   Nummer: ein Thread dort, kein Bericht von hier.

   Eigene Datei statt project.css, weil HEAD gerade nicht mit Vite baut. */

.rd-block {
    padding-top: 6px;
    padding-bottom: 30px;
}

.rd-block__intro {
    margin: 8px 0 16px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .85;
}

.rd-block__asof {
    white-space: nowrap;
    opacity: .75;
}

.rd-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-card {
    position: relative;
    padding: 12px 16px 26px;
    filter: drop-shadow(0 1px 1px hsl(var(--bc) / .07)) drop-shadow(0 8px 14px hsl(var(--bc) / .07));
}

html.dark .rd-card {
    --paper: #23232a;
    filter: drop-shadow(0 1px 1px #0007) drop-shadow(0 8px 14px #0006);
}

/* Das Blatt, dieselbe Maske wie .feed-receipts .post-card::before */
.rd-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper, #fffdf8);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
    /* -1: die Karte ist durch den filter ihr eigener Stapel, das Blatt
       liegt also unter dem Text und trotzdem auf der Seite. So kann der
       Link mit ::after die ganze Karte abdecken. */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 1023.98px) {
    .rd-card {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Kopf wie bei den Zetteln: Schreibmaschine, gross, blass, Punktlinie */
.rd-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    margin-bottom: 12px;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    line-height: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: hsl(var(--bc) / .45);
    background-image: linear-gradient(to right, hsl(var(--bc) / .3) 2px, transparent 2px);
    background-size: 7px 1px;
    background-repeat: repeat-x;
    background-position: left bottom;
}

/* Der Name des Subreddits bleibt, wie er geschrieben wird: r/GTA6 */
.rd-card__head > :last-child {
    text-transform: none;
    letter-spacing: .06em;
}

.rd-card__title {
    margin: 0;
    font-family: 'Geist', 'Kanit', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Der Titel ist der Link, und er deckt die ganze Karte ab (::after), damit
   der Daumen nicht auf die Zeile zielen muss. Ein Textlink: in keinem
   Zustand eine Flaeche, nur die Farbe wechselt. */
.rd-card__link,
.rd-card__link:visited {
    color: inherit;
    text-decoration: none;
    background: none;
}

.rd-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rd-card__link:hover,
.rd-card:hover .rd-card__link {
    color: rgb(var(--color-theme));
    text-decoration: none;
    background: none;
}

.rd-card .rd-card__link:active {
    color: color-mix(in srgb, rgb(var(--color-theme)) 80%, #000);
}

.rd-card__link:focus {
    outline: none;
    background: none;
}

.rd-card__link:focus-visible {
    color: rgb(var(--color-theme));
}

.rd-card__link:focus-visible::after {
    outline: 2px solid rgb(var(--color-theme));
    outline-offset: -2px;
}

.rd-card__text {
    margin: 0;
    padding-top: 4px;
    font-size: 13px;
    line-height: 19.5px;
    overflow-wrap: anywhere;
}

.rd-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 6px;
    row-gap: 2px;
    margin: 10px 0 0;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 18px;
    color: hsl(var(--bc) / .6);
}

.rd-card__type {
    display: inline-flex;
    align-items: center;
    color: hsl(var(--bc) / .55);
}

.rd-card__dot {
    opacity: .7;
}

.rd-more {
    margin-top: 16px;
}
