/*
Theme Name: Portal Notícias Pro
Description: Template profissional para portal de notícias otimizado para aprovação no AdSense
Author: Seu Nome
Version: 1.0
License: GPL v2 or later
Text Domain: portal-noticias-pro
*/

/* ===============================================
RESET E BASE
=============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--cor-primaria, #2563eb);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cor-primaria-escura, #1d4ed8);
}

/* ===============================================
VARIÁVEIS CSS DINÂMICAS
=============================================== */
:root {
    --cor-primaria: #2563eb;
    --cor-primaria-escura: #1d4ed8;
    --cor-primaria-clara: #3b82f6;
    --cor-secundaria: #64748b;
    --cor-acento: #2563eb;
    --cor-destaque: #dc2626;
    --cor-texto: #1a1a1a;
    --cor-texto-claro: #64748b;
    --cor-fundo: #ffffff;
    --cor-fundo-secao: #f8fafc;
    --cor-borda: #e2e8f0;
    --cor-sucesso: #10b981;
    --cor-aviso: #f59e0b;
    --cor-erro: #ef4444;
    --sombra-leve: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --sombra-media: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-forte: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --raio-borda: 8px;
    --raio-borda-pequeno: 4px;
    --espacamento-container: 1.25rem;
}

/* ===============================================
UTILITÁRIOS GERAIS
=============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espacamento-container);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--espacamento-container);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ===============================================
HEADER
=============================================== */
.site-header {
    background: var(--cor-primaria);
    border-bottom: 1px solid var(--cor-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra-leve);
}

.header-top {
    background: var(--cor-fundo-secao);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cor-borda);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
}

.header-info {
    display: flex;
    gap: 1.5rem;
}

.header-social {
    display: flex;
    gap: 0.75rem;
}

.header-social a {
    color: var(--cor-texto-claro);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: var(--cor-primaria);
}

.header-main {
    padding: 1rem 0;
    background: var(--cor-primaria);
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* ===============================================
NAVEGAÇÃO
=============================================== */
.main-navigation {
    background: var(--cor-primaria);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
    margin: 0;
}

.nav-menu a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background-color: var(--cor-primaria-escura);
    color: white;
}

.menu-toggle {
    display: none;
    background: var(--cor-primaria);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.125rem;
}

/* ===============================================
HERO SECTION
=============================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-primaria-escura) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===============================================
GRID DE NOTÍCIAS
=============================================== */
.noticias-section {
    padding: 3rem 0;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.noticia-card {
    background: white;
    border-radius: var(--raio-borda);
    overflow: hidden;
    box-shadow: var(--sombra-leve);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.noticia-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-category {
    display: inline-block;
    background: var(--cor-primaria);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--raio-borda-pequeno);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.noticia-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--cor-texto);
}

.noticia-excerpt {
    color: var(--cor-texto-claro);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
}

.noticia-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===============================================
ELEMENTOS DE DESTAQUE (ÚLTIMA HORA, TAGS)
=============================================== */
.breaking-news,
.ultima-hora,
.breaking-badge,
.hot-tag,
.featured-tag {
    background-color: var(--cor-destaque) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-block;
}

.category-tag,
.post-category,
.sem-categoria,
.trending,
.badge-category,
.tag-trending,
.category-badge {
    background-color: var(--cor-destaque) !important;
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
}

.trending-tag,
.sem-categoria-tag,
.categoria-destaque,
.post-category.destaque,
.category-tag.breaking {
    background-color: var(--cor-destaque) !important;
    color: white !important;
}

/* Hover effects para tags */
.category-tag:hover,
.post-category:hover,
.trending:hover,
.sem-categoria:hover {
    background-color: var(--cor-primaria-escura) !important;
    transform: scale(1.05);
}

/* ===============================================
NEWSLETTER
=============================================== */
.newsletter-section {
    background: var(--cor-primaria);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: var(--raio-borda);
    font-size: 1rem;
}

.newsletter-button {
    background: white;
    color: var(--cor-primaria);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--raio-borda);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: var(--cor-acento);
    color: white;
}

/* ===============================================
FOOTER
=============================================== */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===============================================
BOTÕES E FORMULÁRIOS
=============================================== */
.btn-primary,
.button-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background: var(--cor-acento);
    border-color: var(--cor-acento);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--raio-borda);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.button-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--cor-primaria-escura);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

/* ===============================================
RESPONSIVIDADE
=============================================== */
@media (max-width: 768px) {
    :root {
        --espacamento-container: 1rem;
    }

    .header-top {
        display: none;
    }

    .header-main-content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cor-primaria);
        box-shadow: var(--sombra-media);
        gap: 0.25rem;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: var(--raio-borda-pequeno);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* ===============================================
ANIMAÇÕES E TRANSIÇÕES
=============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===============================================
CORES DINÂMICAS - TAILWIND OVERRIDES
=============================================== */
.bg-blue-500,
.bg-blue-600 { 
    background-color: var(--cor-primaria) !important; 
}

.bg-blue-700 { 
    background-color: var(--cor-primaria-escura) !important; 
}

.bg-blue-800 { 
    background-color: var(--cor-acento) !important; 
}

.bg-red-500,
.bg-red-600 {
    background-color: var(--cor-destaque) !important;
}

.text-blue-500,
.text-blue-600 { 
    color: var(--cor-primaria) !important; 
}

.text-blue-700 { 
    color: var(--cor-primaria-escura) !important; 
}

.text-red-500,
.text-red-600 {
    color: var(--cor-destaque) !important;
}

.border-blue-500,
.border-blue-600 { 
    border-color: var(--cor-primaria) !important; 
}

.hover\:bg-blue-700:hover {
    background-color: var(--cor-primaria-escura) !important;
}

/* ===============================================
ADMIN - PÁGINA DE CORES
=============================================== */
.portal-cores-admin .portal-cores-container {
    max-width: 800px;
}

.portal-cores-admin .card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.portal-cores-admin .submit-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===============================================
ELEMENTOS OCULTOS (SEM FÓRUM)
=============================================== */
.hide-forum,
.hidden-forum,
.forum-section,
.discussoes-comunidade,
.forum-widget,
[class*="forum-"],
[id*="forum"],
[class*="discussao"],
[class*="discussoes"],
.post-type-forum_discussao,
.post-type-forum_topico,
a[href*="/forum"],
a[href*="forum.php"],
a[href*="discussao"],
a[href*="discussoes"],
.menu-item a[href*="forum"],
.comments-section.forum-style,
.discussion-area {
    display: none !important;
}

/* Garantir que elementos de discussão não apareçam */
*[title*="discussão"],
*[title*="fórum"],
*[alt*="discussão"],
*[alt*="fórum"] {
    display: none !important;
}

/* ===============================================
TRANSIÇÕES GLOBAIS
=============================================== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}