/* Blog Page Styles - Scoped to prevent conflicts */

/* Header */
.blog-header-section {
    background-color: var(--bg-secondary);
    padding: 80px 0;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* Card Styles */
.blog-post-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-default);
    height: 100%;
    background-color: var(--bg-card);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-strong);
    border-color: var(--primary-color);
}

.blog-card-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 25px;
}

.blog-meta-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-meta-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Styles */
.blog-sidebar-widget {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    transition: var(--transition-default);
}

.blog-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-main);
}

.blog-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-category-list li {
    margin-bottom: 10px;
}

.blog-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.blog-category-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.blog-category-count {
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-main);
}

.blog-category-link:hover .blog-category-count {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Detail Page */
.blog-detail-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    transition: var(--transition-default);
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: var(--box-shadow-soft);
}

.blog-detail-header-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

.blog-detail-featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-strong);
}

/* Share Buttons (Updated) */
.blog-share-area {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.blog-btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.blog-btn-share:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.blog-btn-facebook { background-color: #1877f2; }
.blog-btn-facebook:hover { background-color: #166fe5; }

.blog-btn-x { background-color: #000; }
.blog-btn-x:hover { background-color: #333; }
[data-theme="dark"] .blog-btn-x { background-color: #fff; color: #000; }
[data-theme="dark"] .blog-btn-x:hover { background-color: #e0e0e0; }
[data-theme="dark"] .blog-btn-x svg path { fill: #000 !important; }

.blog-btn-linkedin { background-color: #0077b5; }
.blog-btn-linkedin:hover { background-color: #00669c; }

/* Dark Mode Specific Tweaks */
[data-theme="dark"] .blog-category-count {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

[data-theme="dark"] .blog-share-area {
    border-color: var(--border-color);
}
