/* Barra de Progresso de Leitura */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--color_btn_background, #0487ef);
    z-index: 99999;
    transition: width 0.15s linear;
}

.admin-bar .reading-progress-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .reading-progress-bar {
        top: 46px;
    }
}

/* Tempo de Leitura */
.post-date-infos-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reading-time-tag {
    color: #666;
    font-size: 14px;
}

.reading-time-tag i {
    margin-right: 3px;
}

/* Sumario (Table of Contents) */
.toc-container {
    background: #f8f9fa;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    max-width: 100%;
}

.toc-container .toc-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-container .toc-title .toc-toggle {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.toc-container .toc-title .toc-toggle.collapsed {
    transform: rotate(-90deg);
}

.toc-container .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-container .toc-list li {
    padding: 4px 0;
    line-height: 1.5;
}

.toc-container .toc-list li a {
    color: var(--color_anchor, #2e83c6);
    text-decoration: none;
    font-size: 14px;
}

.toc-container .toc-list li a:hover {
    text-decoration: underline;
}

.toc-container .toc-list li.toc-h3 {
    padding-left: 16px;
}

.toc-container .toc-list li.toc-h4 {
    padding-left: 32px;
}

.toc-container.toc-hidden .toc-list {
    display: none;
}

/* Leia Tambem */
.read-also-box {
    background: #f0f7ff;
    border-left: 4px solid var(--color_btn_background, #0487ef);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.read-also-box .read-also-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color_btn_background, #0487ef);
    margin-bottom: 4px;
}

.read-also-box .read-also-link {
    font-size: 15px;
    font-weight: 600;
}

.read-also-box .read-also-link a {
    color: var(--color_font_title, #333);
    text-decoration: none;
}

.read-also-box .read-also-link a:hover {
    text-decoration: underline;
    color: var(--color_font_title_hover, #0487ef);
}

/* Lazy Comments */
.load-comments-btn:hover {
    background: #eef1f4 !important;
    border-color: #ccc !important;
}

#comments-container .comments-area {
    margin-top: 20px;
}

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

#comments-container .comment {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

#comments-container .comment-author img {
    border-radius: 50%;
    margin-right: 8px;
}

#comments-container .comment-respond {
    margin-top: 20px;
}

#comments-container .comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#comments-container .comment-form .submit {
    padding: 10px 20px;
    background: var(--color_btn_background, #0487ef);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Content Freshness - Updated tag */
.updated-tag {
    color: #27ae60;
    font-weight: 500;
}

/* Author Box Enhanced (E-E-A-T) */
.post-author-area.enhanced {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 18px;
}
.post-author-area.enhanced .author-avatar-area {
    flex-shrink: 0;
}
.post-author-area.enhanced .author-avatar-area img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}
.post-author-area.enhanced .author-info {
    flex: 1;
}
.post-author-area.enhanced .author-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.post-author-area.enhanced .author-name a {
    color: var(--color_font_title, #333);
    text-decoration: none;
}
.post-author-area.enhanced .author-name a:hover {
    color: var(--color_anchor, #2e83c6);
}
.post-author-area.enhanced .author-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}
.post-author-area.enhanced .author-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.post-author-area.enhanced .author-social-links a {
    font-size: 13px;
    color: var(--color_anchor, #2e83c6);
    text-decoration: none;
}
.post-author-area.enhanced .author-social-links a:hover {
    text-decoration: underline;
}

/* Newsletter Popup */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99997;
    display: none;
    align-items: center;
    justify-content: center;
}
.newsletter-popup-overlay.visible {
    display: flex;
}
.newsletter-popup {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.newsletter-popup .popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}
.newsletter-popup h3 {
    font-size: 20px;
    margin: 0 0 8px;
}
.newsletter-popup p {
    color: #666;
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}
.newsletter-popup .popup-form {
    display: flex;
    gap: 8px;
}
.newsletter-popup .popup-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.newsletter-popup .popup-form button {
    padding: 10px 18px;
    background: var(--color_btn_background, #0487ef);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.newsletter-popup .popup-success {
    color: #27ae60;
    font-weight: bold;
    display: none;
}

.center-area p:first-child {
    margin-top: 0px;
}

.center-area p:last-child {
    margin-bottom: 0px;
}

.center-area a {
    color: #2e83c6;
    text-decoration: none;
}

/* Itens Relacionados */
.center-area .posts-relateds-area {
    margin-top: 20px;
    width: 100%;
}

.center-area .posts-relateds-area .area-title {
    width: 100%;
}

.center-area .posts-relateds-area .area-title h3 {
    margin: 0px;
}

.center-area .posts-relateds-area .area-title h3 svg {
    color: var(--color_font_title);
}

.center-area .posts-relateds-area .posts-list {
    display: flex;
    align-items: center;
    flex-flow: row;
    width: calc(100% + 10px);
    margin-left: -10px;
}

.center-area .posts-relateds-area .posts-list article {
    width: calc(100% / 4);
    height: 200px;
    padding: 10px 10px;
}

.center-area .posts-relateds-area .posts-list article a {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.center-area .posts-relateds-area .posts-list article a .img-area {
    width: 100%;
    height: 130px;
    background-color: #e2e2e2;
    position: relative;
    overflow: hidden;
}

.center-area .posts-relateds-area .posts-list article a .img-area .img-resizable.enable-zoom {
    width: 100%;
    height: 100%;
    transition: 0.5s all;
}

.center-area .posts-relateds-area .posts-list article a .img-area .img-resizable.enable-zoom img {
    transition: 0.5s all;
}

.center-area .posts-relateds-area .posts-list article a .post-infos {
    margin-top: 5px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.center-area .posts-relateds-area .posts-list article a:hover .post-infos {
    color: #191919;
}

.center-area .posts-relateds-area .posts-list article a .post-infos .post-title {

}



/* Tópicos */
.topicos-area {
    margin-top: 20px;
    width: 100%;
}

.topicos-area .area-title {
    width: 100%;
}

.topicos-area .area-title h3 {
    margin: 0px;
}

.topicos-area .area-title h3 svg {
    color: #0487ef;
}

.topicos-area .tags-list {
    display: flex;
    align-items: center;
    flex-flow: wrap;
    width: 100%;
}

.topicos-area .tags-list .tag-item {
    padding: 4px 4px;
}

.topicos-area .tags-list .tag-item a {
    padding: 4px 10px;
    border: 1px solid #0487ef;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    color: #0487ef;
}

.topicos-area .tags-list .tag-item a:hover {
    background-color: #0487ef;
    color: white;
}

@media (max-width: 900px) {
    .center-area .posts-relateds-area .posts-list {
        flex-flow: column;
    }

    .center-area .posts-relateds-area .posts-list article {
        height: fit-content;
        width: 100%;
        margin-top: 14px;
    }

    .center-area .posts-relateds-area .posts-list article:first-child {
        margin-top: 0px !important;
    }

    .center-area .posts-relateds-area .posts-list article a .img-area {
        height: 220px;
    }
}