/* =================================
    index_blog.css - the Blog slide on index.php
    Uses index.css's theme variables, so it follows light/dark mode.
    ================================= */
.home-blog {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    text-align: left;
}

.home-blog-single {
    grid-template-columns: 1fr;
}

/* --- Lead post --- */
.home-blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: var(--subtle-text-color);
}

/* Same tinted pill style as the "New / Updated" pills on the Database slide */
.home-blog-category {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    background: color-mix(in srgb, var(--info-color) 18%, transparent);
    color: var(--info-color);
    border: 1px solid color-mix(in srgb, var(--info-color) 35%, transparent);
    transition: opacity 0.2s, transform 0.15s;
}

.home-blog-category:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Matches .game-title / .company-name on the Discover and Focus slides */
.home-blog-lead h3 {
    font-size: 1.8em;
    line-height: 1.2;
    margin: 12px 0 12px 0;
}

.home-blog-lead h3 a {
    color: var(--heading-color);
    text-decoration: none;
}

.home-blog-lead h3 a:hover {
    text-decoration: underline;
}

.home-blog-excerpt {
    margin: 0 0 16px 0;
    font-size: 1em;
    line-height: 1.6;
    color: var(--card-text-color);
}

.home-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-blog-tags a {
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--subtle-text-color);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.home-blog-tags a:hover {
    border-color: var(--heading-color);
    color: var(--heading-color);
}

.home-blog-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* index.css gives .button-secondary a 20px top margin; the row handles spacing here */
.home-blog-actions .button-secondary {
    margin-top: 0;
}

.home-blog-all {
    font-weight: bold;
    color: var(--subtle-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.home-blog-all:hover {
    color: var(--heading-color);
}

/* --- More posts column --- */
.home-blog-more {
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
}

.home-blog-more h4 {
    margin: 0 0 6px 0;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--subtle-text-color);
}

.home-blog-more-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.home-blog-more-item:last-child {
    border-bottom: none;
}

.home-blog-more-title {
    display: block;
    font-weight: bold;
    line-height: 1.35;
    color: var(--heading-color);
}

.home-blog-more-item:hover .home-blog-more-title {
    text-decoration: underline;
}

.home-blog-more-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.8em;
    color: var(--subtle-text-color);
}

/* --- Stack the columns on smaller screens --- */
@media (max-width: 768px) {
    .home-blog {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-blog-more {
        padding-left: 0;
        padding-top: 12px;
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
}

@media (max-width: 600px) {
    .home-blog-lead h3 {
        font-size: 1.4em;
    }
}
