/* Blog-specific styles for Oroma TV */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

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

.blog-card-title {
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
}

.blog-card-title a:hover {
    color: var(--primary-red);
}

.blog-card-brief {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: auto;
}

/* Individual Post Styles */
.post-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.post-meta {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Post Images Gallery */
.post-images {
    margin: 2rem 0;
}

.post-images .row {
    margin: 0;
}

.post-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: scale(1.05);
}

/* Social Sharing */
.social-share {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
    text-align: center;
}

.social-share h5 {
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.social-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #166fe5;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.twitter:hover {
    background: #0d8bd9;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.whatsapp:hover {
    background: #1ebe57;
}

/* Post Reactions */
.post-reactions {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
    text-align: center;
}

.post-reactions h5 {
    color: var(--primary-red-light);
    margin-bottom: 2rem;
}

.post-reaction-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-reaction-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-reaction-item:hover {
    transform: scale(1.1);
}

.post-reaction-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 0.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-reaction-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.post-reaction-count {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.related-posts h3 {
    color: var(--primary-red);
    margin-bottom: 2rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    background: #1ebe57;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination .page-link:hover {
    color: var(--primary-red-light);
    background-color: rgba(139, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card-content {
        padding: 1rem;
    }
    
    .post-header {
        padding: 2rem 0 1rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .social-share {
        padding: 1.5rem;
    }
    
    .post-reaction-buttons {
        gap: 0.5rem;
    }
    
    .post-reaction-btn {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .blog-card-image {
        height: 150px;
    }
    
    .post-reactions {
        padding: 1.5rem;
    }
    
    .social-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}