/*
Theme Name: Celus11
Theme URI: https://celosapk.com
Author: CelosAPK
Description: Tema focado em notícias, otimizado para SEO e público americano. Cores: Amarelo e Preto.
Version: 1.1
Text Domain: celus11
*/

/* 1. CONFIGURAÇÕES GERAIS */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8f9fa; 
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 2. HEADER E NAVEGAÇÃO (FORÇAR AMARELO) */
.navbar, 
.site-header nav,
.bg-primary {
    background-color: #ffc107 !important; 
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Links do Menu em Preto para contraste */
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
.nav-link {
    color: #000000 !important;
    font-weight: 700 !important;
    padding: 10px 15px;
}

/* Botão Hamburguer Mobile em Preto */
.navbar-toggler {
    border-color: rgba(0,0,0,0.5) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

/* Logo */
.custom-logo-link img {
    max-height: 55px;
    width: auto;
}

/* 3. CATEGORIAS (PILLS) */
.cat-pill {
    display: inline-block;
    padding: 6px 20px;
    margin: 5px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    background: #fff;
    transition: 0.3s;
    font-weight: 600;
}
.cat-pill:hover { 
    background: #ffc107; 
    color: #000; 
    border-color: #ffc107;
}

/* 4. CARDS E CONTEÚDO */
.card-title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.card { transition: transform 0.3s; border: none !important; }
.card:hover { transform: translateY(-5px); }

/* Destaques (Top 3) */
.featured-card { height: 280px; background: #000; position: relative; }
.featured-img { height: 100%; object-fit: cover; opacity: 0.7; transition: 0.5s; }
.featured-card:hover .featured-img { transform: scale(1.05); opacity: 0.5; }
.featured-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
}

/* 5. SINGLE POST (LEITURA) */
.entry-content { font-size: 1.15rem; line-height: 1.8; color: #333; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; font-weight: 800; color: #000; }
.entry-content p { margin-bottom: 1.5rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* Tags (Badges) Corrigidas */
.post-tags .badge, 
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    border: 1px solid #000;
    padding: 8px 15px;
    margin: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}
.post-tags .badge:hover { background: #000 !important; color: #ffc107 !important; }

/* 6. AUTHOR BOX */
.author-box { border: 1px solid #e9ecef; margin-top: 40px; border-radius: 8px; background: #fff; }
.author-avatar img { border: 3px solid #ffc107; }
.author-info h4 { font-weight: 800; color: #000; }

/* 7. SIDEBAR */
.sidebar-title { 
    border-left: 5px solid #ffc107; 
    padding-left: 12px; 
    font-weight: 800; 
    text-transform: uppercase;
    font-size: 0.9rem;
}
.widget { border-radius: 8px; background: #fff; margin-bottom: 25px; }

/* 8. PAGINAÇÃO PROFISSIONAL (AMARELA) */
.pagination, .nav-links {
    display: flex !important; justify-content: center !important;
    gap: 8px !important; margin: 50px 0 !important; list-style: none !important;
}
.pagination .page-numbers, .nav-links .page-numbers {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-width: 42px !important; height: 42px !important;
    background: #fff !important; border: 1px solid #dee2e6 !important;
    border-radius: 6px !important; color: #000 !important;
    font-weight: 700 !important; text-decoration: none !important;
    transition: 0.3s !important;
}
.pagination .page-numbers:hover, .pagination .current {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

/* 9. FOOTER */
.footer-celos { background: #1a1a1a; color: #fff; padding: 40px 0; margin-top: 60px; }
.footer-celos a { color: #ffc107; text-decoration: none; font-weight: 700; }

/* 10. MOBILE RESET & FIXES */
.row { margin-right: 0 !important; margin-left: 0 !important; }
.container { overflow: hidden; }

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffc107;
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 767px) {
    article.bg-white { padding: 20px !important; }
    .featured-card { height: 220px; }
    .display-5 { font-size: 1.8rem; }
}

/* FORÇAR AMARELO EM TODOS OS SELETORES POSSÍVEIS */
.navbar, 
.bg-primary, 
.site-header nav,
div[style*="background-color: rgb(0, 123, 255)"] {
    background-color: #ffc107 !important;
}

/* GARANTIR TEXTO PRETO NO MENU */
.navbar-nav .nav-link,
.navbar-brand,
.navbar-brand span {
    color: #000000 !important;
}

/* CORREÇÃO DAS TAGS (BADGES) */
.post-tags .badge, 
.badge.bg-secondary,
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* FORÇANDO COR DAS TAGS - REGRAS DE ALTA PRIORIDADE */
.entry-content .post-tags a, 
.post-tags a, 
article .post-tags a {
    background-color: #ffc107 !important; /* Fundo Amarelo */
    color: #000000 !important;           /* Texto Preto (Forçado) */
    border: 1px solid #000 !important;   /* Borda Preta */
    padding: 6px 12px !important;
    margin: 4px !important;
    font-weight: 800 !important;         /* Negrito pesado */
    text-transform: uppercase !important;
    font-size: 11px !important;
    border-radius: 4px !important;
    text-decoration: none !important;    /* Remove o sublinhado azul */
    display: inline-block !important;
}

/* Efeito ao passar o mouse para garantir que não volte a ficar azul */
.post-tags a:hover {
    background-color: #000000 !important; 
    color: #ffc107 !important;
    text-decoration: none !important;
}

/* PAGINAÇÃO PROFISSIONAL - CELUS11 */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important; /* Permite quebrar linha no celular se houver muitos números */
    gap: 8px !important;
    margin: 40px 0 !important;
    list-style: none !important;
    padding: 0 !important;
}

/* Estilo Base dos Números e Textos (Anterior/Próximo) */
.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

/* Efeito ao passar o mouse */
.pagination .page-numbers:hover {
    background-color: #ffc107 !important; /* Amarelo do tema */
    border-color: #ffc107 !important;
    color: #000 !important;
    transform: translateY(-2px);
}

/* Estilo da Página Atual */
.pagination .current {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    cursor: default !important;
}

/* Ajuste específico para Anterior e Próximo no PC */
.pagination .prev, .pagination .next {
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 1px;
}

/* Estilo dos pontos (...) */
.pagination .dots {
    border: none !important;
    background: transparent !important;
    color: #999 !important;
    min-width: 20px !important;
}

/* AJUSTE PARA MOBILE (Garante que não quebre o layout) */
@media (max-width: 767px) {
    .pagination .page-numbers {
        min-width: 35px !important;
        height: 35px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
    }
}

/* Garante que o ícone do menu sanduíche seja visível no fundo amarelo */
.navbar-toggler {
    border-color: rgba(0,0,0,0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}