/*
=========================================
BLOG
=========================================
*/

.blog-posts-wrapper {
    width: 100%;
}


/* GRID */

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* CARD */

.blog-post-card, .category-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.blog-post-card:hover, .category-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}


/* IMAGEM */

.blog-post-image, .category-post-thumbnail {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-post-image img, .category-post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-post-card:hover .blog-post-image img, .category-post-card:hover .category-post-thumbnail img {
    transform: scale(1.04);
}


/* CONTEÚDO */

.blog-post-content, .category-post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}


/* CATEGORIA */

.blog-post-category {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
}


/* TÍTULO */

.blog-post-title, .category-post-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.blog-post-title a, .category-post-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-title a:hover {
    text-decoration: none;
}


/* META */

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}


/* ATUALIZAÇÃO */

.blog-post-updated {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
}


/* RESUMO */

.blog-post-excerpt {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.65;
}


/* LINK */

.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-read-more:hover {
    text-decoration: underline;
}


/* ARTIGO EM DESTAQUE */

.blog-post-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    margin-bottom: 50px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
}

.blog-post-featured-image {
    display: block;
    min-height: 360px;
    overflow: hidden;
}

.blog-post-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
}

.blog-post-featured-title {
    margin: 0 0 15px;
    font-size: 34px;
    line-height: 1.2;
}

.blog-post-featured-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-featured-excerpt {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
}


/* PAGINAÇÃO */

.blog-pagination {
    margin-top: 45px;
}

.blog-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pagination li {
    margin: 0;
    padding: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
}

.blog-pagination .current {
    font-weight: 700;
}


/* MOBILE */

@media (max-width: 1024px) {

    .blog-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-post-featured {
        grid-template-columns: 1fr;
    }

    .blog-post-featured-image {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-post-featured-content {
        padding: 30px;
    }

}


@media (max-width: 767px) {

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .blog-post-featured-content {
        padding: 24px;
    }

    .blog-post-featured-title {
        font-size: 27px;
    }

    .blog-post-content {
        padding: 20px;
    }

}

/*
=========================================
BLOG > CATEGORIA
=========================================
*/

main.category-archive-page {
    padding: 3rem 0;
}

main.category-archive-page .category-header h1 {
    font-size: 2.5rem;
    padding-bottom: 3rem;
}

@media (max-width: 1024px) {
    main.category-archive-page {
        padding: 2rem 0;
    }
    main.category-archive-page .category-header h1 {
        font-size: 2rem;
        padding-bottom: 2rem;
    }
}

/*
=========================================
BLOG > CATEGORIA > ARTIGO
=========================================
*/

body.single-post article h2 {
    font-size: 1.75rem;
}
body.single-post article h3 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
}
body.single-post article h2,
body.single-post article p,
body.single-post article table,
body.single-post article ul {
    padding-bottom: 1.5rem;
}
body.single-post article ul li {
    padding-bottom: 1rem;
}

.comments-area {
    max-width: 100%;
    padding: 20px 0;
}

.comments-area .comment-list {
    list-style: none;
    padding: 0;
}

.comments-area .comment {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.comments-area .comment-author {
    font-weight: bold;
}

.comments-area .comment-meta {
    font-size: 0.9em;
    color: #666;
}

/* Formulário de comentários */
.comment-respond {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.comment-respond label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-respond .form-submit {
    margin-top: 20px;
}

.comment-respond .submit {
    background: #0073aa;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.comment-respond .submit:hover {
    background: #005a87;
}

/* Links de páginas */
.page-links {
    clear: both;
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.page-links .page-link {
    display: inline-block;
    margin: 0 3px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-links .page-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Tags do post */
.post-tags {
    margin: 30px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-tags .tag-links {
    font-weight: bold;
}

.post-tags a {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #0073aa;
    color: #fff;
}

/* Área de comentários */
.comments-area {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
    body.single-post article h2 {
        font-size: 1.45rem;
    }
    body.single-post article h3 {
        font-size: 1.25rem;
    }
    .page-links .page-link {
        padding: 3px 8px;
        font-size: 0.9em;
    }
    
    .post-tags a {
        padding: 3px 10px;
        font-size: 0.8em;
    }
}

/* AUTOR */

.author-info-box {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    margin: 30px 0;
    align-items: flex-start;
}

body.single-post .author-avatar {
    flex-shrink: 0;
}

body.single-post .author-avatar img {
    border-radius: 100%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.single-post .author-details {
    flex: 1;
}

body.single-post .author-name {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.author-name a {
    color: #333;
    text-decoration: none;
}

.author-name a:hover {
    color: #0073aa;
}

.author-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-website {
    margin-bottom: 15px;
}

.author-website a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
}

.author-website a:hover {
    text-decoration: underline;
}

.author-social {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.author-social a:hover {
    transform: translateY(-2px);
}

.author-social .social-twitter:hover {
    background: #1DA1F2;
    color: #fff;
}

.author-social .social-facebook:hover {
    background: #1877F2;
    color: #fff;
}

.author-social .social-instagram:hover {
    background: #E4405F;
    color: #fff;
}

.author-social .social-linkedin:hover {
    background: #0A66C2;
    color: #fff;
}

.author-posts-link .button {
    display: inline-block;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.author-posts-link .button:hover {
    background: #005a87;
}

/* Responsivo */
@media (max-width: 768px) {
    .author-info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .author-posts-link .button {
        display: inline-block;
    }
}