/* RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

/* CABEÇALHO */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: #1abc9c;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}

/* BANNER PRINCIPAL */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://unsplash.com') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* LAYOUT PRINCIPAL */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

/* ÁREA DOS POSTS */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.post-title {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-text {
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    background-color: #1abc9c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.read-more:hover {
    background-color: #16a085;
}

/* BARRA LATERAL (SIDEBAR) */
sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about-me img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.categories ul {
    list-style: none;
}

.categories ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.categories ul li a:hover {
    color: #1abc9c;
}

/* RODAPÉ */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul li {
        margin: 0 0.75rem;
    }
}
