/*
Theme Name: Saúde Viva Blog
*/

/* Variables */
:root {
    --color-primary: #1E88E5;
    --color-secondary: #0D47A1;
    --color-light: #E3F2FD;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #F9FAFB;
    --font-base: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
}

.menu-toggle {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-secondary);
    text-decoration: none;
}

/* Layout Grid */
.main-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Sidebar right */
    gap: 2rem;
    padding: 2rem 1rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-card-content {
    padding: 1.5rem;
}

/* Single Post */
.entry-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

/* Sidebar */
.widget {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--color-light);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-bottom-inner {
    border-top: 1px solid #eee;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    /* Add JS toggle logic */
    .menu-toggle {
        display: block;
    }

    .main-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Monetization */
.ad-slot {
    background: #f0f0f0;
    margin: 1.5rem 0;
    min-height: 90px;
    text-align: center;
}