/* ==========================================
   VOMNI — Blog Post / Article Page Styles
   Extends main style.css
   ========================================== */

body {
    background: #0e0e0e;
}

/* ============= POST HERO ============= */
.post-hero {
    padding: clamp(9rem, 16vw, 13rem) 0 clamp(3rem, 5vw, 4rem);
    background: #0e0e0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-bottom: 1.75rem;
    letter-spacing: 0.03em;
}

.post-breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: var(--white);
}

.post-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.2);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.post-cat {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    background: rgba(230, 80, 27, 0.1);
    border: 1px solid rgba(230, 80, 27, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-hero-meta time,
.post-hero-meta .read-time {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gray-400);
}

.post-hero-meta .meta-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.6rem;
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 820px;
}

.post-lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--gray-300);
    line-height: 1.75;
    max-width: 680px;
}

/* ============= POST BODY ============= */
.post-body {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
    background: #0e0e0e;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
}

/* ============= ARTICLE CONTENT ============= */
.post-article {
    min-width: 0;
}

.post-section {
    margin-bottom: 2.5rem;
}

.post-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.post-section h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.post-section p {
    font-size: 0.97rem;
    color: var(--gray-300);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.post-section ul,
.post-section ol {
    margin: 0 0 1rem 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-section li {
    font-size: 0.97rem;
    color: var(--gray-300);
    line-height: 1.75;
    padding-left: 1.4rem;
    position: relative;
}

.post-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.post-section a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 80, 27, 0.3);
    transition: border-color 0.2s;
}

.post-section a:hover {
    border-color: var(--accent);
}

/* Code blocks */
.post-section code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: var(--white);
}

/* ============= POST SIDEBAR ============= */
.post-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Related links */
.related-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s;
}

.related-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-link:first-of-type {
    padding-top: 0;
}

.related-link:hover .related-link-title {
    color: var(--accent);
}

.related-link-cat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.related-link-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.35;
    transition: color 0.2s;
}

/* CTA sidebar card */
.sidebar-cta {
    background: rgba(230, 80, 27, 0.06);
    border: 1px solid rgba(230, 80, 27, 0.18);
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 80, 27, 0.5), transparent);
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: #f5efe2;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.sidebar-cta-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.04);
}

/* Author card */
.author-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.author-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(230, 80, 27, 0.12);
    border: 1px solid rgba(230, 80, 27, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
}

.author-card-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    display: block;
}

.author-card-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray-400);
}

/* ============= BACK TO BLOG ============= */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.2s;
    text-transform: uppercase;
}

.post-back:hover {
    color: var(--white);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 260px;
    }
}

@media (max-width: 600px) {
    .post-sidebar {
        flex-direction: column;
    }

    .post-title {
        font-size: 1.9rem;
    }
}
