.post-section {
    padding: 2rem 1rem 6rem; /* Increased bottom padding */
    min-height: calc(100vh - 60px); /* Adjust height to account for navbar */
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative; /* Add this */
    z-index: 1; /* Add this */
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: inline;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-color);
}

.breadcrumb-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover, .breadcrumb-link:focus {
    text-decoration: underline;
    outline: none;
}

.post-content {
    color: var(--light-text);
}

.post-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.post-content a:hover, .post-content a:focus {
    border-bottom-color: var(--accent-color);
    outline: none;
}

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content pre {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.retry-btn, .share-btn {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover, .retry-btn:focus,
.share-btn:hover, .share-btn:focus {
    background-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 0.5rem;
}

.related-posts a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.related-posts a:hover, .related-posts a:focus {
    text-decoration: underline;
    outline: none;
}

@media (max-width: 768px) {
    .post-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .post-section {
        padding: 1rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .post-section, .breadcrumb-link, .post-content a,
    .retry-btn, .share-btn {
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    .post-section {
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }

    .post-content img {
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    }
}