/* Correção dos Cards dos Artigos do Blog - Mobile ABH Motoboys */
/* FUNDO BRANCO COM LETRAS PRETAS - MOBILE */

/* 1. Correção para tablets */
@media (max-width: 768px) {
    .blog-post-card {
        background: #ffffff !important;
        border: 2px solid #e5e7eb !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
        border-radius: 16px !important;
    }
    
    .post-card-content {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 1.5rem !important;
    }
    
    .post-card-content h2 a {
        color: #000000 !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }
    
    .post-card-content h2 a:hover {
        color: #3b82f6 !important;
        text-decoration: underline !important;
    }
    
    .post-excerpt {
        color: #374151 !important;
        font-weight: 400 !important;
    }
    
    .post-meta {
        color: #6b7280 !important;
    }
    
    .post-meta time {
        color: #6b7280 !important;
    }
    
    .reading-time {
        color: #6b7280 !important;
    }
    
    .tag {
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
        border: 1px solid #d1d5db !important;
    }
    
    .tag:hover {
        background: #3b82f6 !important;
        color: #ffffff !important;
    }
    
    .read-more {
        color: #3b82f6 !important;
        font-weight: 700 !important;
    }
    
    .read-more:hover {
        color: #1d4ed8 !important;
        text-decoration: underline !important;
    }
    
    .read-more svg {
        color: #3b82f6 !important;
    }
    
    .read-more:hover svg {
        color: #1d4ed8 !important;
    }
}

/* 2. Correção para celulares pequenos */
@media (max-width: 480px) {
    .blog-post-card {
        background: #ffffff !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 16px !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .post-card-content {
        padding: 1.5rem !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .post-card-content h2 {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .post-card-content h2 a {
        color: #000000 !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }
    
    .post-card-content h2 a:hover {
        color: #1d4ed8 !important;
        text-decoration: underline !important;
    }
    
    .post-excerpt {
        color: #374151 !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
        font-weight: 400 !important;
    }
    
    .post-meta {
        color: #6b7280 !important;
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .post-meta time {
        color: #6b7280 !important;
    }
    
    .reading-time {
        color: #6b7280 !important;
    }
    
    .post-tags {
        margin-bottom: 1.2rem !important;
        gap: 0.4rem !important;
    }
    
    .tag {
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
        border: 1px solid #d1d5db !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
    }
    
    .tag:hover {
        background: #3b82f6 !important;
        color: #ffffff !important;
        border-color: #3b82f6 !important;
    }
    
    .read-more {
        color: #3b82f6 !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        padding: 0.5rem 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        text-decoration: none !important;
    }
    
    .read-more:hover {
        color: #1d4ed8 !important;
        text-decoration: underline !important;
    }
    
    .read-more svg {
        color: #3b82f6 !important;
        width: 14px !important;
        height: 14px !important;
    }
    
    .read-more:hover svg {
        color: #1d4ed8 !important;
    }
}

/* 3. Correção para telas muito pequenas */
@media (max-width: 360px) {
    .blog-post-card {
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        background: #ffffff !important;
    }
    
    .post-card-content {
        padding: 1.2rem !important;
        background: #ffffff !important;
    }
    
    .post-card-content h2 {
        font-size: 1.1rem !important;
    }
    
    .post-card-content h2 a {
        color: #000000 !important;
    }
    
    .post-excerpt {
        font-size: 0.9rem !important;
        color: #374151 !important;
    }
    
    .tag {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.6rem !important;
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
    }
    
    .read-more {
        font-size: 0.85rem !important;
        color: #3b82f6 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
}

/* 4. Melhorias de contraste e legibilidade */
@media (max-width: 768px) {
    /* Garantir que o fundo seja sempre branco */
    .blog-post-card,
    .blog-post-card * {
        background-color: #ffffff !important;
    }
    
    /* Melhorar contraste dos textos */
    .post-card-content h2 a {
        color: #000000 !important;
        font-weight: 800 !important;
    }
    
    .post-excerpt {
        color: #374151 !important;
        font-weight: 400 !important;
    }
    
    /* Melhorar visibilidade dos elementos interativos */
    .read-more {
        background: rgba(59, 130, 246, 0.1) !important;
        padding: 0.5rem 1rem !important;
        border-radius: 8px !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        color: #3b82f6 !important;
    }
    
    .read-more:hover {
        background: rgba(59, 130, 246, 0.2) !important;
        border-color: rgba(59, 130, 246, 0.5) !important;
        color: #1d4ed8 !important;
    }
    
    /* Melhorar tags */
    .tag {
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
        border: 1px solid #d1d5db !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .tag:hover {
        background: #3b82f6 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
    }
}

/* 5. Otimizações para touch */
@media (max-width: 768px) {
    /* Aumentar área de toque */
    .post-card-content h2 a {
        padding: 0.5rem 0 !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        color: #000000 !important;
    }
    
    .read-more {
        min-height: 48px !important;
        justify-content: center !important;
        color: #3b82f6 !important;
    }
    
    .tag {
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
    }
}

/* 6. Correções específicas para orientação landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .blog-post-card {
        margin-bottom: 1rem !important;
        background: #ffffff !important;
    }
    
    .post-card-content {
        padding: 1.2rem !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .post-card-content h2 {
        font-size: 1.1rem !important;
    }
    
    .post-card-content h2 a {
        color: #000000 !important;
    }
    
    .post-excerpt {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        color: #374151 !important;
    }
}

/* 7. Garantir que as correções tenham prioridade */
@media (max-width: 768px) {
    .blog-post-card,
    .post-card-content,
    .post-excerpt,
    .post-meta,
    .tag {
        /* Forçar aplicação das regras */
        all: unset;
        display: block;
    }
    
    /* Manter funcionalidade dos links */
    .post-card-content h2 a,
    .read-more {
        /* Não usar all: unset para preservar funcionalidade dos links */
        display: inline-block !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    .blog-post-card {
        background: #ffffff !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 16px !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
        overflow: hidden !important;
    }
    
    .post-card-content {
        background: #ffffff !important;
        padding: 1.5rem !important;
        color: #000000 !important;
    }
    
    .post-card-content h2 {
        margin-bottom: 1rem !important;
    }
    
    .post-card-content h2 a {
        color: #000000 !important;
        font-weight: 800 !important;
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
        display: block !important;
    }
    
    .post-excerpt {
        color: #374151 !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }
    
    .post-meta {
        color: #6b7280 !important;
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .tag {
        background: #f3f4f6 !important;
        color: #3b82f6 !important;
        border: 1px solid #d1d5db !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        display: inline-block !important;
        margin: 0.2rem !important;
    }
    
    .read-more {
        color: #3b82f6 !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        background: rgba(59, 130, 246, 0.1) !important;
        padding: 0.5rem 1rem !important;
        border-radius: 8px !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Garantir que os links sejam clicáveis */
    .post-card-content h2 a {
        color: #000000 !important;
        font-weight: 800 !important;
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
        display: block !important;
    }
}

/* 8. Garantir funcionalidade dos links em todas as resoluções */
@media (max-width: 768px) {
    /* Links dos títulos */
    .post-card-content h2 a {
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
        text-decoration: none !important;
    }
    
    .post-card-content h2 a:hover {
        text-decoration: underline !important;
    }
    
    /* Links "Ler artigo completo" */
    .read-more {
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
        text-decoration: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2) !important;
    }
    
    .read-more:hover {
        text-decoration: underline !important;
    }
    
    .read-more:active {
        transform: scale(0.98) !important;
    }
    
    /* Garantir que o SVG dentro do link seja clicável */
    .read-more svg {
        pointer-events: none !important;
    }
}

/* 9. CORREÇÃO FINAL - Garantir que os links funcionem no mobile */
@media (max-width: 768px) {
    /* Forçar funcionalidade dos links */
    .post-card-content h2 a,
    .read-more {
        /* Propriedades essenciais para links funcionais */
        display: inline-block !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 999 !important;
        text-decoration: none !important;
        color: inherit !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Área de toque aumentada para mobile */
    .post-card-content h2 a {
        min-height: 44px !important;
        padding: 0.5rem 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .read-more {
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Feedback visual para touch */
    .post-card-content h2 a:active,
    .read-more:active {
        opacity: 0.7 !important;
        transform: scale(0.98) !important;
    }
    
    /* Garantir que não haja interferência */
    .post-card-content h2 a::before,
    .post-card-content h2 a::after,
    .read-more::before,
    .read-more::after {
        display: none !important;
    }
    
    /* Remover qualquer pseudo-elemento que possa estar interferindo */
    .post-card-content h2 a *,
    .read-more * {
        pointer-events: none !important;
    }
}

/* 10. CORREÇÃO PARA CONTEÚDO DOS ARTIGOS INDIVIDUAIS */
@media (max-width: 768px) {
    /* Garantir que o conteúdo dos artigos tenha fundo branco */
    .blog-post {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .blog-post * {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    /* Títulos dos artigos */
    .blog-post h1,
    .blog-post h2,
    .blog-post h3,
    .blog-post h4,
    .blog-post h5,
    .blog-post h6 {
        color: #000000 !important;
        background: transparent !important;
    }
    
    /* Parágrafos e texto */
    .blog-post p,
    .blog-post li,
    .blog-post span,
    .blog-post div {
        color: #374151 !important;
        background: transparent !important;
    }
    
    /* Seções de conteúdo */
    .content-section {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .content-section * {
        background: transparent !important;
        color: inherit !important;
    }
    
    /* Cards de vantagens */
    .advantage-card {
        background: #ffffff !important;
        border: 2px solid #e5e7eb !important;
        color: #000000 !important;
    }
    
    .advantage-card h4 {
        color: #000000 !important;
    }
    
    .advantage-card p {
        color: #374151 !important;
    }
    
    /* Opções de contato */
    .contact-option {
        background: #ffffff !important;
        border: 2px solid #e5e7eb !important;
        color: #000000 !important;
    }
    
    .contact-option h4 {
        color: #000000 !important;
    }
    
    .contact-option p {
        color: #374151 !important;
    }
    
    /* Links dentro dos artigos */
    .blog-post a {
        color: #3b82f6 !important;
        background: transparent !important;
    }
    
    .blog-post a:hover {
        color: #1d4ed8 !important;
        text-decoration: underline !important;
    }
    
    /* Meta informações do artigo */
    .post-meta {
        color: #6b7280 !important;
        background: transparent !important;
    }
    
    .post-meta time,
    .reading-time {
        color: #6b7280 !important;
        background: transparent !important;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        background: transparent !important;
    }
    
    .breadcrumb a {
        color: #3b82f6 !important;
        background: transparent !important;
    }
    
    .breadcrumb li[aria-current="page"] {
        color: #374151 !important;
        background: #f3f4f6 !important;
    }
} 