/* Individual Post Styles */

.post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #fff;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.post-meta i {
    color: #ffd700;
    margin-right: 0.3em;
    font-size: 1em;
    vertical-align: middle;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 800px;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

.post-content {
    padding: 60px 0;
    background: white;
}

.post-image {
    margin-bottom: 3rem;
    text-align: center;
}

.post-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-image figcaption {
    margin-top: 1rem;
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.post-body .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.4;
}

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

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

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

.post-body blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #2563eb;
    position: absolute;
    top: -10px;
    left: 1rem;
    font-family: serif;
}

.post-body code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #dc2626;
    font-size: 0.9rem;
}

.post-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Call to Action */
/* ...existing code... */

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #fff;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.post-meta i {
    color: #ffd700;
    margin-right: 0.3em;
    font-size: 1em;
    vertical-align: middle;
    margin: 3rem 0;
}

.post-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

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

/* Tags */

.tag {
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(99,102,241,0.12);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(90deg, #818cf8 0%, #38bdf8 100%);
    color: #ffd700;
    transform: translateY(-2px) scale(1.05);
}

/* Share Buttons */
.share-buttons {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.share-buttons h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.share-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

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

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

/* Related Posts */
.related-posts {
    max-width: 800px;
    margin: 4rem auto 0;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #2563eb;
}

.related-meta {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .post-header {
        padding: 100px 0 40px;
    }
    
    .post-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .post-subtitle {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .post-content {
        padding: 40px 0;
    }
    
    .post-article {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .post-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .post-body h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .post-body h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .post-body p {
        margin-bottom: 1rem;
    }
    
    .share-links {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-tags {
        margin-bottom: 2rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        margin: 0.2rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-btn {
        margin: 0.2rem 0;
        padding: 0.6rem 1rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .bio-avatar {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .bio-content h3 {
        font-size: 1.5rem;
    }
    
    .bio-content p {
        font-size: 1rem;
    }
    
    .bio-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .bio-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    pre {
        overflow-x: auto;
        font-size: 0.85rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .info-box,
    .result-box,
    .key-insights,
    .visualization-section,
    .clinical-implications {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .related-posts-cta {
        text-align: center;
        padding: 2rem;
        margin: 3rem 0;
    }
    
    .related-posts-cta h3 {
        font-size: 1.5rem;
    }
    
    .related-posts-cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .post-header {
        padding-top: 70px;
        padding-bottom: 20px;
    }
    
    .post-title {
        font-size: 2rem;
        line-height: 1.2;
        word-break: break-word;
        margin-bottom: 1rem;
    }
    
    .post-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        max-width: 100%;
        word-break: break-word;
    }
    
    .author-info h3 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.95rem;
    }
    
    .post-content, .blog-post-layout, .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    p, li, td, th {
        font-size: 0.98rem;
        word-break: break-word;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    pre, code, pre code {
        font-size: 0.92rem !important;
        word-break: break-word;
        white-space: pre-wrap;
        overflow-x: auto;
        max-width: 100vw;
    }
    
    .table-of-contents {
        font-size: 0.95rem;
        padding: 0.5rem 0.2rem;
        margin-bottom: 1rem;
        word-break: break-word;
    }
    
    .result-box, .info-box, .visualization-section, .resource-card {
        padding: 1rem;
        font-size: 0.95rem;
        word-break: break-word;
    }
    
    .post-tags {
        flex-wrap: wrap;
        gap: 0.5rem 0.4rem;
        margin: 0.7rem 0 1.2rem 0;
        padding-left: 0;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .tag {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
        margin: 0.2rem 0.2rem;
        min-width: 90px;
        text-align: center;
        border-radius: 18px;
        display: inline-block;
    }
}

/* Author Bio Section */
.author-bio {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid #f1f5f9;
}

.bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.bio-content h3 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.bio-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bio-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bio-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5b6bc8 0%, #6c4298 100%);
}

.bio-links a i {
    font-size: 1rem;
}

/* Related Posts CTA Section */
.related-posts-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.related-posts-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.related-posts-cta h3 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-posts-cta p {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5b6bc8 0%, #6c4298 100%);
}

.cta-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

/* Additional styles for new blog post elements */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-box h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-box p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-box ul li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.result-box h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.result-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.result-box th,
.result-box td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.result-box th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.result-box tbody tr:hover {
    background: #f9fafb;
}

.key-insights {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.key-insights h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.key-insights ul li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.clinical-implications {
    background: #fef3f2;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.clinical-implications h4 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.clinical-implications p {
    color: #374151;
    margin-bottom: 1rem;
}

.clinical-implications ul li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

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

.resource-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.resource-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.resource-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.resource-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #2563eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.resource-card a:hover {
    background: #2563eb;
    color: white;
}

.visualization-section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.visualization-section h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.visualization-section img.full-width-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 1rem 0;
}

.visualization-section p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}
