:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #1e40af 100%);
}

:root[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --background: #111827;
    --background-light: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    z-index: 1005;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-toggle i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .theme-toggle span {
        display: none;
    }
}

.noticia-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.noticia-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.noticia-categoria {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.noticia-titulo {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: var(--shadow-sm);
    position: relative;
    padding-bottom: 1rem;
}

.noticia-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.noticia-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.noticia-meta-top span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-meta-top i {
    color: var(--primary-color);
}

.noticia-imagem {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.noticia-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.noticia-imagem:hover img {
    transform: scale(1.02);
}

.conteudo {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 0 1rem;
}

.conteudo p {
    margin-bottom: 1.8rem;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

.conteudo h1,
.conteudo h2,
.conteudo h3 {
    color: var(--text-color);
    margin: 3rem 0 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.conteudo h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.conteudo h2 {
    font-size: 1.8rem;
}

.conteudo h3 {
    font-size: 1.5rem;
}

.conteudo strong {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 0.2rem;
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.2));
    border-radius: 0.2rem;
}

.conteudo em {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
}

.conteudo ul,
.conteudo ol {
    margin: 1.8rem 0;
    padding: 1.5rem 2rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.conteudo li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.conteudo blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--text-color);
    background: var(--background-light);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    box-shadow: var(--shadow-sm);
}

.conteudo a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 0.2rem;
}

.conteudo a:hover {
    border-bottom-color: var(--primary-color);
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.2));
    border-radius: 0.2rem;
}

.conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 0.8rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.conteudo img:hover {
    transform: scale(1.02);
}

.conteudo figure {
    margin: 2rem 0;
    text-align: center;
}

.conteudo figcaption {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.8rem;
    font-style: italic;
}

.conteudo table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--background-light);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.conteudo th,
.conteudo td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.conteudo th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.conteudo tr:nth-child(even) {
    background-color: rgba(79, 70, 229, 0.05);
}

.conteudo code {
    background-color: var(--background-light);
    padding: 0.3rem 0.5rem;
    border-radius: 0.3rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.conteudo pre {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.8rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.conteudo pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.noticia-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--background-light);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.noticia-meta .editor {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
}

.noticia-meta .editor img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.noticia-meta .editor img:hover {
    transform: scale(1.05);
}

.noticia-meta .editor-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticia-meta .editor-nome {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.noticia-meta .editor-descricao {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: normal;
    line-height: 1.6;
    max-width: 500px;
}

.noticia-meta .data {
    color: var(--text-muted);
    white-space: nowrap;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.compartilhar-noticia {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.compartilhar-noticia h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 12px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.share-button i {
    font-size: 1.2rem;
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button.facebook {
    background-color: #1877F2;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.linkedin {
    background-color: #0A66C2;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .noticia-container {
        padding: 1rem;
    }

    .noticia-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .noticia-categoria {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .noticia-titulo {
        font-size: 2rem;
    }

    .conteudo {
        font-size: 1rem;
        padding: 0;
    }

    .conteudo h1 {
        font-size: 1.8rem;
    }

    .conteudo h2 {
        font-size: 1.5rem;
    }

    .conteudo h3 {
        font-size: 1.3rem;
    }

    .conteudo ul,
    .conteudo ol {
        padding: 1rem 1.5rem;
    }

    .social-share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }

    .noticia-meta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .noticia-meta .editor {
        flex-direction: column;
        text-align: center;
    }

    .noticia-meta .data {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
}

header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    color: var(--text-color);
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

@media only screen and (min-width: 768px) {
    nav ul {
        margin-right: 120px

    }
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

footer {
    background-color: var(--background-light);
    color: var(--text-muted);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    /* margin-top: 1rem; */
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

