/* Estilos do Blog Fusion Streaming */

/* ===== Estilos Gerais do Blog ===== */
.blog-content {
    background-color: #f8f9fa;
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #333;
    font-weight: 700;
}

/* ===== Banner do Blog ===== */
.blog-banner {
    background: url('../images/blog/blog-background.svg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.blog-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-form .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.blog-search-form .form-control {
    height: 56px;
    border: none;
    font-size: 1rem;
    padding-left: 25px;
}

.blog-search-form .btn {
    width: 56px;
    border-radius: 0 50px 50px 0;
    font-size: 1.1rem;
}

/* ===== Cards do Blog ===== */
.blog-grid {
    margin-top: 30px;
}

.blog-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

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

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(67, 97, 238, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(114, 9, 183, 0.9);
    color: #fff;
}

.blog-card .card-title {
    font-weight: 700;
    line-height: 1.4;
}

.blog-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: #4361ee;
}

.post-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta i {
    color: #4361ee;
    margin-right: 5px;
}

.post-date {
    font-weight: 500;
}

.post-views {
    font-weight: 500;
    font-size: 0.75rem;
}

/* ===== Barra Lateral do Blog ===== */
.blog-sidebar {
    margin-top: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.widget-title {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.widget-title h3 {
    margin: 0;
    font-weight: 700;
    color: #333;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 3px;
}

.widget-content {
    padding: 20px;
}

/* Categorias */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #4361ee;
}

.categories-list .post-count {
    background: #f0f0f0;
    border-radius: 50px;
    color: #666;
    font-size: 0.8rem;
    padding: 2px 8px;
    transition: all 0.3s ease;
}

.categories-list a:hover .post-count {
    background: #4361ee;
    color: #fff;
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #4361ee;
    color: #fff;
}

/* Posts Populares */
.popular-post {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border-left: 3px solid #4361ee;
}

.popular-post:hover {
    background-color: #edf2ff;
    transform: translateX(3px);
}

.popular-post:last-child {
    margin-bottom: 0;
}

.post-image {
    width: 50px;
    height: 50px;
    margin-right: 8px;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.post-info {
    flex: 1;
}

.post-title {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4361ee;
}

/* Box de Promoção */
.promo-box {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.promo-box h4 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.promo-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.promo-box .btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* ===== Página do Post ===== */
.blog-post-header {
    background: url('../images/blog/blog-background.svg');
    padding: 100px 0 60px;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-category-badge {
    display: inline-block;
    background: rgba(67, 97, 238, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.post-category-badge:hover {
    background: rgba(114, 9, 183, 0.9);
    color: #fff;
}

.post-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

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

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

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

.post-content blockquote {
    border-left: 4px solid #4361ee;
    padding-left: 20px;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 5px;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
}

.post-tags .tag-link {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Compartilhamento Social */
.post-share {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
}

.share-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    color: #fff;
}

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

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

.share-button.whatsapp {
    background: #25d366;
}

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

/* Posts Relacionados */
.related-posts {
    margin-top: 50px;
}

.related-posts .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.related-posts .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 3px;
}

.related-post-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-post-card .card-img-container {
    height: 140px;
}

.related-post-card .card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Seção de Comentários */
.comments-section {
    margin-top: 50px;
}

.comments-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.comments-section .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 3px;
}

.comment-count {
    color: #6c757d;
    font-size: 1rem;
    font-weight: normal;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    margin-right: 20px;
    flex-shrink: 0;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.comment-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.comment-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #4361ee;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.reply-button {
    color: #4361ee;
    padding: 0;
    font-size: 0.9rem;
}

.comment-replies {
    margin-top: 20px;
    margin-left: 40px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.reply {
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.reply:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* Formulário de Comentário */
.comment-form-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form label {
    font-weight: 600;
}

.comment-notes {
    color: #6c757d;
}

.reply-form-container {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

/* Notificações de Comentário */
.comment-alert {
    margin-bottom: 25px;
}

/* Paginação */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #4361ee;
    border-color: #dee2e6;
    border-radius: 0;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: #4361ee;
    border-color: #4361ee;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* ===== Responsividade ===== */
@media (max-width: 991px) {
    .post-article {
        padding: 30px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .blog-banner h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .blog-banner {
        padding: 60px 0;
    }
    
    .blog-banner h1 {
        font-size: 1.8rem;
    }
    
    .post-article {
        padding: 25px;
        margin-top: -30px;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .comment-avatar {
        margin-right: 15px;
    }
    
    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .reply-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-date {
        margin-top: 5px;
    }
    
    .comment-replies {
        margin-left: 20px;
    }
    
    .blog-search-form .form-control {
        height: 50px;
    }
    
    .blog-search-form .btn {
        width: 50px;
    }
}

@media (max-width: 575px) {
    .post-article {
        padding: 20px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .comment-form-container {
        padding: 20px;
    }
    
    .reply-form-container {
        padding: 15px;
    }
    
    .categories-list a {
        padding: 10px 0;
    }
    
    .blog-banner {
        padding: 50px 0;
    }
    
    .blog-banner h1 {
        font-size: 1.6rem;
    }
}