/* ============================================
   CenárioMT - Layout Página de Categorias
   ============================================ */

/* === PAGE WRAPPER === */
.cmt-cat-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === HEADER DA CATEGORIA === */
.cmt-cat-header {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 45px;
    margin-bottom: 0;
}
.cmt-cat-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.cmt-cat-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}
.cmt-cat-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.cmt-cat-breadcrumb a:hover {
    color: #fff;
}
.cmt-cat-breadcrumb .current-item,
.cmt-cat-breadcrumb span[property="name"] {
    color: rgba(255,255,255,0.5);
}
.cmt-cat-header-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.cmt-cat-header-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === CONTAINER PRINCIPAL (MAIN + SIDEBAR) === */
.cmt-cat-container {
    max-width: 1140px;
    margin: 35px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 45px;
    align-items: start;
}
.cmt-cat-main {
    min-width: 0;
}

/* === POST DESTAQUE === */
.cmt-cat-featured {
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #eee;
}
.cmt-cat-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 3px solid #44bd32;
    text-decoration: none;
}
.cmt-cat-featured-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}
.cmt-cat-featured-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.cmt-cat-featured-title a:hover {
    color: #44bd32;
}
.cmt-cat-featured-subtitle {
    position: relative;
    font-size: 17px;
    line-height: 1.5;
    color: #555;
    font-weight: 400;
    margin: 0 0 18px;
    padding-left: 14px;
}
.cmt-cat-featured-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: calc(100% - 6px);
    background: #44bd32;
    border-radius: 2px;
}
.cmt-cat-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 22px;
}
.cmt-cat-meta-avatar {
    display: flex;
    align-items: center;
    margin-right: 4px;
}
.cmt-cat-meta-avatar img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid #eee;
}
.cmt-cat-meta-author {
    font-weight: 700;
    color: #333;
}
.cmt-cat-meta-sep {
    color: #ccc;
    font-weight: 300;
}
.cmt-cat-meta-source {
    color: #666;
}
.cmt-cat-meta-reading {
    color: #666;
}
.cmt-cat-featured-img-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}
.cmt-cat-featured-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.4s ease;
}
.cmt-cat-featured-img-link:hover .cmt-cat-featured-img {
    transform: scale(1.02);
}

/* === NOTÍCIAS MAIS RECENTES (links) === */
.cmt-cat-recent-links {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.cmt-cat-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #c0392b;
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}
.cmt-cat-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
}
.cmt-cat-link-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none !important;
    padding: 6px 0;
    transition: color 0.2s;
}
.cmt-cat-link-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: #c0392b;
    border-radius: 50%;
    margin-top: 6px;
}
.cmt-cat-link-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s;
}
.cmt-cat-link-item:hover .cmt-cat-link-text {
    color: #c0392b;
}

/* === GRID 2 COLUNAS === */
.cmt-cat-grid-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.cmt-cat-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.cmt-cat-grid-card {
    display: flex;
    flex-direction: column;
}
.cmt-cat-grid-thumb-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}
.cmt-cat-grid-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.cmt-cat-grid-thumb-link:hover .cmt-cat-grid-thumb {
    transform: scale(1.04);
}
.cmt-cat-grid-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}
.cmt-cat-grid-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.cmt-cat-grid-title a:hover {
    color: #44bd32;
}
.cmt-cat-grid-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* === LISTA VERTICAL === */
.cmt-cat-list-section {
    margin-bottom: 30px;
}
.cmt-cat-list-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.cmt-cat-list-item:first-child {
    padding-top: 0;
}
.cmt-cat-list-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
}
.cmt-cat-list-thumb {
    width: 200px;
    height: 135px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}
.cmt-cat-list-thumb-link:hover .cmt-cat-list-thumb {
    transform: scale(1.04);
}
.cmt-cat-list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cmt-cat-list-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}
.cmt-cat-list-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}
.cmt-cat-list-title a:hover {
    color: #44bd32;
}
.cmt-cat-list-retranca {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c0392b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.cmt-cat-list-subtitle {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cmt-cat-list-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cmt-cat-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.cmt-cat-list-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.cmt-cat-list-share {
    display: flex;
    gap: 8px;
}
.cmt-cat-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s;
}
.cmt-cat-share-btn:hover {
    background: #000;
    color: #fff;
}
.cmt-cat-share-btn.cmt-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}
.cmt-cat-share-btn.cmt-share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}
.cmt-cat-share-btn.cmt-share-twitter:hover {
    background: #000;
    color: #fff;
}

/* === PAGINAÇÃO === */
.cmt-cat-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}
.cmt-cat-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    text-decoration: none;
    transition: all 0.2s;
}
.cmt-cat-pagination .page-numbers:hover {
    background: #e0e0e0;
    color: #111;
}
.cmt-cat-pagination .page-numbers.current {
    background: #111;
    color: #fff;
}
.cmt-cat-pagination .page-numbers.prev,
.cmt-cat-pagination .page-numbers.next {
    font-weight: 700;
}
.cmt-cat-no-more {
    text-align: center;
    color: #999;
    font-size: 15px;
    padding: 40px 0;
}

/* === SIDEBAR === 
   Usa classes da sidebar-custom.php (cmt-aside-column, cmt-sidebar-wrapper, 
   sidebar-widget, sidebar-item, etc.) que já possuem estilos inline.
   Apenas ajustes específicos para a página de categoria aqui. 
*/

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .cmt-cat-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cmt-sidebar-wrapper {
        position: static;
        max-height: none;
    }
}
@media (max-width: 768px) {
    .cmt-cat-header {
        padding: 35px 0 30px;
    }
    .cmt-cat-header-title {
        font-size: 32px;
    }
    .cmt-cat-featured-title {
        font-size: 24px;
    }
    .cmt-cat-links-grid {
        grid-template-columns: 1fr;
    }
    .cmt-cat-grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cmt-cat-list-item {
        flex-direction: column;
        gap: 12px;
    }
    .cmt-cat-list-thumb-link {
        width: 100%;
    }
    .cmt-cat-list-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .cmt-cat-featured-meta {
        font-size: 12px;
    }
    .cmt-cat-section-title {
        font-size: 18px;
    }
}

/* === DARK MODE === */
body.active-dark-mode .cmt-cat-header {
    background: #0d0d1a;
}
body.active-dark-mode .cmt-cat-featured-title a {
    color: #e8e8e8;
}
body.active-dark-mode .cmt-cat-featured-subtitle {
    color: #aaa;
}
body.active-dark-mode .cmt-cat-featured-meta,
body.active-dark-mode .cmt-cat-meta-source,
body.active-dark-mode .cmt-cat-meta-reading {
    color: #888;
}
body.active-dark-mode .cmt-cat-meta-author {
    color: #ccc;
}
body.active-dark-mode .cmt-cat-meta-sep {
    color: #444;
}
body.active-dark-mode .cmt-cat-label {
    color: #ccc;
    border-bottom-color: #44bd32;
}
body.active-dark-mode .cmt-cat-featured {
    border-bottom-color: #333;
}
body.active-dark-mode .cmt-cat-section-title {
    color: #e74c3c;
}
body.active-dark-mode .cmt-cat-link-text {
    color: #ccc;
}
body.active-dark-mode .cmt-cat-link-item:hover .cmt-cat-link-text {
    color: #e74c3c;
}
body.active-dark-mode .cmt-cat-recent-links {
    border-bottom-color: #333;
}
body.active-dark-mode .cmt-cat-grid-section {
    border-bottom-color: #333;
}
body.active-dark-mode .cmt-cat-grid-title a {
    color: #ddd;
}
body.active-dark-mode .cmt-cat-grid-excerpt {
    color: #999;
}
body.active-dark-mode .cmt-cat-list-item {
    border-bottom-color: #333;
}
body.active-dark-mode .cmt-cat-list-title a {
    color: #ddd;
}
body.active-dark-mode .cmt-cat-list-excerpt {
    color: #999;
}
body.active-dark-mode .cmt-cat-list-date {
    color: #777;
}
body.active-dark-mode .cmt-cat-list-subtitle {
    color: #999;
}
body.active-dark-mode .cmt-cat-share-btn {
    background: #222;
    color: #ccc;
}
body.active-dark-mode .cmt-cat-share-btn:hover {
    background: #fff;
    color: #000;
}
body.active-dark-mode .cmt-cat-share-btn.cmt-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}
body.active-dark-mode .cmt-cat-share-btn.cmt-share-whatsapp:hover {
    background: #25d366;
    color: #fff;
}
body.active-dark-mode .cmt-cat-share-btn.cmt-share-twitter:hover {
    background: #000;
    color: #fff;
}
body.active-dark-mode .cmt-cat-pagination .page-numbers {
    background: #222;
    color: #ccc;
}
body.active-dark-mode .cmt-cat-pagination .page-numbers:hover {
    background: #333;
    color: #fff;
}
body.active-dark-mode .cmt-cat-pagination .page-numbers.current {
    background: #fff;
    color: #000;
}
body.active-dark-mode .cmt-cat-list-retranca {
    color: #e74c3c;
}
