/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

header h1 a {
    color: #1877f2;
    text-decoration: none;
}

header h1 a:hover {
    color: #0d5aa7;
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #1877f2;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

article {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #1877f2;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: #1877f2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Links */
a {
    color: #1877f2;
    text-decoration: underline;
}

a:hover {
    color: #0d5aa7;
}

/* Listas */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Código inline */
code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Banners AdSense */
.ad-banner {
    margin: 2rem auto;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
}

.ad-banner::before {
    content: "Espaço para Google AdSense";
    position: absolute;
    font-weight: bold;
}

/* Tamanhos específicos dos banners AdSense */
.top-banner, .bottom-banner {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.mid-article-banner {
    width: 300px;
    height: 250px;
    float: right;
    margin: 1rem 0 1rem 2rem;
}

.end-article-banner {
    width: 336px;
    height: 280px;
    margin: 2rem auto;
}

/* Seção do YouTube Shorts */
.youtube-shorts-section {
    background-color: #f8f9fa;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid #1877f2;
}

.video-placeholder {
    background-color: #e9ecef;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6c757d;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    color: #1877f2;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    nav a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    article {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Ajustes dos banners AdSense para mobile */
    .top-banner, .bottom-banner {
        width: 320px;
        height: 50px;
    }
    
    .mid-article-banner {
        width: 300px;
        height: 250px;
        float: none;
        margin: 1rem auto;
    }
    
    .end-article-banner {
        width: 320px;
        height: 50px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    footer ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    article {
        padding: 1rem;
        margin: 0 5px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
    
    .youtube-shorts-section {
        padding: 1.5rem;
    }
    
    .video-placeholder {
        height: 150px;
    }
}

/* Otimizações para performance */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states para acessibilidade */
a:focus, button:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ad-banner, nav, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}

