/* =======================================
   1. Variáveis e Reset
   ======================================= */
:root {
    --background-light: #f9f9f9;  /* Fundo principal claro */
    --white: #ffffff;
    --text-dark: #222222;       /* Títulos e texto forte */
    --text-light: #555555;      /* Texto de parágrafo */
    --border-color: #e0e0e0;
    --primary-color: #2ECC71;    /* Verde do seu logo */
    --secondary-color: #3498db;  /* Azul do seu logo */
    --font-body: 'Roboto', sans-serif;
    --font-header: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-light);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--text-dark);
    font-weight: 800;
}

/* =======================================
   2. Layout Principal (3 Colunas)
   ======================================= */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 25px;
}

/* =======================================
   3. Cabeçalho (Header)
   ======================================= */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; 
    width: auto;
}

.main-nav a {
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 20px;
    font-size: 1.1em;
}
.main-nav a:hover {
    color: var(--primary-color);
}

/* =======================================
   4. Monetização (Slots de Anúncio)
   ======================================= */
.ad-placeholder {
    background-color: #eeeeee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    border: 1px dashed var(--border-color);
}

.ad-leaderboard {
    width: 728px;
    height: 90px;
    margin: 10px auto;
}

.ad-in-content {
    width: 300px;
    height: 250px;
    margin: 30px auto;
}

.ad-sticky-sidebar .ad-placeholder {
    width: 300px;
    height: 600px;
}

/* =======================================
   5. Sidebars
   ======================================= */

.sidebar-left h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.league-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 5px;
}
.league-nav a.active, .league-nav a:hover {
    background-color: #e6f7eb; 
    color: var(--primary-color);
}

.ad-sticky-sidebar {
    position: sticky;
    top: 20px; 
}

.widget-tool {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.widget-tool h4 {
    margin-bottom: 15px;
}
.widget-tool select, .widget-tool button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.widget-tool button {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* =======================================
   6. Conteúdo Principal
   ======================================= */
.main-content {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
}

.category-tag {
    color: var(--primary-color);
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
}

/* Artigo em Destaque */
.featured-article-link {
    text-decoration: none;
    color: inherit;
}
.featured-article {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}
.featured-article img {
    border-radius: 8px;
}
.featured-article h2 {
    font-size: 2em;
    line-height: 1.2;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Grid de Artigos */
.latest-analysis {
    margin-top: 25px;
}
.latest-analysis h3 {
    margin-bottom: 20px;
}
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.article-card-link {
    text-decoration: none;
    color: inherit;
}
.article-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-card h4 {
    padding: 15px;
    font-size: 1.1em;
    line-height: 1.3;
}
.article-card .category-tag {
    padding: 15px 15px 0 15px;
    display: block;
}

/* =======================================
   7. Footer
   ======================================= */
.main-footer {
    text-align: center;
    padding: 30px;
    background-color: var(--text-dark);
    color: #aaa;
    margin-top: 30px;
}
.main-footer a {
    color: var(--white);
}

/* =======================================
   8. Responsividade (Mobile)
   ======================================= */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        display: none;
    }

    .sidebar-right {
        grid-row: 2;
    }

    .ad-sticky-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .ad-leaderboard {
        width: 300px;
        height: 100px;
    }
}

/* ===== Blog post images (added by fix/blog-images) ===== */
.blog-post .blog-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background-color: #2c3e50;
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 10px;
}
@media (max-width: 480px) {
  .blog-post .blog-image { height: 120px; }
}
