/* Blog Post Specific Styles */

/* Post Header */
.post-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #666;
}

.post-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.post-excerpt {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 800px;
}

.post-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.author-title {
    color: #666;
    font-size: 14px;
}

.post-share {
    display: flex;
    gap: 12px;
}

.share-btn {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #666;
}

.share-btn:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 60px;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Content */
.article-content {
    max-width: none;
}

.lead {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #1a1a1a;
    line-height: 1.2;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #1a1a1a;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #333;
}

.article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Code Blocks */
.code-block {
    margin: 32px 0;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background: #2a2a2a;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-title {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #764ba2;
}

.code-block pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e6e6e6;
}

/* Info Boxes */
.info-box, .warning-box, .checklist-box, .cta-box {
    margin: 32px 0;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid;
}

.info-box {
    background: #f0f9ff;
    border-left-color: #3b82f6;
}

.info-box h4 {
    color: #1e40af;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.warning-box {
    background: #fef3cd;
    border-left-color: #f59e0b;
}

.warning-box h4 {
    color: #92400e;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.checklist-box {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.checklist-box h4 {
    color: #065f46;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-left: none;
}

.cta-box h3 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 24px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-box .btn-primary {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.cta-box .btn-primary:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

/* Table of Contents */
.toc {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.toc a:hover {
    color: #667eea;
}

/* Related Posts */
.related-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    margin-bottom: 16px;
}

.related-post:hover {
    transform: translateX(4px);
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.related-date {
    font-size: 12px;
    color: #666;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    background: #e5e5e5;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-cloud .tag:hover {
    background: #667eea;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-section {
        display: inline-block;
        margin-right: 24px;
        margin-bottom: 24px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 36px;
    }
    
    .post-excerpt {
        font-size: 18px;
    }
    
    .post-author {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .post-featured-image img {
        height: 250px;
    }
    
    .article-content h2 {
        font-size: 28px;
    }
    
    .article-content h3 {
        font-size: 22px;
    }
    
    .code-block {
        margin: 24px -20px;
        border-radius: 0;
    }
    
    .sidebar-section {
        display: block;
        margin-right: 0;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 120px 0 40px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-excerpt {
        font-size: 16px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .lead {
        font-size: 16px;
        padding: 20px;
    }
    
    .info-box, .warning-box, .checklist-box, .cta-box {
        margin: 24px -20px;
        border-radius: 0;
    }
}
