/* Blog System Styles */
.blog-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #007bff;
}

/* Blog Cards */
.blog-post-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.post-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

/* Post Meta */
.post-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.post-meta .meta-item {
    display: inline-flex;
    align-items: center;
}

/* Categories & Tags */
.post-categories .badge,
.post-tags .badge {
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-categories .badge:hover,
.post-tags .badge:hover {
    transform: translateY(-1px);
}

/* Content Styling */
.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.content-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    color: #1a202c;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.content-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #2d3748;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-body blockquote {
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
}

.content-body ul, .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.content-body table th,
.content-body table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.content-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Social Sharing */
.social-sharing .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.social-sharing .btn:hover {
    transform: translateY(-2px);
}

/* Sidebar */
.blog-sidebar .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.blog-sidebar .card-header {
    border-bottom: none;
    font-weight: 600;
}

.recent-post-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.recent-post-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Results */
.search-result-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-card .row {
        flex-direction: column;
    }
    
    .post-image {
        height: 250px;
    }
    
    .content-body {
        font-size: 1rem;
    }
    
    .content-body h2 {
        font-size: 1.5rem;
    }
    
    .content-body h3 {
        font-size: 1.3rem;
    }
    
    .social-sharing .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card,
.search-result-card {
    animation: fadeInUp 0.6s ease;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.reading-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.1s ease;
}