:root {
    --bg-color: #d9e2e1;
    --primary: #009688;
    --primary-dark: #00796b;
    --dark: #111418;
    --dark-grey: #1a1e23;
    --text-main: #111418;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --border-radius: 12px;
    --border-width: 2px;
    --shadow-offset: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* Brutalism Utility Classes */
.brutal-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brutal-title {
    background-color: var(--primary);
    color: var(--dark);
    border: var(--border-width) solid var(--dark);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    font-weight: 800;
}

/* Header */
.site-header {
    padding-top: 20px;
    margin-bottom: 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.spacer {
    flex: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.logo-container .logo {
    width: 40px;
    height: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark);
}

.header-icons {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.icon-btn {
    background-color: var(--primary);
    border: var(--border-width) solid var(--dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--dark);
    transition: all 0.2s;
}

.icon-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--dark);
}

.icon-btn img {
    width: 20px;
    height: 20px;
}

.main-nav {
    background-color: var(--primary);
    border: var(--border-width) solid var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Tags */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    justify-content: center;
}

.tag {
    background-color: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--dark);
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    margin-bottom: 50px;
}

.hero-slider {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--dark);
    overflow: hidden;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark);
    line-height: 1.2;
}

.meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.meta .comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta img {
    width: 14px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: var(--white);
    border: var(--border-width) solid var(--dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn img {
    width: 20px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: var(--border-width) solid var(--dark);
}

.card-body {
    padding: 20px;
}

.card-body h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark);
}

.card-body .meta {
    justify-content: flex-start;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 14px;
    color: #444;
}

/* Você Perdeu Section */
.missed-section {
    margin-bottom: 50px;
}

.missed-container {
    padding: 20px;
}

.missed-header h3 {
    background-color: var(--primary);
    color: var(--dark);
    border: var(--border-width) solid var(--dark);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.missed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.missed-item {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.missed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: filter 0.3s;
}

.missed-item:hover img {
    filter: brightness(0.7);
}

.missed-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 2;
}

.missed-content .tags {
    justify-content: flex-start;
    margin-bottom: 5px;
}

.missed-content h4 {
    color: var(--white);
    font-size: 14px;
    line-height: 1.2;
}

/* Partners */
.partners-section {
    text-align: center;
    margin-bottom: 50px;
}

.partners-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.partner-logo {
    max-width: 200px;
    margin-bottom: 10px;
    border: var(--border-width) solid var(--dark);
}

.partners-section p {
    font-size: 12px;
    color: #666;
}

/* Welcome Text */
.welcome-text {
    margin-bottom: 60px;
}

.welcome-box {
    padding: 40px;
    text-align: center;
    background-color: #fff;
}

.welcome-box h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.welcome-box p {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    right: -400px; /* Hidden initially */
    width: 320px;
    z-index: 1000;
    padding: 20px;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    right: 20px;
}

.cookie-content h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.cookie-content p {
    font-size: 13px;
    margin-bottom: 15px;
    color: #444;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 60px 0 20px;
    border-top: 5px solid var(--primary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
}

.footer-title {
    margin-bottom: 20px;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.post-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
}

.post-info span {
    font-size: 11px;
    color: #888;
}

.recent-posts img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 30px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.disclaimer p {
    font-size: 12px;
    color: #777;
    max-width: 800px;
    margin: 0 auto;
}

.copyright p {
    font-size: 12px;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .missed-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .cookie-modal {
        width: calc(100% - 40px);
    }
}

/* Inner page styles */
/* --- Estilos da Nova Página Interna --- */

.single-article {
    max-width: 850px;
    margin: 0 auto;
    padding-top: 20px;
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #888;
    margin: 0 8px;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.article-main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border: var(--border-width) solid var(--dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
    margin-bottom: 40px;
}

/* Oglawlenie (TOC) */
.article-toc {
    padding: 25px;
    margin-bottom: 40px;
    background-color: #e0eceb;
}

.article-toc h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 4px;
}

.article-toc ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.article-toc ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.article-toc ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.article-toc ul li a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.article-toc ul li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Textos do Artigo (h1-h6, p, span) */
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: var(--dark);
    margin: 40px 0 15px;
    line-height: 1.3;
    font-weight: 800;
}

.article-content h2 {
    font-size: 32px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 26px;
}

.article-content h4 {
    font-size: 22px;
}

.article-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #2c3338;
    line-height: 1.8;
}

.article-content span {
    background-color: rgba(0, 150, 136, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Imagens Adaptáveis no Artigo */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border: var(--border-width) solid var(--dark);
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* Listas (ul, ol) */
.article-content ul, 
.article-content ol {
    margin: 0 0 30px 20px;
    padding-left: 20px;
}

.article-content ul li, 
.article-content ol li {
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3338;
    line-height: 1.6;
}

.article-content ul {
    list-style-type: square;
    color: var(--primary);
}

.article-content ol {
    list-style-type: decimal;
    font-weight: bold;
    color: var(--dark);
}

.article-content ol span, 
.article-content ul span {
    background: none;
    padding: 0;
    color: var(--primary-dark);
    font-weight: 800;
}

/* Tabelas */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 40px;
    background-color: var(--white);
    border: var(--border-width) solid var(--dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
    border-radius: 8px;
    overflow: hidden;
}

.article-content th, 
.article-content td {
    border: 1px solid var(--dark);
    padding: 15px;
    text-align: left;
    font-size: 16px;
}

.article-content th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content tr:nth-child(even) {
    background-color: rgba(0, 150, 136, 0.05);
}

.article-content tr:hover td {
    background-color: rgba(0, 150, 136, 0.1);
}

/* Formulário de Comentários / Contato */
.comment-form-container {
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.comment-form-container h3 {
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--dark);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 800;
    font-size: 14px;
    color: var(--dark);
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: var(--border-width) solid var(--dark);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    background-color: var(--white);
    box-shadow: 4px 4px 0px var(--primary);
    transform: translateY(-2px);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: var(--border-width) solid var(--dark);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px var(--dark);
    transition: all 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--dark);
    background-color: var(--primary-dark);
}

/* Bloco de Perlinckovka (Artigos Relacionados) */
.related-articles {
    margin-top: 60px;
    margin-bottom: 80px;
}

.related-header h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
}

/* Responsividade Adicional para a Página Interna */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-content h2 {
        font-size: 26px;
    }
    
    .article-content p, 
    .article-content ul li, 
    .article-content ol li {
        font-size: 16px;
    }
    
    .comment-form-container {
        padding: 25px;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}