/* single.css - Default Post Page Styles */

.single-post-section {
    padding: 10rem 0;
    background-color: var(--base-beige);
}

.single-post-section .inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem;
}

.post-article {
    background-color: #fff;
    padding: 6rem;
    border-radius: 0.8rem;
    box-shadow: 0 1rem 3rem rgba(65, 39, 20, 0.05);
}

.post-article .article-meta {
    margin-bottom: 3.2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.post-article .post-cat {
    background-color: var(--base-gold);
    color: #fff;
    padding: 0.4rem 1.2rem;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 0.2rem;
}

.post-article .post-date {
    font-size: 1.6rem;
    color: var(--base-brown);
    font-weight: 500;
}

.post-article h1 {
    font-size: 3.2rem;
    color: var(--base-brown);
    line-height: 1.5;
    font-weight: 800;
    margin-bottom: 4rem;
}

.post-article .featured-image {
    margin: 0 -6rem 4rem;
}

.post-article .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.8rem;
    line-height: 2.2;
    color: var(--base-brown);
}

.post-content p {
    margin-bottom: 2.4rem;
}

.post-content h2 {
    font-size: 2.4rem;
    margin: 6rem 0 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--base-gold);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 3rem 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(65, 39, 20, 0.1);
}

.post-navigation .prev,
.post-navigation .next {
    display: flex;
    max-width: 48%;
}

.post-navigation .prev:not(:has(a)),
.post-navigation .next:not(:has(a)) {
    visibility: hidden;
}

.post-navigation a {
    text-decoration: none;
    color: var(--base-brown);
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--base-gold);
}

.post-navigation .prev a::before {
    content: "<";
    margin-right: 1rem;
}

.post-navigation .next a::after {
    content: ">";
    margin-left: 1rem;
}

.back-to-archive {
    text-align: center;
    margin-top: 6rem;
}

.btn-back-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 6rem;
    border: 1px solid var(--base-brown);
    color: var(--base-brown);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-back-post:hover {
    background-color: var(--base-brown);
    color: #fff;
}

/* Responsive */
@media (max-width: 800px) {
    .post-article {
        padding: 4rem 3rem;
    }
    
    .post-article .featured-image {
        margin: 0 -3rem 3rem;
    }

    .post-article h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 760px) {
    .single-post-section {
        padding: 6rem 0;
    }
    
    .post-article {
        padding: 3rem 2rem;
    }
    
    .post-article .featured-image {
        margin: 0 -2rem 2.4rem;
    }

    .post-article h1 {
        font-size: 2.2rem;
    }
    
    .post-content {
        font-size: 1.6rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .post-navigation .prev,
    .post-navigation .next {
        max-width: 100%;
        justify-content: center;
    }
}
