/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.7;
    padding-top: 8rem;
}

/* Cabeçalho */
header {
    font-size: 32px;
    font-weight: bold;
    background: #1f2937;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Navegação */
nav {
    background: #374151;
    padding: 0.75rem 1rem;
    text-align: center;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #e5e7eb;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #3b82f6;
}

/* Estrutura */
.wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.container {
    flex: 3;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Título do artigo */
.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Conteúdo */
.article-content p,
.article-content ul, ol {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #374151;
}

.article-content ul, ol {
    padding-left: 1.5rem;
    list-style: disc;
}

/* Tags */
.tags {
    margin-top: 2rem;
}

.tags a {
    display: inline-block;
    margin: 0.3rem 0.5rem 0 0;
    background: #e5e7eb;
    color: #374151;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.tags a:hover {
    background: #3b82f6;
    color: #fff;
}

/* Link voltar */
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2563eb;
}

/* Sidebar */
aside.sidebar {
    flex: 1;
    margin-left: 1rem;
    position: sticky;
    top: 8rem;
    align-self: flex-start;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #111827;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.sidebar ul li a:hover {
    background: #3b82f6;
    color: #fff;
}

/* Callout */
.sidebar-callout {
    margin-top: 2rem;
    background: #3b82f6;
    color: #fff;
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
}

.sidebar-callout h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.sidebar-callout strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.6rem;
}

.sidebar-callout p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.callout-btn {
    display: inline-block;
    background: #fff;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.callout-btn:hover {
    background: #86b7fe;
    color: #fff;
}

.call-to-action {
    margin-top: 30px;
    padding: 20px;
    background-color: #f2f2f2;
    text-align: center;
}

.call-to-action h2{
    color: #2a2a2a;
}

.call-to-action a{
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background-color: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 1rem;
    background: #1f2937;
    color: #f3f4f6;
    margin-top: 3rem;
    font-size: 0.95rem;
}

@media (max-width: 460px) {
    .wrapper {
        flex-direction: column;
    }

    aside.sidebar {
        margin-left: 0;
        margin-top: 2rem;
    }

}

/* Responsivo */
@media (max-width: 360px) {
    .wrapper {
        padding: 4rem 1rem 2rem;
    }

    nav {
        top: 130px;
    }

    /*nav a {
        display: block;
        margin: 0.5rem 0;
    }*/

}
