/* ==========================================================================
   styles-blog.css — all styles for the /blog/ folder
   ========================================================================== */

/* ==========================================================================
   1. Reset & Base */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Roboto, system-ui, Arial, sans-serif;
    background: #111;
    color: #fff;
}

img {
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ==========================================================================
   2. Blog Post Hero Banner */

.blog-hero {
    width: 100%;
    padding: 5rem 2rem 3rem 2rem;
    background: #111;
    text-align: center;
    border-bottom: 2px solid #222;
}

.blog-hero .blog-category {
    font-family: "Jersey 10", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #cfcfcf;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.blog-hero h1 {
    font-family: "Jersey 10", sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.blog-meta {
    font-size: 0.95rem;
    color: #aaa;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   3. Blog Hero Image (16:9 thumbnail shown below the title banner) */

.blog-hero-img {
    max-width: 760px;
    margin: 3rem auto 0 auto;
    padding: 0 2rem;
}

.blog-hero-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ==========================================================================
   4. Blog Post Body */

.blog-body {
    max-width: 760px;
    margin: 3rem auto 5rem auto;
    padding: 0 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #ddd;
}

.blog-body h2 {
    font-family: "Jersey 10", sans-serif;
    font-size: 2rem;
    color: #fff;
    margin: 3rem 0 1rem 0;
    text-transform: uppercase;
}

.blog-body h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 2rem 0 0.75rem 0;
}

.blog-body p {
    margin-bottom: 1.5rem;
    color: #ddd;
}

.blog-body img {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.blog-body .img-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.blog-tip {
    background: #000;
    border: 2px solid #222;
    border-left: 4px solid #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    color: #ddd;
    font-size: 1rem;
}

.blog-tip strong {
    color: #fff;
    font-family: "Jersey 10", sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-body hr {
    border: none;
    border-top: 2px solid #222;
    margin: 3rem 0;
}

/* ==========================================================================
   5. Related Posts Section */

.related-posts-section {
    max-width: 760px;
    margin: 0 auto 5rem auto;
    padding: 3rem 2rem 0 2rem;
    border-top: 2px solid #222;
}

.related-posts-title {
    font-family: "Jersey 10", sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Related post card */
.related-card {
    background: #000;
    border: 2px solid #222;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: #fff;
}

.related-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.related-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related-card-category {
    font-family: "Jersey 10", sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #cfcfcf;
    letter-spacing: 0.1em;
}

.related-card-title {
    font-family: "Jersey 10", sans-serif;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.2;
}

/* ==========================================================================
   6. Blog Index Page */

.blog-index-hero {
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
    border-bottom: 2px solid #222;
}

.blog-index-hero h1 {
    font-family: "Jersey 10", sans-serif;
    font-size: 3rem;
    color: #fff;
}

.blog-index-hero p {
    color: #aaa;
    font-size: 1rem;
    margin-top: 0.75rem;
}

.blog-grid-section {
    max-width: 1200px;
    margin: 3rem auto 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #000;
    border: 2px solid #222;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #fff;
}

.blog-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-bottom: 2px solid #222;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-card-category {
    font-family: "Jersey 10", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: #cfcfcf;
    letter-spacing: 0.1em;
}

.blog-card-title {
    font-family: "Jersey 10", sans-serif;
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.2;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    padding-top: 1rem;
}

/* ==========================================================================
   7. Responsive */

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-hero-img {
        padding: 0 1.25rem;
        margin-top: 2rem;
    }

    .blog-body {
        font-size: 1rem;
        padding: 0 1.25rem;
    }

    .blog-index-hero h1 {
        font-size: 2.2rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-section {
        padding: 2rem 1.25rem 0 1.25rem;
    }
}

/* ==========================================================================
   Append to bottom of styles-blog.css
   ========================================================================== */


/* Inline image with caption */
.blog-figure {
    margin: 2rem 0;
}

.blog-figure img {
    width: 100%;
    border-radius: 10px;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.blog-figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.75rem;
    line-height: 1.5;
}