/* backlog.css — page-specific helpers for the Backlog Blogposts archive. */

.backlog-page .post {
    scroll-margin-top: 96px;
}

.backlog-page .post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 14px auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111827;
}

.backlog-page .post-content iframe {
    max-width: 100%;
}

/* Responsive embeds (YouTube, Drive, etc.). */
.backlog-page .video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.45);
}

.backlog-page .video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.backlog-page .image-wrapper,
.backlog-page .cd-image-wrapper {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.backlog-page .image-wrapper img,
.backlog-page .cd-image-wrapper img {
    width: min(600px, 100%);
    height: auto;
}

.backlog-page .cd-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 16px 0;
}

@media (min-width: 640px) {
    .backlog-page .cd-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.backlog-page blockquote {
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 4px solid rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.08);
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.95);
    font-style: italic;
    line-height: 1.6;
}

/* Tags → chips */
.backlog-page .tags {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.85rem;
}

.backlog-page .tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 6px 6px 0 0;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.4);
    color: rgba(250, 204, 21, 0.85);
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.backlog-page .tags a:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.backlog-page .tags a:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.7);
    outline-offset: 2px;
}

/* Simple button-link style used in a few legacy posts */
.backlog-page .blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    background: #6d28d9;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.backlog-page .blog-button:hover {
    filter: brightness(1.06);
}

/* Headings inside post bodies (e.g. essays) */
.backlog-page .post-content h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.92);
}

/* Dense long lists (e.g., tracklists): go 2 columns on large screens. */ (e.g., tracklists): go 2 columns on large screens. */
.backlog-page .long-list {
    columns: 1;
    column-gap: 32px;
}

@media (min-width: 1024px) {
    .backlog-page .long-list {
        columns: 2;
    }
}

.backlog-page .long-list > li {
    break-inside: avoid;
    padding-right: 8px;
}

/* TOC */
.backlog-toc {
    max-height: 60vh;
    overflow: auto;
    padding-right: 6px;
}

.backlog-toc__year {
    margin-top: 14px;
}

.backlog-toc__year-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
    color: rgba(250, 204, 21, 0.9);
    margin-bottom: 6px;
}

.backlog-toc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.backlog-toc__link {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.35);
    text-decoration: none;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.2;
}

.backlog-toc__link:hover {
    border-color: rgba(109, 40, 217, 0.6);
    background: rgba(109, 40, 217, 0.18);
}

.backlog-toc__date {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(148, 163, 184, 0.92);
    white-space: nowrap;
}

.backlog-toc__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backlog-toc__link.is-hidden {
    display: none;
}
