/* Blog Detail Page Styles */

/* Article Container */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.post-meta {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.post-meta a {
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: #ec3a70;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: #ec3a70;
    color: white;
    transform: translateY(-2px);
}

/* Featured Image */
.featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Post Content */
.post-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #2d3748;
    font-weight: 400;
}

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

/* Lead/Excerpt */
.post-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Headings in content */
.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

.post-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

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

/* Images in content */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Videos/iframes */
.post-content iframe,
.post-content .note-video-clip {
    max-width: 100%;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid #ec3a70;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4a5568;
}

/* Code blocks */
.post-content pre {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    background: #f7fafc;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #e53e3e;
}

/* Share Section */
.share-section {
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.share-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-facebook:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-twitter:hover {
    background: #0c85d0;
    transform: translateY(-2px);
}

.share-btn-pinterest {
    background: #e60023;
    color: white;
}

.share-btn-pinterest:hover {
    background: #c70018;
    transform: translateY(-2px);
}

.share-btn-email {
    background: #6c757d;
    color: white;
}

.share-btn-email:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: #ec3a70;
}

.related-post-excerpt {
    font-size: 0.8125rem;
    color: #718096;
    line-height: 1.4;
}

/* Author Bio */
.author-bio {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-bio-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.author-bio-text {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar Styles */
.blog-sidebar {
    padding-left: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Table of Contents */
.toc-nav {
    max-height: 400px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav > ul {
    padding-left: 0;
}

.toc-nav ul ul {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.toc-nav a {
    display: block;
    padding: 0.375rem 0;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.toc-nav a:hover {
    color: #ec3a70;
    border-left-color: #ec3a70;
}

.toc-nav a.active {
    color: #ec3a70;
    font-weight: 600;
    border-left-color: #ec3a70;
    background: rgba(236, 58, 112, 0.05);
}

/* CTA Card Detail */
.cta-card-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-card-detail h3 {
    color: white;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card-detail p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-size: 0.9375rem;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.cta-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-features i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.cta-button-detail {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
    font-size: 0.9375rem;
}

.cta-button-detail:hover {
    transform: scale(1.05);
    color: #764ba2;
}

.cta-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Popular Posts */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.popular-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-item a {
    display: block;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.popular-post-item a:hover {
    color: #ec3a70;
}

.popular-post-item .post-date {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Categories List */
.category-list-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-item-detail:hover {
    background: #e2e8f0;
    color: #ec3a70;
    transform: translateX(3px);
}

.category-item-detail .category-count {
    background: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-cloud-item:hover {
    background: #ec3a70;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .blog-sidebar.sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-excerpt {
        font-size: 1.125rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .post-content iframe,
    .post-content .note-video-clip {
        height: 250px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}