/* Blog Specific Styles - Using Main Design System Tokens */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: var(--white, #ffffff);
    padding: 30px;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid transparent;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    border-left-color: var(--primary-color, #2C63FF);
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted, #666666);
    margin-bottom: 12px;
    align-items: center;
}

.post-category {
    background: rgba(44, 99, 255, 0.1);
    color: var(--primary-color, #2C63FF);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark, #1A1A1A);
}

.post-card h3 a {
    text-decoration: none;
    color: inherit;
}

.post-card h3 a:hover {
    color: var(--primary-color, #2C63FF);
}

.post-excerpt {
    color: var(--text-muted, #666666);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color, #2C63FF);
    text-decoration: none;
    display: inline-block;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white, #fff);
    padding: 40px;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.05));
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted, #666666);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-color, #2C63FF);
    text-decoration: none;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark, #1A1A1A);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-author {
    font-weight: 500;
    color: var(--text-dark, #1A1A1A);
    margin-top: 10px;
}

.post-content {
    margin-top: 40px;
    line-height: 1.8;
    color: var(--text-dark, #1A1A1A);
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    margin: 40px 0 20px;
    color: var(--text-dark, #1A1A1A);
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color, #E0E0E0);
}

.share-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.share-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--neutral-light, #f1f5f9);
    color: var(--text-dark, #1A1A1A);
    transition: background 0.2s;
}

.share-btn:hover {
    background: var(--border-color, #e2e8f0);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
    background: var(--white, #fff);
    padding: 25px;
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.03));
}

.sidebar-box h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--neutral-light, #f1f5f9);
    color: var(--text-dark, #1A1A1A);
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li {
    margin-bottom: 12px;
}

.sidebar-box ul li a {
    text-decoration: none;
    color: var(--text-muted, #666666);
    transition: color 0.2s;
}

.sidebar-box ul li a:hover {
    color: var(--primary-color, #2C63FF);
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 15px;
    outline: none;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--neutral-light, #f8fafc);
    border-radius: var(--radius-lg, 12px);
    border: 2px dashed var(--border-color, #e2e8f0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 1.8rem;
    }

    .single-post {
        padding: 25px;
    }
}