/* ===== BLOG STYLES ===== */

/* Blog Post Header */
.blog-post-header {
    background: var(--bg-darker);
    padding: 8rem 0 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: var(--primary-color);
}

.post-breadcrumb span {
    color: var(--text-secondary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date,
.post-read-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
}

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

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

.author-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Blog Post Content */
.blog-post-content {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-main-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.lead-paragraph {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.post-main-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.post-main-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-main-content h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.post-main-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-main-content h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

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

.post-main-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.post-main-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(224, 31, 38, 0.05));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.pro-tip {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.pro-tip::before {
    content: "PRO TIP";
    position: absolute;
    top: -12px;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.stats-box {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h3 {
    color: #ffc107 !important;
}

/* Conclusion */
.conclusion {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-top: 3rem;
}

.conclusion-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.key-takeaways {
    margin-top: 2rem;
}

.key-takeaways h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-takeaways ul {
    list-style: none;
    padding-left: 0;
}

.key-takeaways li {
    background: rgba(255, 107, 53, 0.1);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-primary);
    position: relative;
    padding-left: 2.5rem;
}

.key-takeaways li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.post-cta h3 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 1rem !important;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

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

.sidebar-widget {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Quick Summary */
.summary-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.summary-point strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.summary-point p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Related Links */
.related-links {
    list-style: none;
    padding: 0;
}

.related-links li {
    margin-bottom: 0.75rem;
}

.related-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.related-links a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.related-links i {
    color: var(--primary-color);
    width: 20px;
}

/* Social Share */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: #666; }

.share-btn:hover {
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.related-posts h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    height: 200px;
    background: var(--bg-darker);
}

.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.placeholder-image i {
    font-size: 3rem;
}

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

.related-post-content .post-category {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
}

.related-post-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-post-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-main-content h2 {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .highlight-box,
    .pro-tip,
    .stats-box,
    .warning-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
    background: rgba(224, 31, 38, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(224, 31, 38, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-bio h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-bio h4::before {
    content: "👋";
    font-size: 1.5rem;
}

.author-bio p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Comparison Table Improvements */
.comparison-table table {
    font-size: 0.9rem;
    line-height: 1.5;
}

.comparison-table td,
.comparison-table th {
    vertical-align: top;
}

.comparison-table td:first-child {
    width: 30%;
    font-weight: 600;
}

.comparison-table td:last-child {
    width: 70%;
}