/* Blog-specific styles for ResearchBox.ai blog */

/* Blog index page - articles grid */
.articles-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #0066cc;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.category-separator {
    color: #ccc;
}

.category {
    color: #0066cc;
    text-decoration: none;
}

.category:hover {
    text-decoration: underline;
}

.article-summary {
    color: #555;
    line-height: 1.6;
}

.article-spacer {
    height: 200px;
}

/* Article page styles */
.page-article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.page-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #333;
    line-height: 1.2;
}

.page-article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666;
}

.page-article-date {
    font-size: 1rem;
}

.page-article-category a {
    color: #0066cc;
    text-decoration: none;
}

.page-article-category a:hover {
    text-decoration: underline;
}

.page-article-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-article-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.page-article-tag:hover {
    background: #e0e0e0;
    color: #333;
}

.page-article-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #6b7280;
}

.page-article-content h1,
.page-article-content h2,
.page-article-content h3,
.page-article-content h4,
.page-article-content h5,
.page-article-content h6 {
    margin: 2rem 0 1rem 0;
    color: #333;
    font-weight: 600;
}

.page-article-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #24292e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.25rem;
    text-align: left;
}

.page-article-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    margin: 0.5rem 0 0.25rem 0;
}

.page-article-content h3 {
    font-size: 1.4rem;
}

.page-article-content p {
    margin: 1rem 0;
}

.page-article-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.page-article-content pre {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.1rem;
    overflow-x: auto;
    margin: 4px;
}

.page-article-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.page-article-content blockquote {
    border-left: 4px solid #0066cc;
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    background: #f9f9f9;
    font-style: italic;
}

.page-article-content ul,
.page-article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    font-size: 1.1rem;
    color: #6b7280;
}

.page-article-content li {
    margin: 0.5rem 0;
}

.page-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.page-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.page-article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.page-article-nav-prev,
.page-article-nav-next {
    color: #0066cc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex: 1;
    text-align: center;
}

.page-article-nav-prev:hover,
.page-article-nav-next:hover {
    background: #f0f0f0;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination .prev,
.pagination .next {
    color: #0066cc;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #f0f0f0;
}

.quoted-chat {
    background: #f6f8fa;
    padding: 15px;
    border-radius: 6px;
    overflow: auto;
    border: 1px solid #e1e4e8;
    white-space: pre-wrap;       /* CSS3 */
    word-wrap: break-word;       /* Internet Explorer */
    word-break: break-word;      /* For long words */
    line-height: 1.5;
    max-width: 100%;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.step-container {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0366d6;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 20px;
    margin-top: 5px;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555
}

.step-description {
    color: #586069;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-article-title {
        font-size: 2rem;
    }
    
    .page-article-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .page-article-tags {
        justify-content: center;
    }
    
    .page-article-navigation {
        flex-direction: column;
    }
    
    .article-card {
        padding: 1.5rem;
    }
}