/*
Theme Name: PostifyAI News
Theme URI: https://postifyai.com
Description: Tema Editorial e Portal de Noticias Moderno com foco em Performance e Afiliados de Alta Conversao.
Author: PostifyAI Engineering Team
Author URI: https://postifyai.com
Template: newscrunch
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: postifyai-news
*/

/* ==========================================================================
   POSTIFYAI NEWS - DESIGN SYSTEM & MODERN EDITORIAL STYLES
   ========================================================================== */

/* 1. Tipografia e Base Editorial */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. Top Header & Barra de Notícias */
.spnc-top-header {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
}

.spnc-ticker-title {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
}

/* 3. Navegação Principal */
.spnc-header-menu-container {
    background: #ffffff !important;
    border-bottom: 2px solid #0f172a !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05) !important;
}

.spnc-header-menu ul li a {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    letter-spacing: -0.2px !important;
}

.spnc-header-menu ul li a:hover {
    color: #2563eb !important;
}

/* 4. Super Destaque Editorial para Posts Fixados (Sticky / Afiliados) */
article.sticky,
.spnc-post.sticky {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 35px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    overflow: hidden !important;
}

article.sticky:hover,
.spnc-post.sticky:hover {
    transform: translateY(-3px) !important;
    border-color: #cbd5e1 !important;
    border-top-color: #1d4ed8 !important;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12) !important;
}

/* Selo Editorial Elegante e Discreto */
article.sticky::before,
.spnc-post.sticky::before {
    content: "⭐ GUIA RECOMENDADO";
    display: inline-block;
    background: #0f172a;
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

/* Título em destaque no post fixado */
article.sticky .spnc-entry-title,
article.sticky h4.spnc-entry-title,
article.sticky h2,
article.sticky h2 a,
article.sticky h4 a,
.spnc-post.sticky .spnc-entry-title a {
    color: #0f172a !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.3px !important;
    margin-top: 6px !important;
    transition: color 0.15s ease !important;
}

article.sticky h2 a:hover,
article.sticky h4 a:hover,
.spnc-post.sticky .spnc-entry-title a:hover {
    color: #2563eb !important;
}

/* 5. Badges de Categorias Estilo Portal de Notícias Moderno */
.spnc-cat-links a,
.category-artigos a,
.category-articles a {
    background-color: #16a34a !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.category-tecnologia a,
.category-technology a {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.category-esportes a,
.category-sports a {
    background-color: #ea580c !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.category-negocios a,
.category-business a {
    background-color: #7c3aed !important;
    color: #ffffff !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* 6. Feed de Notícias Recentes - Cartões Limpos e Escaneáveis */
.spnc-blog-home article:not(.sticky) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.spnc-blog-home article:not(.sticky):hover {
    transform: translateY(-2px) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 16px -2px rgba(15, 23, 42, 0.08) !important;
}

/* Efeito de zoom sutil na miniatura da notícia */
.spnc-post-overlay {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.spnc-post-overlay img {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.spnc-blog-home article:hover .spnc-post-overlay img {
    transform: scale(1.04) !important;
}

/* Títulos das notícias do feed */
.spnc-blog-home article:not(.sticky) .spnc-entry-title a {
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.2px !important;
    transition: color 0.15s ease !important;
}

.spnc-blog-home article:not(.sticky) .spnc-entry-title a:hover {
    color: #2563eb !important;
}

/* Metadados (Data e Autor) */
.spnc-entry-meta {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 8px !important;
}

/* 7. Barra Lateral (Sidebar) & Widgets */
.spnc-sidebar .widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 22px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04) !important;
}

.spnc-sidebar .widget-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #2563eb !important;
    padding-bottom: 8px !important;
    margin-bottom: 18px !important;
}

/* 8. Rodapé Moderno e Minimalista */
footer.spnc-footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e293b !important;
    padding-top: 40px !important;
}