/* SINGLE POST WRAPPER */
.single-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
}

/* POST ARTICLE */
.post-article {
    background: var(--card);
}

/* POST INFO SECTION */
.post-info {
    margin-bottom: 3rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.meta-separator {
    color: #ddd;
}

.post-category {
    color: var(--accent);
    font-weight: 600;
}

.post-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
}

.post-featured-img {
    height: 50vh;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.post-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    overflow: hidden;
    display: block;
}

/* POST BODY (CONTENT) */
.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 3rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    color: var(--text);
}

.post-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: var(--radius);
    font-style: italic;
    color: var(--muted);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--accent-dark);
}

.post-body code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* POST TAGS SECTION */
.post-tags-section {
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    margin-bottom: 3rem;
    color: var(--muted);
}

.post-tags-section strong {
    color: var(--text);
    margin-right: 0.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: var(--text);
    text-decoration: none;
    border-radius: calc(var(--radius) * 1.25);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* POST NAVIGATION */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.post-nav a {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-nav a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 5rem 1.5rem 2rem;
    }

    .post-page-title {
        font-size: 2.2rem;
    }

    .post-body {
        font-size: 1.05rem;
    }

    .post-body h2 {
        font-size: 1.75rem;
    }

    .post-body h3 {
        font-size: 1.35rem;
    }

    .post-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .single-post-wrapper {
        padding: 4.5rem 1rem 1.5rem;
    }

    .post-page-title {
        font-size: 1.85rem;
    }

    .post-meta {
        font-size: 0.875rem;
    }

    .post-body {
        font-size: 1rem;
    }
}