/* Professional Blog Post Single Layout */

.blog-post-single {
    max-width: 100%;
    margin: 0 auto;
    background: white;
}

/* Hero Section with Featured Image */
.blog-post-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.blog-post-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 3rem 0;
}

.blog-post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
}

.blog-post-hero .blog-post-title {
    font-family: 'cinzel', serif;
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.blog-post-meta-hero {
    font-size: 1rem;
    opacity: 0.95;
}

.blog-post-meta-hero .blog-post-separator {
    margin: 0 0.5rem;
}

/* Standard Header (no featured image) */
.blog-post-header {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
}

.blog-post-header .blog-post-title {
    font-family: 'cinzel', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--mainColor);
    margin: 0;
}

/* Post Meta Container */
.blog-post-meta-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-post-author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #f3f4f6;
}

.blog-post-author-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.blog-post-meta-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-post-date {
    color: #babbbd;
}

.blog-post-separator {
    margin: 0 0.5rem;
    color: #9ca3af;
}

.blog-post-reading-time {
    color: #babbbd;
}

/* Share Buttons */
.blog-post-share {
    display: flex;
    gap: 0.75rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-button[data-share="twitter"]:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
    background: #f0f9ff;
}

.share-button[data-share="facebook"]:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: #f0f6ff;
}

.share-button[data-share="linkedin"]:hover {
    border-color: #0A66C2;
    color: #0A66C2;
    background: #f0f7ff;
}

/* Taxonomy (Categories & Tags) */
.blog-post-taxonomy {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
}

.blog-post-categories,
.blog-post-tags {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-tags {
    margin-bottom: 0;
}

.taxonomy-label {
    font-weight: 600;
    color: #4b5563;
    margin-right: 0.5rem;
}

.category-link,
.tag-link {
    padding: 0.375rem 0.875rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.category-link {
    color: var(--mainColor);
}

.category-link:hover {
    background: var(--mainColor);
    color: white;
    border-color: var(--mainColor);
}

.tag-link {
    color: #6b7280;
}

.tag-link:hover {
    background: #4b5563;
    color: white;
    border-color: #4b5563;
}

/* Post Content */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    font-family: 'cinzel', serif;
    color: var(--mainColor);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

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

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

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

.blog-post-content blockquote {
    border-left: 4px solid var(--mainColor);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.blog-post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-post-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

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

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

.blog-post-content a {
    color: var(--mainColor);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-post-content a:hover {
    color: var(--navBgColor);
}

/* Author Bio Box */
.blog-post-author-bio {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
    border-radius: 16px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-bio-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-bio-content {
    flex: 1;
}

.author-bio-title {
    font-family: 'cinzel', serif;
    color: var(--mainColor);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-bio-text {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.blog-post-navigation {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-nav-link {
    padding: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--mainColor);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.post-nav-title {
    font-family: 'cinzel', serif;
    color: var(--mainColor);
    font-size: 1.125rem;
    line-height: 1.3;
}

/* Back to Blog Button Enhancement */
#back-to-blogs {
    position: fixed;
    top: 100px;
    left: 2rem;
    z-index: 100;
    background: var(--mainColor);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#back-to-blogs:hover {
    background: var(--navBgColor);
    transform: translateX(4px);
}

#back-to-blogs a {
    color: white;
    text-decoration: none;
    font-family: 'cinzel', serif;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .blog-post-hero .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-header .blog-post-title {
        font-size: 1.875rem;
    }
    
    .blog-post-meta-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-post-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    .blog-post-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .blog-post-author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .blog-post-navigation {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    #back-to-blogs {
        position: static;
        display: inline-block;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post-hero .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-hero-content {
        padding: 0 1rem;
    }
    
    .blog-post-header {
        padding: 0 1rem;
    }
    
    .blog-post-meta-container {
        padding: 0 1rem;
    }
}