/* Blog-specific styles */

/* Blog post card hover effects */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

/* Featured post badge */
.featured-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Blog post content typography */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #e5e7eb;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #f3f4f6;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h1 { font-size: 2.25rem; }
.blog-content h2 { font-size: 1.875rem; }
.blog-content h3 { font-size: 1.5rem; }
.blog-content h4 { font-size: 1.25rem; }
.blog-content h5 { font-size: 1.125rem; }
.blog-content h6 { font-size: 1rem; }

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

.blog-content a {
    color: #a78bfa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #c4b5fd;
}

.blog-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #d1d5db;
}

.blog-content pre {
    background-color: #1e1b4b;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content code {
    background-color: #1e1b4b;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
}

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

.blog-content ul li,
.blog-content ol li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Author bio section */
.author-bio {
    background-color: rgba(30, 27, 75, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 3rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    object-fit: cover;
}

/* Category pills */
.category-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background-color: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

/* Blog sidebar */
.blog-sidebar {
    position: sticky;
    top: 6rem;
}

.blog-sidebar-section {
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Blog pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination button {
    padding: 0.5rem 1rem;
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
}

.blog-pagination button:hover:not(:disabled) {
    background-color: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.blog-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination .page-number {
    padding: 0.5rem 0.75rem;
}

.blog-pagination .page-number.active {
    background-color: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Related posts section */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #374151;
}

.related-post-card {
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.related-post-card:hover {
    background-color: rgba(15, 22, 41, 0.7);
    border-color: #8b5cf6;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-button:hover {
    background-color: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

/* Table of contents */
.table-of-contents {
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    color: #f3f4f6;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: #c4b5fd;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(139, 92, 246, 0.2);
    z-index: 100;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    width: 0%;
    transition: width 0.2s ease;
}

/* Newsletter signup */
.newsletter-signup {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.newsletter-signup h3 {
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.newsletter-signup p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: rgba(15, 22, 41, 0.5);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #e5e7eb;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background-color: #8b5cf6;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background-color: #7c3aed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h1 { font-size: 1.875rem; }
    .blog-content h2 { font-size: 1.5rem; }
    .blog-content h3 { font-size: 1.25rem; }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}