/* =========================================
   Bay Rise - Core Stylesheet
   Fonts: Cinzel (Headings) & Poppins (Body)
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Poppins:wght@300;400;600&display=swap');

/* --- Variáveis Globais (Dark Mode Root) --- */
:root {
    --bg-dark: #0b0e14;
    --bento-card: #171a21;
    --bento-border: #2a2e38;
    --bento-hover: #4a5265;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #ffffff;
    --sidebar-width: 260px; /* Largura da barra lateral */
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex; /* Ativa o layout dividido */
    min-height: 100vh;
}

/* --- Tipografia --- */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin: 0;
}

/* =========================================
   ESTRUTURA SIDEBAR (header.php)
========================================= */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bento-card);
    border-right: 1px solid var(--bento-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed; /* Fixa na esquerda */
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar .logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* Ocupa o espaço central */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: var(--bg-dark);
    color: var(--accent);
}

.nav-link.active {
    background-color: var(--bento-border);
    color: var(--accent);
    font-weight: 600;
}

/* Estilização dos Símbolos (SVGs) */
.nav-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor; /* Cor do ícone segue a cor do texto */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    border-top: 1px solid var(--bento-border);
    padding-top: 20px;
}

/* =========================================
   ÁREA DE CONTEÚDO PRINCIPAL
========================================= */
.main-content {
    flex: 1; /* Ocupa o resto do espaço */
    margin-left: var(--sidebar-width); /* Empurra o conteúdo para não ficar sob a sidebar */
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Título da página atual fora do bento */
.page-header {
    margin-bottom: 30px;
}

/* --- O Sistema Bento Grid (Revisado para o novo espaço) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.card {
    background: var(--bento-card);
    border-radius: 12px;
    border: 1px solid var(--bento-border);
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--bento-hover);
}

/* Definições de spans mantidas */
.span-2x2 { grid-column: span 2; grid-row: span 2; min-height: 400px; }
.span-2x1 { grid-column: span 2; grid-row: span 1; min-height: 200px; }
.span-1x1 { grid-column: span 1; grid-row: span 1; min-height: 200px; }
.span-full { grid-column: 1 / -1; }

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: inline-block;
    font-weight: 600;
}

.card h2 { font-size: 1.4rem; margin-bottom: 8px; font-family: 'Poppins', sans-serif; font-weight: 600;}
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   RESPONSIVIDADE 
========================================= */
@media (max-width: 1024px) {
    :root { --sidebar-width: 80px; } /* Sidebar encolhe, mostra só ícones (precisa de lógica JS/CSS extra pra esconder texto) */
    .sidebar .logo { font-size: 1.2rem; }
    .nav-link span { display: none; } /* Esconde texto do menu */
    .nav-link { justify-content: center; padding: 15px; }
}

@media (max-width: 768px) {
    /* Em mobile, a sidebar teria que virar um menu hambúrguer no topo. 
       Para o MVP de hoje, vamos assumir foco em desktop/tablet. */
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .span-2x2, .span-2x1 { grid-column: span 2; }
}