/**
 * Último Save — Arquivo de categorias
 * Ajustes de contraste, cards, links e paginação para os cinco temas.
 *
 * Escopo: páginas de arquivo de categorias do WordPress/Blocksy.
 * Os estilos do tema Dia são claros; os demais temas mantêm cards escuros
 * com cores próprias para cada plataforma.
 */

/* ==========================================================================
   1. Cabeçalho da categoria e breadcrumb — tema Dia
   ========================================================================== */

html[data-theme="dia"] body.archive.category .hero-section,
html[data-theme="dia"] body.archive.category .ct-archive-header {
    color: #17191d;
}

html[data-theme="dia"] body.archive.category .page-title,
html[data-theme="dia"] body.archive.category .ct-archive-title,
html[data-theme="dia"] body.archive.category .entry-header,
html[data-theme="dia"] body.archive.category .entry-header a,
html[data-theme="dia"] body.archive.category .ct-breadcrumbs,
html[data-theme="dia"] body.archive.category .ct-breadcrumbs a,
html[data-theme="dia"] body.archive.category .ct-breadcrumbs span {
    color: #17191d !important;
}

html[data-theme="dia"] body.archive.category .ct-breadcrumbs a:hover,
html[data-theme="dia"] body.archive.category .entry-header a:hover {
    color: #ff3b30 !important;
}

/* ==========================================================================
   2. Cards — tema Dia
   ========================================================================== */

html[data-theme="dia"] body.archive.category article.entry-card,
html[data-theme="dia"] body.archive.category .entries article,
html[data-theme="dia"] body.archive.category .entry-card {
    background-color: #fff;
    border-color: #d9dde4;
}

html[data-theme="dia"] body.archive.category .entry-card .entry-title,
html[data-theme="dia"] body.archive.category .entry-card .entry-title a,
html[data-theme="dia"] body.archive.category article .entry-title,
html[data-theme="dia"] body.archive.category article .entry-title a {
    color: #17191d !important;
}

html[data-theme="dia"] body.archive.category .entry-card .entry-excerpt,
html[data-theme="dia"] body.archive.category .entry-card .entry-excerpt p,
html[data-theme="dia"] body.archive.category article .entry-excerpt,
html[data-theme="dia"] body.archive.category article .entry-excerpt p {
    color: #353b45 !important;
}

html[data-theme="dia"] body.archive.category .entry-meta,
html[data-theme="dia"] body.archive.category .entry-meta *,
html[data-theme="dia"] body.archive.category .entry-card .ct-terms,
html[data-theme="dia"] body.archive.category .entry-card .ct-terms a {
    color: #59616d !important;
}

html[data-theme="dia"] body.archive.category .entry-card .entry-title a:hover,
html[data-theme="dia"] body.archive.category .entry-card .ct-terms a:hover {
    color: #ff3b30 !important;
}

/* ==========================================================================
   3. Cards — tema Noite e temas de plataforma
   ========================================================================== */

/* Noite */
html[data-theme="noite"] body.archive.category article.entry-card,
html[data-theme="noite"] body.archive.category .entries article,
html[data-theme="noite"] body.archive.category .entry-card {
    background-color: #18181b !important;
    border-color: #303036 !important;
}

/* PlayStation */
html[data-theme="playstation"] body.archive.category article.entry-card,
html[data-theme="playstation"] body.archive.category .entries article,
html[data-theme="playstation"] body.archive.category .entry-card {
    background-color: #101b30 !important;
    border-color: #18365c !important;
}

/* Xbox */
html[data-theme="xbox"] body.archive.category article.entry-card,
html[data-theme="xbox"] body.archive.category .entries article,
html[data-theme="xbox"] body.archive.category .entry-card {
    background-color: #101e11 !important;
    border-color: #244326 !important;
}

/* Nintendo */
html[data-theme="nintendo"] body.archive.category article.entry-card,
html[data-theme="nintendo"] body.archive.category .entries article,
html[data-theme="nintendo"] body.archive.category .entry-card {
    background-color: #241012 !important;
    border-color: #4a1b20 !important;
}

/* Texto dos cards escuros: títulos, resumos e metadados. */
html[data-theme="noite"] body.archive.category .entry-card,
html[data-theme="playstation"] body.archive.category .entry-card,
html[data-theme="xbox"] body.archive.category .entry-card,
html[data-theme="nintendo"] body.archive.category .entry-card {
    color: #f5f5f7;
}

html[data-theme="noite"] body.archive.category .entry-card .entry-title,
html[data-theme="noite"] body.archive.category .entry-card .entry-title a,
html[data-theme="playstation"] body.archive.category .entry-card .entry-title,
html[data-theme="playstation"] body.archive.category .entry-card .entry-title a,
html[data-theme="xbox"] body.archive.category .entry-card .entry-title,
html[data-theme="xbox"] body.archive.category .entry-card .entry-title a,
html[data-theme="nintendo"] body.archive.category .entry-card .entry-title,
html[data-theme="nintendo"] body.archive.category .entry-card .entry-title a {
    color: #f5f5f7;
}

/* Hover dos links nos temas escuros e de plataforma. */
html[data-theme="noite"] body.archive.category article a:hover,
html[data-theme="playstation"] body.archive.category article a:hover,
html[data-theme="xbox"] body.archive.category article a:hover,
html[data-theme="nintendo"] body.archive.category article a:hover {
    color: var(--theme-palette-color-1, #ff3b30);
}

/* ==========================================================================
   4. Paginação — tema Dia
   ========================================================================== */

/* Números, reticências e links inativos precisam contrastar com o fundo claro. */
html[data-theme="dia"] body.archive.category .ct-pagination,
html[data-theme="dia"] body.archive.category .ct-pagination a,
html[data-theme="dia"] body.archive.category .ct-pagination .page-numbers,
html[data-theme="dia"] body.archive.category nav.pagination,
html[data-theme="dia"] body.archive.category nav.pagination a,
html[data-theme="dia"] body.archive.category nav.pagination .page-numbers {
    color: #353b45 !important;
}

/* Página atual e hover usam o vermelho de destaque do site. */
html[data-theme="dia"] body.archive.category .ct-pagination a:hover,
html[data-theme="dia"] body.archive.category .ct-pagination .page-numbers:hover,
html[data-theme="dia"] body.archive.category nav.pagination a:hover,
html[data-theme="dia"] body.archive.category nav.pagination .page-numbers:hover,
html[data-theme="dia"] body.archive.category .ct-pagination .page-numbers.current,
html[data-theme="dia"] body.archive.category nav.pagination .page-numbers.current {
    color: #fff !important;
    background-color: #ff3b30 !important;
    border-color: #ff3b30 !important;
}

/* Botões Próxima/Anterior quando não estão em hover. */
html[data-theme="dia"] body.archive.category .ct-pagination .next,
html[data-theme="dia"] body.archive.category .ct-pagination .prev,
html[data-theme="dia"] body.archive.category nav.pagination .next,
html[data-theme="dia"] body.archive.category nav.pagination .prev {
    color: #353b45 !important;
    border-color: #353b45 !important;
}

/* ==========================================================================
   5. Responsividade
   ========================================================================== */

@media (max-width: 689px) {
    html[data-theme="dia"] body.archive.category .ct-archive-header {
        color: #17191d;
    }
}
