/* Blog styles for malikgore.com — layered on top of styles.css */

.blog-page {
    background-color: #0a0d12;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

.blog-page main.blog-main {
    display: block;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 110px 20px 60px;
}

/* ---------- index / hero ---------- */
.blog-hero {
    text-align: center;
    padding: 30px 0 50px;
}
.blog-hero h1 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 14px;
}
.blog-hero h1 .accent { color: #00bcd4; }
.blog-hero p {
    color: #cfd6e0;
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- post cards ---------- */
.post-list {
    display: grid;
    gap: 24px;
}
.post-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,188,212,0.55);
    background: rgba(0,188,212,0.06);
}
.post-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.post-card h2 {
    font-size: 22px;
    color: #fff;
    margin: 4px 0 8px;
    line-height: 1.3;
}
.post-card .post-excerpt {
    color: #b9c2cf;
    font-size: 15px;
    line-height: 1.55;
}
.post-date {
    color: #00bcd4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- single post ---------- */
.blog-post h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 10px 0 26px;
}
.post-figure {
    margin: 26px 0;
}
.post-figure img {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.post-figure figcaption {
    text-align: center;
    color: #8e99a8;
    font-size: 13px;
    margin-top: 10px;
    font-style: italic;
}
.post-body p {
    color: #d7dde6;
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 20px;
}
.post-body h2 {
    color: #fff;
    font-size: 25px;
    margin: 36px 0 14px;
    letter-spacing: -0.3px;
}
.post-body a {
    color: #00bcd4;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-body a:hover { color: #4dd8e8; }
.post-tags {
    margin-top: 34px;
}
.post-tags .tag {
    display: inline-block;
    background: rgba(0,188,212,0.12);
    color: #7fe3f0;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    margin: 0 8px 8px 0;
}
.post-back { margin-top: 28px; }
.post-back a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 700;
}

/* ---------- footer ---------- */
.blog-footer {
    text-align: center;
    color: #8e99a8;
    font-size: 13px;
    padding: 26px 0 36px;
}
.blog-footer a { color: #00bcd4; text-decoration: none; }

@media (max-width: 640px) {
    .blog-hero h1 { font-size: 34px; }
    .blog-post h1 { font-size: 28px; }
    .post-card { flex-direction: column; align-items: flex-start; }
    .post-card img { width: 100%; height: 180px; }
}
