/*
Theme Name: Kadence Child - Informativo de Hoje
Theme URI: https://informativodehoje.com
Description: Tema filho otimizado para Adsense e performance
Author: Thiago Figueiredo
Author URI: https://informativodehoje.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadence-child
*/

/* ===================================
   VARIÁVEIS CSS
   =================================== */
:root {
    --primary: #2563eb;
    --accent: #f97316;
    --heading: #1f2937;
    --body: #4b5563;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
}

/* ===================================
   RESET & BASE
   =================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* ===================================
   LAYOUT
   =================================== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    padding: 0;
}

.widget {
    margin-bottom: 35px;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

/* Sticky Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* ===================================
   ANÚNCIOS ADSENSE
   =================================== */
.ad-container {
    margin: 30px auto;
    padding: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.ad-container::before {
    content: 'Publicidade';
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ===================================
   POSTS
   =================================== */
.entry-content {
    max-width: 800px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.75em;
}

/* Featured Image */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===================================
   TABELAS
   =================================== */
table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

thead {
    background: var(--primary);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: var(--bg-light);
}

/* ===================================
   BOXES DE DESTAQUE
   =================================== */
.info-box {
    padding: 25px;
    margin: 30px 0;
    background: #eff6ff;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
}

.warning-box {
    padding: 25px;
    margin: 30px 0;
    background: #fff7ed;
    border-left: 5px solid var(--accent);
    border-radius: 8px;
}

/* ===================================
   ÍNDICE (TOC)
   =================================== */
.table-of-contents {
    background: var(--bg-light);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.table-of-contents h2 {
    margin-top: 0;
    font-size: 20px;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 20px;
}

.table-of-contents li {
    margin: 10px 0;
}

/* ===================================
   BOTÕES CTA
   =================================== */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary);
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.cta-box {
    background: var(--bg-light);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    border: 2px dashed var(--primary);
    text-align: center;
}

/* ===================================
   POSTS RELACIONADOS
   =================================== */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-posts .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: #2a2a2a;
    color: #e5e7eb;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.site-footer a {
    color: #e5e7eb;
}

.site-footer a:hover {
    color: var(--accent);
}

/* ===================================
   MOBILE
   =================================== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .ad-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .widget {
        padding: 20px;
        margin-bottom: 25px;
    }
}

/* ===================================
   UTILITÁRIOS
   =================================== */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
