/* 
 * Estilos específicos para o blog
 * ASL Software Engineering
 * 2025
 */

/* Estilos gerais do blog */
.blog-container {
    padding: 80px 0;
}

.blog-title {
    margin-bottom: 50px;
    text-align: center;
}

.blog-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Cards de posts */
.blog-card {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

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

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

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

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

.blog-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.blog-card-meta {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #777;
}

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

.blog-card-meta i {
    margin-right: 5px;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.blog-card-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.blog-card-link:hover {
    color: var(--secondary-color);
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
}

.blog-card-tag {
    font-size: 0.75rem;
    color: #777;
    margin-right: 8px;
}

/* Paginação */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-item .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    margin: 0 3px;
    border-radius: 4px;
    transition: all 0.3s;
}

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

.blog-pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.blog-pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Barra lateral */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-section {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-sidebar-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: #333;
}

.blog-search-form .input-group {
    border-radius: 4px;
    overflow: hidden;
}

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

.blog-search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.blog-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-categories li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.blog-categories li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.blog-categories a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.blog-categories a:hover {
    color: var(--primary-color);
}

.blog-categories a span {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #777;
    transition: background-color 0.3s, color 0.3s;
}

.blog-categories a:hover span {
    background-color: var(--primary-color);
    color: white;
}

.blog-popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-popular-post {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-popular-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.blog-popular-post-info h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.blog-popular-post-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-popular-post-info h5 a:hover {
    color: var(--primary-color);
}

.blog-popular-post-info span {
    font-size: 0.75rem;
    color: #777;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.blog-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-newsletter-form .form-control {
    margin-bottom: 10px;
}

.blog-social-links {
    display: flex;
    gap: 10px;
}

.blog-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.blog-social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Página de post individual */
.blog-post-container {
    padding: 80px 0;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-post-header {
    padding: 30px 30px 0;
}

.blog-post-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #777;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
}

.blog-post-meta i {
    margin-right: 5px;
}

.blog-post-featured-image {
    margin-bottom: 30px;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.blog-post-content {
    padding: 0 30px 30px;
    line-height: 1.8;
    color: #444;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #333;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #333;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, 
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-image {
    margin: 30px 0;
    text-align: center;
}

.blog-post-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-image figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.blog-post-highlight {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.blog-post-highlight p:last-child {
    margin-bottom: 0;
}

.blog-post-quote {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.blog-post-quote p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-post-quote cite {
    font-size: 0.9rem;
    color: #777;
    font-style: normal;
    font-weight: 600;
}

.blog-post-footer {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.blog-post-tags span {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.blog-post-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-post-share span {
    font-weight: 600;
    color: #555;
    margin-right: 5px;
}

.blog-post-author-box {
    margin: 40px 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.blog-post-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post-author-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.blog-post-author-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-post-author-social {
    display: flex;
    gap: 10px;
}

.blog-post-author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #eee;
    color: #555;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.blog-post-author-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-post-related {
    margin: 40px 30px;
}

.blog-post-related h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.blog-post-comments-section {
    margin: 40px 30px;
}

.blog-post-comments-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.blog-post-comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.blog-post-comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post-comment-content {
    flex: 1;
}

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

.blog-post-comment-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.blog-post-comment-header span {
    font-size: 0.85rem;
    color: #777;
}

.blog-post-comment p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.blog-post-comment-actions a {
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.blog-post-comment-actions a i {
    margin-right: 5px;
}

.blog-post-comment-actions a:hover {
    color: var(--primary-color);
}

.blog-post-comment-reply {
    margin-top: 20px;
    margin-left: 40px;
}

.blog-post-comment-form {
    margin-top: 40px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.blog-post-comment-form h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.blog-post-cta {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.blog-post-cta h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.blog-post-cta p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.blog-post-cta .btn {
    padding: 10px 25px;
    font-weight: 600;
}

/* Animações */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-post-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-post-author-social {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .blog-container,
    .blog-post-container {
        padding: 50px 0;
    }
    
    .blog-post-header,
    .blog-post-content,
    .blog-post-footer,
    .blog-post-author-box,
    .blog-post-related,
    .blog-post-comments-section {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .blog-post-title {
        font-size: 1.6rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.3rem;
    }
    
    .blog-post-comment {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-post-comment-avatar {
        width: 50px;
        height: 50px;
    }
    
    .blog-post-comment-reply {
        margin-left: 20px;
    }
}

@media (max-width: 575.98px) {
    .blog-card-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-post-title {
        font-size: 1.4rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-post-content h4 {
        font-size: 1.1rem;
    }
}
