/* Blog App Custom Styles */

/* General Blog Styles */
.blog-post {
    line-height: 1.7;
}

.post-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
}

.post-meta {
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
}

/* Social Sharing */
.social-sharing .share-btn {
    transition: transform 0.2s ease;
}

.social-sharing .share-btn:hover {
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    border-left: 4px solid #007bff;
}

/* Comments */
.comment {
    border-left: 3px solid #e9ecef;
}

.comment:hover {
    border-left-color: #007bff;
    transition: border-left-color 0.3s ease;
}

/* Post Cards */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Featured Posts */
.featured-posts .card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.featured-posts .card:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Sidebar */
.sidebar-widget {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.sidebar-widget h5 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.recent-post-item {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    background-color: #f8f9fa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.category-badge {
    display: inline-block;
    margin: 0.25rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-badge:hover {
    transform: scale(1.05);
}

/* Category item styling for better visibility */
.category-item {
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.category-badge-dynamic {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

.category-badge-dynamic:hover {
    opacity: 0.8;
    color: white !important;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.social-links a {
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links a i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Newsletter */
.newsletter-form {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 0.25rem;
}

.newsletter-form .btn {
    border-radius: 0.25rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Search Form */
.search-form .input-group {
    border-radius: 0.5rem;
    overflow: hidden;
}

.search-form .form-control {
    border-right: none;
}

.search-form .btn {
    border-left: none;
}

/* Category Header */
.category-header .category-badge {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%) !important;
    color: white;
}

/* Object Fit Support */
.object-fit-cover {
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-meta {
        font-size: 0.8rem;
    }
    
    .post-meta > div {
        margin-bottom: 0.5rem;
    }
    
    .social-sharing .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .featured-posts .card-body {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-links a {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .post-card .row {
        flex-direction: column;
    }
    
    .post-card .col-md-4,
    .post-card .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .post-card img {
        height: 200px;
        border-radius: 0.375rem 0.375rem 0 0 !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .sidebar-widget {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .sidebar-widget h5 {
        color: #e2e8f0;
    }
    
    .recent-post-item {
        border-color: #4a5568;
    }
    
    .recent-post-item:hover {
        background-color: #4a5568;
    }
}