/*
Theme Name: Pixwell Child
Theme URI: https://themeforest.net/item/pixwell-modern-magazine-wordpress-theme/19457547
Template: pixwell
Author: Seu Nome
Author URI: https://seuwebsite.com
Description: Tema filho do Pixwell WordPress Theme com sistema de avaliação e posts relacionados
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixwell
*/

/* Estilos personalizados para o tema filho */

/* Estilos para o rodapé - Comentados para evitar interferências */
/*
.pixwell-child-theme .footer-wrap {
    background-color: #222;
    color: #fff;
}

.pixwell-child-theme .footer-widget h4 {
    color: #fff;
}

.pixwell-child-theme .footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.pixwell-child-theme .footer-widget ul li a:hover {
    color: #fff;
}

.pixwell-child-theme .footer-bottom {
    color: #999;
    border-top: 1px solid #333;
}
*/


/* Melhorias de nitidez para imagens */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Especificamente para miniaturas de posts */
.post-thumbnail img,
.wp-post-image,
.attachment-thumbnail {
    image-rendering: auto;
    -webkit-filter: contrast(1.1) brightness(1.05);
    filter: contrast(1.1) brightness(1.05);
}

/* Melhoria para imagens em dispositivos de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: auto;
        -webkit-filter: contrast(1.05);
        filter: contrast(1.05);
    }
}



/* Correção específica para o conflito entre índice sumário e imagem destacada */
/* Garantir que a imagem destacada não seja afetada pelo índice sumário */
.pix-single-featured,
.pix-featured-image,
.pix-post-featured,
.single-featured-image,
.pixwell-featured-image,
.post-featured-image,
.entry-featured-image,
.single-post .post-thumbnail,
.single .post-thumbnail,
.entry-header .post-thumbnail,
.featured-image {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Garantir que autor e ícones de compartilhamento não sejam sobrepostos */
.pix-post-meta,
.pix-author-info,
.pix-social-share,
.pix-share-buttons,
.pixwell-post-meta,
.pixwell-author,
.pixwell-share,
.post-meta,
.entry-meta,
.post-author,
.author-info,
.post-share,
.social-share,
.share-buttons {
    position: relative;
    z-index: 10;
    clear: both;
    margin: 15px 0;
}

/* Ajustes específicos para mobile - foco no conflito com índice sumário */
@media (max-width: 768px) {
    /* Garantir que a imagem destacada tenha posicionamento correto */
    .pix-single-featured,
    .pix-featured-image,
    .pix-post-featured,
    .single-featured-image,
    .pixwell-featured-image,
    .post-featured-image,
    .entry-featured-image,
    .single-post .post-thumbnail,
    .single .post-thumbnail,
    .entry-header .post-thumbnail,
    .featured-image {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 30px;
        z-index: 1;
    }
    
    /* Garantir que o índice sumário não interfira com a imagem */
    #ruby-table-contents {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        float: none !important;
        clear: both !important;
        margin: 30px 0 !important;
        z-index: 5;
    }
    
    /* Meta informações (autor, compartilhamento) */
    .pix-post-meta,
    .pix-author-info,
    .pix-social-share,
    .pix-share-buttons,
    .pixwell-post-meta,
    .pixwell-author,
    .pixwell-share,
    .post-meta,
    .entry-meta,
    .post-author,
    .author-info,
    .post-share,
    .social-share,
    .share-buttons {
        margin: 20px 0;
        padding: 10px 0;
        position: relative;
        z-index: 15;
        clear: both;
    }
    
    /* Imagens dentro dos containers */
    .pix-single-featured img,
    .pix-featured-image img,
    .pix-post-featured img,
    .single-featured-image img,
    .pixwell-featured-image img,
    .post-featured-image img,
    .entry-featured-image img,
    .post-thumbnail img,
    .featured-image img {
        position: static !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .pix-single-featured,
    .pix-featured-image,
    .pix-post-featured,
    .single-featured-image,
    .pixwell-featured-image,
    .post-featured-image,
    .entry-featured-image,
    .single-post .post-thumbnail,
    .single .post-thumbnail,
    .entry-header .post-thumbnail,
    .featured-image {
        margin-bottom: 40px;
    }
    
    #ruby-table-contents {
        margin: 40px 0 !important;
    }
    
    .pix-post-meta,
    .pix-author-info,
    .pix-social-share,
    .pix-share-buttons,
    .pixwell-post-meta,
    .pixwell-author,
    .pixwell-share,
    .post-meta,
    .entry-meta,
    .post-author,
    .author-info,
    .post-share,
    .social-share,
    .share-buttons {
        margin: 25px 0;
        padding: 15px 0;
    }
}

