/* Blog Styles for Bouncy Rentals
-------------------------------------------------- */

/* Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-card .card-text {
    color: #6c757d;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Blog post content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

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

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

.blog-content blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Featured post banner */
.featured-post {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-post img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.featured-post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.featured-post-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Category badges */
.blog-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #e9ecef;
    color: #495057;
}

.blog-category.events {
    background-color: #d1ecf1;
    color: #0c5460;
}

.blog-category.tips {
    background-color: #d4edda;
    color: #155724;
}

.blog-category.products {
    background-color: #f8d7da;
    color: #721c24;
}

/* Author card */
.author-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.author-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.author-card-content h5 {
    margin-bottom: 0.3rem;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.post-navigation a {
    display: flex;
    align-items: center;
    color: #495057;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #3498db;
    text-decoration: none;
}

.post-navigation .prev i {
    margin-right: 0.5rem;
}

.post-navigation .next i {
    margin-left: 0.5rem;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

/* Related posts section */
.related-posts-title {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.related-posts-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.related-post-card {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-post img {
        height: 250px;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}