 .single-post-article {
    --post-radius: 1.5rem;
    --post-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --post-bg: #ffffff;
    --post-title-color: #1a202c;
    --post-text-color: #2d3748;
    --post-meta-color: #4a5568;
    --post-link-color: var(--primary);
    --post-border: 1px solid rgba(0, 0, 0, 0.05);
    --post-padding: clamp(1.5rem, 5vw, 3rem);
    
    background-color: var(--post-bg);
    border-radius: var(--post-radius);
    border: var(--post-border);
    box-shadow: var(--post-shadow);
    margin-bottom: 4rem;
    overflow: hidden;
}

.single.single-post #primary {
    margin-top: 8rem;
}

.date-text {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: #6b7280;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 4px;
    letter-spacing: normal;
    text-wrap: pretty;
}

.date-text:first-child {
     margin-top: 0;
}

.date-text.updated {
    color: #3b5563;
    font-style: italic;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
}

/* Post Header */
.single-post-header {
    position: relative;
}

/* Featured Image */
.single-post-thumbnail {
    position: relative;
    margin: 0;
    height: clamp(250px, 40vh, 500px);
    overflow: hidden;
}

.single-post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Meta Container */
.single-post-meta-container {
    position: relative;
    padding: var(--post-padding) var(--post-padding) 0;
    margin-top: -100px;
}

.single-post-meta-wrapper {
    background-color: var(--post-bg);
    border-radius: var(--post-radius) var(--post-radius) 0 0;
    padding: 2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.07);
}

/* Post Meta */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.single-post-author-date {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-post-meta-text {
    display: flex;
    flex-direction: column;
}

.single-post-meta-text .author.vcard a {
    color: var(--post-title-color);
    font-weight: 700;
    text-decoration: none;
}

.single-post-meta-text .posted-on a {
    color: var(--post-meta-color);
    font-size: 0.875rem;
    text-decoration: none;
}

/* Reading Time */
.single-post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--post-meta-color);
}

.reading-time-icon {
    display: flex;
    align-items: center;
}

/* Post Title */
.single-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: var(--post-title-color);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Post Tags */
.single-post-tags {
    margin-bottom: 2rem;
}

.single-post-tags .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.single-post-tags .tags-links a {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease;
}

.single-post-tags .tags-links a:hover {
    opacity: 0.9;
}

/* Post Content */
.single-post-content {
    padding: 0 var(--post-padding) var(--post-padding);
    color: var(--post-text-color);
    line-height: 1.8;
    font-size: 1.125rem;
}

.single-post-content p {
    margin-bottom: 1.75rem;
}

.single-post-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--post-title-color);
    font-weight: 700;
}

.single-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--post-title-color);
    font-weight: 700;
}

.single-post-content h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--post-title-color);
    font-weight: 700;
}

.single-post-content a {
    color: var(--post-link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.single-post-content a:hover {
    color: var(--secondary, #000);
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.75rem;
}

.single-post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--post-link-color);
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--post-title-color);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem auto;
    display: block;
}

.single-post-content figure {
    margin: 2.5rem 0;
}

.single-post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--post-meta-color);
    margin-top: 0.75rem;
}

/* Post Footer */
.single-post-footer {
    padding: 0 var(--post-padding) var(--post-padding);
}

/* Related Posts Section */
.single-post-related {
    margin: 4rem 0;
}

.related-posts-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--post-title-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.related-posts-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}




@media (min-width: 768px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .single-post-article {
        --post-bg: #1a202c;
        --post-title-color: #f7fafc;
        --post-text-color: #e2e8f0;
        --post-meta-color: #a0aec0;
        --post-border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .single-post-reading-time {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .single-post-content blockquote {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .post-navigation a {
        background-color: #2d3748;
    }
}