/* Blog Components and Styles */

/* Blog Listing */
.blog-listing {
    padding: 0;
    background: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.blog-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

.blog-card-content {
    padding: var(--spacing-lg);
}

.blog-card h2 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.5rem;
    color: var(--color-heading);
}

.blog-card h2 a {
    text-decoration: none;
    color: var(--color-heading);
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-meta {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    font-size: 0.875rem;
}

.blog-category {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
}

.blog-read-time {
    color: var(--color-muted);
}

.blog-status {
    color: var(--color-error);
    font-weight: 500;
}

.blog-card.coming-soon h2 {
    color: var(--color-muted);
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 2.5rem auto;
}

.blog-post h1 {
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.blog-post h2 {
    font-size: 1.8rem;
    color: var(--color-heading);
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.blog-post h3 {
    font-size: 1.4rem;
    color: var(--color-heading);
    margin: var(--spacing-md) 0 var(--spacing-xs) 0;
}

.blog-post p {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.blog-post blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--color-dark);
}

.blog-post ul, .blog-post ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.blog-post li {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.blog-post strong {
    color: var(--color-heading);
    font-weight: 600;
}

.blog-post em {
    color: var(--color-dark);
}

.blog-post a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.blog-post a:hover {
    border-bottom-color: var(--color-primary);
}

.blog-post pre {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.blog-post code {
    background: #f1f5f9;
    color: var(--color-error);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.blog-post pre.centered-diagram {
    text-align: center;
}

.blog-post pre code {
    background: none;
    color: var(--color-dark);
    padding: 0;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-md);
    display: block;
}

.references-section {
    font-size: 0.8rem;
    color: var(--color-text);
}

.references-section p {
    margin-bottom: var(--spacing-xs);
}

.references-section ul {
    margin-top: var(--spacing-xs);
    padding-left: var(--spacing-md);
}

.references-section li {
    margin-bottom: 0.25rem;
}

