/* Blog Post Page Styles */

.post-hero {
    min-height: 60vh;
    padding: 180px 40px 100px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.post-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 500;
    opacity: 0.9;
}

.post-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(50px, 8vw, 100px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.post-excerpt {
    font-size: 22px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
}

.post-content-section {
    padding: 100px 40px 150px;
    background: var(--white);
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.post-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Article Content Styling */
.article-content {
    font-size: 19px;
    line-height: 1.8;
    color: var(--black);
}

.article-content h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(40px, 6vw, 60px);
    line-height: 1.2;
    margin: 60px 0 30px;
    font-weight: 400;
}

.article-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.3;
    margin: 50px 0 25px;
    font-weight: 400;
}

.article-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    letter-spacing: -0.5px;
}

.article-content p {
    margin-bottom: 30px;
    color: var(--black);
}

.article-content strong {
    font-weight: 700;
    color: var(--black);
}

.article-content em {
    font-style: italic;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--black);
}

.article-content ul,
.article-content ol {
    margin: 30px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 30px;
}

.article-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.article-content blockquote {
    border-left: 6px solid var(--accent);
    padding: 30px 40px;
    margin: 40px 0;
    background: var(--light-gray);
    font-size: 22px;
    line-height: 1.6;
    font-style: italic;
}

.article-content code {
    background: var(--light-gray);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--accent);
}

.article-content pre {
    background: var(--black);
    color: var(--white);
    padding: 30px;
    margin: 40px 0;
    overflow-x: auto;
    border-radius: 0;
    border: 3px solid var(--black);
    position: relative;
}

.article-content pre code {
    background: transparent;
    color: var(--white);
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    display: block;
}

/* Language label for code blocks */
.article-content pre code[class*="language-"]::before {
    content: attr(class);
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    font-weight: 700;
}

.article-content pre code.language-html::before { content: 'HTML'; }
.article-content pre code.language-css::before { content: 'CSS'; }
.article-content pre code.language-javascript::before { content: 'JS'; }
.article-content pre code.language-js::before { content: 'JS'; }
.article-content pre code.language-php::before { content: 'PHP'; }
.article-content pre code.language-python::before { content: 'Python'; }
.article-content pre code.language-apache::before { content: 'Apache'; }

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    display: block;
}

.article-content hr {
    border: none;
    border-top: 3px solid var(--black);
    margin: 60px 0;
    width: 100px;
}

/* Post Navigation */
.post-nav {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid var(--black);
}

.post-nav-link {
    display: inline-block;
    padding: 20px 40px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: var(--accent);
    transform: translate(-4px, -4px);
}

/* Share Section */
.post-share {
    margin-top: 60px;
    padding: 50px;
    background: var(--yellow);
    text-align: center;
}

.post-share h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 25px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-button {
    padding: 15px 30px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    padding: 100px 40px;
    background: var(--black);
    color: var(--white);
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
}

.related-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.2;
    margin-bottom: 60px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--white);
    color: var(--black);
    padding: 40px;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.related-card:hover {
    background: var(--yellow);
    transform: translate(-4px, -4px);
}

.related-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.related-card-meta {
    font-size: 13px;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 100px 20px 60px;
    }

    .post-content-section,
    .related-posts {
        padding: 100px 20px;
    }

    .article-content {
        font-size: 17px;
    }

    .article-content h1 {
        margin: 40px 0 20px;
    }

    .article-content h2 {
        margin: 35px 0 18px;
    }

    .article-content blockquote {
        padding: 20px 25px;
        font-size: 19px;
    }

    .post-share {
        padding: 40px 30px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .post-nav-link:hover {
        transform: none;
    }

    .share-button:hover {
        transform: none;
    }

    .related-card {
        padding: 30px 20px;
    }

    .related-card:hover {
        transform: none;
    }

    .related-card-title {
        font-size: 22px;
    }
}
