/* Blog Styles */

.blog-main {
    min-height: calc(100vh - 200px);
}

.blog-header {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(93, 95, 239, 0.05), rgba(124, 58, 237, 0.05));
    border-bottom: 1px solid rgba(93, 95, 239, 0.1);
}

.blog-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5d5fef, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-language-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.blog-language-selector label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-language-selector select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    color: var(--text);
    font-size: 0.875rem;
}

/* Blog Container */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

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

.blog-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(93, 95, 239, 0.15);
    border-color: var(--primary);
}

.blog-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(93, 95, 239, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

.blog-excerpt {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-author {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-read-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more {
    margin-left: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.read-more:hover {
    transform: translateX(4px);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-list a:hover {
    background: rgba(93, 95, 239, 0.1);
    color: var(--primary);
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 0.75rem;
}

.recent-posts a {
    color: var(--text);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease;
}

.recent-posts a:hover {
    color: var(--primary);
}

/* Blog Post Page Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blog-post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

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

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

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

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-post-content pre {
    background: var(--background-dark, #f5f5f5);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content code {
    background: rgba(93, 95, 239, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, rgba(93, 95, 239, 0.05), rgba(124, 58, 237, 0.05));
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.image-placeholder svg {
    color: var(--primary);
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: var(--text-light);
    margin: 0;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(93, 95, 239, 0.1);
    border-color: var(--primary);
}

.callout-tip {
    background: rgba(72, 187, 120, 0.1);
    border-color: #48bb78;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

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

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

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-container {
        padding: 2rem 1rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-container {
        padding: 2rem 1rem;
    }
}

