* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00A859;
    --dark-green: #008745;
    --light-green: #00C067;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: var(--font-size);
}

body.dark-mode {
    --bg-white: #1a1a1a;
    --bg-light: #2a2a2a;
    --text-dark: #e0e0e0;
    --text-gray: #b0b0b0;
    --border-color: #444444;
}

body.font-large {
    --font-size: 18px;
}

body.font-small {
    --font-size: 14px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.social-links,
.header-content {
    position: relative;
    z-index: 1001;
}



.logo-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 48px;
    color: white;
    font-weight: 100;
}

.site-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 auto 20px;
    max-width: 700px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: var(--dark-green);
    border: none;
    padding: 12px 24px;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #006633;
}

.menu-btn {
    background-color: var(--dark-green);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: #006633;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    padding: 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.side-menu-list {
    list-style: none;
    padding: 0;
}

.side-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.side-menu-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.side-menu-list a:hover {
    background-color: var(--bg-light);
}

.side-menu-list i {
    width: 24px;
    color: var(--primary-green);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 200px;
    background-color: var(--bg-white);
}

.article {
    margin-bottom: 40px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 12px;
}

.meta-source {
    color: var(--primary-green);
    font-weight: 700;
}

.meta-date {
    color: var(--text-gray);
}

.social-share {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-dark);
}

.share-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.accessibility-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.accessibility-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--text-dark);
    background-color: var(--bg-white);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-dark);
}

.accessibility-btn:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.video-container {
    margin-bottom: 30px;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.video-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-placeholder p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-placeholder small {
    font-size: 14px;
    opacity: 0.7;
}

.article-content {
    font-size: var(--font-size);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.article-content strong {
    font-weight: 700;
}

.article-content ul {
    margin: 20px 0 20px 30px;
    list-style: disc;
}

.article-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    margin: 25px 0;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-green);
    background-color: var(--bg-light);
    font-style: italic;
}

.article-content blockquote p {
    margin: 0;
    color: var(--text-gray);
}

.article-warning {
    background-color: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.article-warning strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.footer {
    background-color: var(--primary-green);
    padding: 25px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 18px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input, .search-btn {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-links {
        padding: 6px 15px;
        gap: 15px;
    }

    .header-content {
        padding: 15px;
    }

    .main-content {
        padding: 15px;
    }

    .article-title {
        font-size: 24px;
    }

    .social-share {
        justify-content: center;
    }
}

/* === HEADER FIXA SEM MEXER AO ROLAR === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-green);
    width: 100%;
}

/* Mantém as duas partes fixas dentro da header */
.social-links {
    background-color: var(--dark-green);
    padding: 8px 20px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.header-content {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-green);
}

/* Empurra o conteúdo da página pra baixo
   pra não ficar escondido atrás da header fixa */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-white);
}

/* Evita que o body tente rolar o header */
body {
    overflow-x: hidden;
}
