/* Single Post Layout - Clean and Simple */
.post-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-single {
    background: var(--studio-bg-primary);
    margin-bottom: 3rem;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
    padding: 0 1rem; /* Add side padding to prevent edge touching */
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--studio-text-secondary);
}

.breadcrumbs a {
    color: var(--studio-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--studio-link-hover);
    text-decoration: underline;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--studio-gray-900);
    padding-left: 0; /* Ensure no extra left padding on title */
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--studio-border-light);
    font-size: 0.9rem;
    color: var(--studio-text-secondary);
}

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

.tag {
    background: var(--studio-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tag:hover {
    background: var(--studio-blue-dark);
    color: white;
}

.reading-time {
    background: var(--studio-bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Post Cover */
.post-cover {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--studio-text-primary);
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    color: var(--studio-gray-900);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--studio-border-light);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

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

.post-content code {
    background: #dbeafe;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.post-content pre {
    background: #eff6ff;
    color: #1e40af;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 2px solid #bfdbfe;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #1e40af;
    border: none;
}

.post-content blockquote {
    border-left: 4px solid var(--studio-blue);
    background: var(--studio-bg-secondary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

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

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

/* Post Footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--studio-border-light);
}

.post-tags-footer h4 {
    margin-bottom: 1rem;
    color: var(--studio-gray-900);
}

.tag-link {
    display: inline-block;
    background: var(--studio-bg-secondary);
    color: var(--studio-text-primary);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--studio-blue);
    color: white;
}

/* Related Posts Section */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--studio-border-light);
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--studio-gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: var(--studio-bg-primary);
    border: 1px solid var(--studio-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    box-shadow: var(--studio-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--studio-border-medium);
}

.related-post-card h4 {
    margin-bottom: 0.5rem;
}

.related-post-card h4 a {
    color: var(--studio-gray-900);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-card h4 a:hover {
    color: var(--studio-blue);
}

.related-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--studio-text-secondary);
}

.related-excerpt {
    color: var(--studio-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more-link {
    color: var(--studio-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.read-more-link:hover {
    color: var(--studio-blue-dark);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .post-single-container {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        font-size: 1rem;
    }
}
