/*
Theme Name: Borum Blog
Theme URI: https://borum.finance
Author: Leonardo Godoy
Author URI: https://borum.finance
Description: Tema personalizado para blog de criptomoedas e finanças.
Version: 1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-theme
*/

/* Variáveis CSS */
:root {
    --background: #fff; /* Branco principal */
    --gray-bar: #eff1f2; /* Cinza da barra */
    --foreground: #333; /* Texto escuro */
    --card: #fff; /* Cards brancos */
    --muted-foreground: #6b7280; /* Cinza muted */
    --primary: #3b82f6; /* Azul primário */
    --primary-foreground: #fff; /* Texto sobre primary */
    --border: #e5e7eb; /* Bordas */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombras */
}

/* Estilos base */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--gray-bar);
    transition: background-color 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container{
    max-width: none;
    margin: 0;
    padding: 0 5vw;
}

.site-header.scrolled {
    background-color: #fff; /* Muda para branco ao scroll (ajuste cor se quiser cinza) */
    box-shadow: var(--shadow);
}

.logo {
    max-height: 50px; /* Ajuste tamanho do logo */
}

.main-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation a {
    margin-left: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    transition: color 0.3s ease;
}

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

/* Barra cinza full-width (hero) */
.hero-bar {
    background-color: var(--gray-bar);
    height: 600px;
    width: 100%;
    margin-top: -80px; /* Invasão para overlap com header (ajuste se precisar mais/menos) */
    padding-top: 100px; /* Espaço para header fixed */
    overflow: hidden;
}

.hero-bar-post-page{
    background-color: var(--gray-bar);
    width: 100%;
    height: 500px;
    position: absolute;
    z-index: -1;
    top: -10px;
}

.padding-sides-10{
    padding: 0 5vw;
}

/* Post principal */
.post-principal {
    width: 100%;
    background-color: #fff; /* Fundo branco */
    box-shadow: var(--shadow); /* Mantém sombra */
    margin-top: 60px;
    height: 375px;
    display: flex;
    flex-direction: row;
}

.post-principal .imagem {
    width: 50%;
    flex-shrink: 0;
}

.post-principal .imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-principal .conteudo {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Posts secundários: Flex column (imagem topo, conteúdo abaixo) */

.post-secundario {
    margin-top: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-secundario .imagem {
    flex-shrink: 0;
}

.post-secundario .imagem img {
    width: 100%;
    height: 200px; /* Altura fixa para consistência; ajuste se precisar */
    object-fit: cover;
}

.post-secundario .conteudo {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Grid de posts secundários */
.posts-grid {
    margin-top: -45px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: auto;
    margin-bottom: 50px;
    article{
	max-width: 300px;
	height: 478px;
	margin-bottom: 25px;
    }
}

/* Pagina de post */

.post{
    background-color: #fff;
}

/* Barra de compartilhamento */
.share-bar {
    position: fixed;
    top: 50%;
    left: 20px; /* Mude para 'right: 20px;' se quiser à direita */
    transform: translateY(-50%);
    background-color: #eff1f2; /* Cinza como na barra hero */
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-bar a {
    color: var(--muted-foreground);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.share-bar a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* Outros estilos (mantidos) */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: hsl(from var(--primary) h s l / 0.8);
    transform: translateY(-1px);
}

.bg-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.bg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.shadow-lg {
    box-shadow: var(--shadow);
}

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

.container {
    max-width: none !important;
    padding: 0 5vw;
    display: flex;
    justify-content: space-between;
}

.container-column{
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 0 10vw !important;
}

/* Footer e botões (mantidos) */
.site-footer {
    background-color: transparent;
    padding: 2rem 0;
    text-align: center;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: hsl(from var(--primary) h s l / 0.9);
}

.width-100{
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-bar {
        height: auto;
        padding-top: 80px;
        margin-top: -60px;
    }
    
    .post-principal {
        width: 100%;
	margin-bottom: 20px;
	margin-top: 185px;
    }

    .post-secundario{
	margin-top:0;
	width: 100%;
    }
    
    .posts-grid {
	display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
	article{
	    max-width: none;
	}
    }

    .container{
	width: auto !important;
	max-width: none !important;
    }

    .container-column{
	padding: 0 5vw !important;
    }
    
    .main-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .post{
	margin-top: 100px;
    }
    
    .main-navigation a {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
}
