/* ============================================
   BLOG STYLES - Combined
   Includes both index and post page styles
   ============================================ */

/* ============================================
   BLOG INDEX PAGE STYLES
   ============================================ */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.125rem;
    color: #5f6368;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog post cards */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border: 2px solid #e0e4e8;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    border-color: #4f5aed;
    box-shadow: 0 8px 24px rgba(79, 90, 237, 0.15);
    transform: translateY(-2px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #5f6368;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-readtime {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #5f6368;
    border-radius: 50%;
}

.blog-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-description {
    font-size: 1.0625rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.blog-tag {
    background: #f0f2ff;
    color: #4f5aed;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fafbfc;
    border: 2px dashed #e0e4e8;
    border-radius: 16px;
}

.blog-empty h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.blog-empty p {
    font-size: 1.0625rem;
    color: #5f6368;
    margin-bottom: 1.5rem;
}

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-post-header {
    margin-bottom: 2.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: #5f6368;
}

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

.blog-post-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-description {
    font-size: 1.25rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.blog-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.blog-post-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

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

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

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

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

.blog-post-content code {
    background: #f0f2ff;
    color: #4f5aed;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: 'Courier New', monospace;
}

/* Code blocks */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    border: 1px solid #333;
}

.code-block pre {
    margin: 0;
    color: #d4d4d4;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #444;
}

.code-block-title {
    color: #7aa2f7;
    font-weight: 600;
    font-size: 0.875rem;
}

.code-comment {
    color: #6a9955;
}

.code-keyword {
    color: #c586c0;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

/* Callouts and boxes */
.tool-callout {
    background: linear-gradient(135deg, #4f5aed 0%, #667eea 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    text-align: center;
}

.tool-callout h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.tool-callout p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.tool-callout-btn {
    display: inline-block;
    background: white;
    color: #4f5aed;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tool-callout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #4f5aed;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.success-box {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.success-box p:last-child {
    margin-bottom: 0;
}

/* Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 2px solid #e0e4e8;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e4e8;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e4e8;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

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

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.related-post-card {
    background: white;
    border: 2px solid #e0e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    border-color: #4f5aed;
    transform: translateY(-2px);
}

.related-post-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.related-post-card p {
    font-size: 0.9375rem;
    color: #5f6368;
    margin: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    /* Blog index responsive */
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .blog-card h2 {
        font-size: 1.5rem;
    }

    .blog-card-description {
        font-size: 1rem;
    }

    /* Blog post responsive */
    .blog-post-title {
        font-size: 2rem;
    }

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

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

    .code-block {
        font-size: 0.8125rem;
        padding: 1rem;
    }
}






/* Related Tools Section */
.related-tools-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 0px solid #4f5aed;
}

.related-tools-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.related-tools-header {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.related-tools-subheader {
    text-align: center;
    color: #5f6368;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Trending Tools Bar */
.trending-tools-bar {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.trending-label {
    font-weight: 700;
    color: #0a0a0a;
    font-size: 0.95rem;
}

.trending-link {
    color: #4f5aed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.trending-link:hover {
    color: #3d47cc;
    text-decoration: underline;
}

.separator {
    color: #e0e4e8;
    font-weight: 700;
}

/* Related Tools Grid */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.related-tool-card {
    background: white;
    border: 2px solid #e8eaed;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.related-tool-card:hover {
    border-color: #4f5aed;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 90, 237, 0.15);
}

.tool-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.related-tool-card h3 {
    font-size: 1.25rem;
    color: #0a0a0a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.related-tool-card p {
    color: #5f6368;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Browse All CTA */
.browse-all-cta {
    text-align: center;
}

.browse-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f5aed 0%, #3d47cc 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(79, 90, 237, 0.3);
}

.browse-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(79, 90, 237, 0.4);
}

.btn-icon {
    font-size: 1.25rem;
}

.btn-arrow {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .related-tools-section {
        padding: 3rem 0;
    }
    
    .related-tools-section .container {
        padding: 0 24px;
    }
    
    .related-tools-header {
        font-size: 1.75rem;
    }
    
    .related-tools-subheader {
        font-size: 1rem;
    }
    
    .trending-tools-bar {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .trending-label, .trending-link {
        font-size: 0.875rem;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .browse-all-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .trending-tools-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .separator {
        display: none;
    }
}

