/* ========================================
   Tema Notícias TikTok - Estilos Principais
   ======================================== */

/* Reset e Variáveis - Estilo TikTok */
:root {
    --bg-primary: #000000;
    --bg-secondary: #161823;
    --bg-card: #161823;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-light: rgba(255, 255, 255, 0.6);
    --accent-color: #fe2c55;
    --link-color: #4fc3f7;
    --link-hover: #81d4fa;
    --link-visited: #b3e5fc;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Header - Estilo TikTok */
.site-header {
    background-color: rgba(22, 24, 35, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    width: 100%;
    min-height: 60px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
}

/* Menu Hambúrguer à Esquerda */
.menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s;
    z-index: 10;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Logo Centralizado */
.site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.site-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-title a:hover {
    opacity: 0.8;
}

/* Header Actions (Tema e Busca) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle Tema Dark/Light */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    position: relative;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.theme-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

body.light-theme .theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.light-theme .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* Busca à Direita */
.search-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s;
    z-index: 10;
}

.search-toggle:hover {
    opacity: 0.8;
}

.search-toggle svg {
    width: 24px;
    height: 24px;
}

/* Menu Navegação - Estilo TikTok */
.main-navigation {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 240px;
    height: calc(100vh - 60px);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: left 0.3s ease;
    z-index: 90;
    overflow-y: auto;
    overflow-x: hidden;
}

.main-navigation.active {
    left: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-bottom: 0.5rem;
}

.main-navigation a {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s;
    font-weight: 400;
    font-size: 1rem;
    border-left: 3px solid transparent;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-color);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

/* Overlay quando menu está aberto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 85;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Formulário de Busca - Estilo TikTok */
.search-form-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 95;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    background-color: rgba(22, 24, 35, 0.98);
    visibility: hidden;
    opacity: 0;
}

.search-form-container.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 92px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.12);
}

.search-field::placeholder {
    color: var(--text-light);
}

.search-submit,
.search-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s;
}

.search-submit:hover,
.search-close:hover {
    opacity: 0.8;
}

.search-submit svg,
.search-close svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.site-main {
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Feed TikTok - Layout Vertical Imersivo */
.tiktok-feed {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Ajuste quando menu está aberto */
body.menu-open .tiktok-feed {
    margin-left: 0;
}

@media (min-width: 769px) {
    .tiktok-feed {
        max-width: 692px;
        margin: 0 auto;
    }
}

/* Cards de Notícias - Estilo TikTok Vertical */
.tiktok-card {
    background-color: var(--bg-card);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Imagem do Card - Estilo TikTok (Abaixo do Título) */
.card-image {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-primary);
    position: relative;
    margin: 1rem 0 1.5rem 0;
    border-radius: 12px;
}

.card-image a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Conteúdo do Card - Estilo TikTok */
.card-content {
    padding: 1rem 1.5rem 2rem;
    background-color: var(--bg-card);
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    order: 1;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.card-title a:hover {
    opacity: 0.85;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.read-more:hover {
    color: var(--link-hover);
    opacity: 1;
}

/* Estado Vazio */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-posts p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Infinite Scroll Loader */
.infinite-scroll-loader {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-loader p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

.infinite-scroll-end {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.infinite-scroll-end p {
    font-size: 0.9375rem;
    margin: 0;
}

#infinite-scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* Paginação - Ocultar na home e arquivos (usando infinite scroll) */
.tiktok-feed ~ .pagination {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid var(--border-color);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
    color: #ffffff;
}

.pagination .page-numbers.current {
    cursor: default;
}

/* Filtros de Região */
.region-filters {
    padding: 1rem 1.5rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 60px; /* Abaixo do header */
    z-index: 90;
    backdrop-filter: blur(10px);
}

.region-filters-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 0.25rem;
}

.region-filters-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.region-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.region-filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.region-filter-btn.active {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    font-weight: 600;
}

.region-filter-btn.active:hover {
    background-color: #ff3d6b;
    border-color: #ff3d6b;
}

.region-filter-btn:not(a) {
    cursor: default;
    opacity: 0.6;
}

/* Archive Header */
.archive-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.archive-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .archive-header {
        padding: 1.5rem 1rem 1rem;
    }

    .archive-title {
        font-size: 1.5rem;
    }
}

/* Footer - Estilo TikTok */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.site-info {
    color: var(--text-light);
    font-size: 0.8125rem;
    margin: 0;
}

/* Responsivo - Mobile First */
@media (max-width: 768px) {
    .header-container {
        padding: 0.875rem 1rem;
    }

    .site-title {
        font-size: 1.125rem;
    }

    .site-logo img {
        max-height: 35px;
    }

    .main-navigation {
        width: 240px;
    }

    .card-content {
        padding: 1rem 1.25rem 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .region-filters {
        padding: 0.875rem 1rem;
    }

    .region-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 769px) {
    .card-image {
        border-radius: 16px;
    }
    
    .card-image a,
    .card-image img {
        border-radius: 16px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Links Globais - Estilo TikTok */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

a:visited {
    color: var(--link-visited);
}

a:active {
    color: var(--link-hover);
    opacity: 0.9;
}

/* Links em conteúdo de texto */
.entry-content a,
.card-excerpt a,
.content-wrapper a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: rgba(79, 195, 247, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.content-wrapper a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

.entry-content a:visited,
.card-excerpt a:visited,
.content-wrapper a:visited {
    color: var(--link-visited);
}

/* Texto mais suave */
.entry-content,
.card-excerpt,
.content-wrapper {
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.entry-content p,
.card-excerpt p,
.content-wrapper p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

/* Single Post - Página Individual (estilos antigos removidos, usando estilos G1 abaixo) */

.entry-author .meta-label {
    color: var(--text-light);
    margin-right: 0.25rem;
}

.entry-author .author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.entry-date-time {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

.entry-date-time .date-time {
    color: var(--text-secondary);
}

.entry-date-time .updated-time {
    color: var(--text-light);
    margin-left: 0.25rem;
}

.entry-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botões de Compartilhar */
.entry-share {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #ffffff;
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-btn span {
    font-size: 0.875rem;
}

.share-facebook {
    background-color: #1877f2;
}

.share-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.share-whatsapp {
    background-color: #25d366;
}

.share-whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.share-generic {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.share-generic:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.share-generic svg {
    stroke: currentColor;
}

    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

.entry-featured-image {
    width: 100%;
    margin: 0 0 2rem 0;
    overflow: hidden;
    border-radius: 12px;
}

.entry-featured-image img.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.entry-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-links {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.page-links a {
    color: var(--link-color);
    text-decoration: none;
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.page-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--link-hover);
}

@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 1.5rem 1rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-featured-image {
        border-radius: 8px;
    }

    .entry-featured-image img.featured-image {
        border-radius: 8px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-share {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .share-btn {
        flex: 1;
        min-width: auto;
        max-width: none;
        padding: 0.625rem;
        justify-content: center;
    }

    .share-btn span {
        display: none;
    }

    /* Remover foto do autor no mobile */
    .entry-author img,
    .entry-author .avatar,
    .entry-author img.avatar,
    .author-box img,
    .author-box .avatar,
    .author-box img.avatar,
    .author-avatar img,
    .author-avatar .avatar,
    .author-avatar img.avatar,
    article .avatar,
    .single-post .avatar,
    .entry-content .avatar,
    .about-author img,
    .about-author .avatar,
    .about-author img.avatar {
        display: none !important;
    }

    /* Ajustar seção About The Author no mobile */
    .about-author,
    .author-box,
    .author-bio,
    .author-info,
    .wp-post-author {
        display: block !important;
        padding: 1rem !important;
        margin: 2rem 0 !important;
    }

    .about-author > *,
    .author-box > *,
    .author-bio > *,
    .author-info > *,
    .wp-post-author > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .about-author img,
    .author-box img,
    .author-bio img,
    .author-info img,
    .wp-post-author img {
        display: none !important;
    }

    .about-author .author-name,
    .author-box .author-name,
    .author-bio .author-name,
    .author-info .author-name,
    .wp-post-author .author-name {
        margin-top: 0 !important;
        margin-bottom: 0.75rem !important;
    }

    .about-author .author-description,
    .author-box .author-description,
    .author-bio .author-description,
    .author-info .author-description,
    .wp-post-author .author-description {
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 769px) {
    .entry-featured-image {
        border-radius: 16px;
    }

    .entry-featured-image img.featured-image {
        border-radius: 16px;
    }
}

/* Página de Contato */
.contact-page-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.contact-container {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
}

.contact-header {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-container {
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-label .optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit-btn:hover:not(:disabled) {
    background-color: #25f4ee;
    transform: translateY(-1px);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-required-note {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.form-required-note .required {
    color: #ef4444;
}

.contact-messages {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.contact-messages.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.contact-messages.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Light Theme - Base */
body.light-theme {
    background-color: #ffffff;
}

body.light-theme .g1-content-wrapper {
    background-color: #ffffff;
}

/* Light Theme - Contact Form */
body.light-theme .contact-container {
    background-color: var(--light-bg-card);
}

body.light-theme .contact-title {
    color: var(--text-primary);
}

body.light-theme .form-input,
body.light-theme .form-select,
body.light-theme .form-textarea {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: var(--text-primary);
}

body.light-theme .form-input:focus,
body.light-theme .form-select:focus,
body.light-theme .form-textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
}

/* Mobile - Contact Form */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 1.5rem 1rem;
    }

    .contact-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-subtitle {
        font-size: 0.9375rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   Layout Estilo G1
   ======================================== */

/* Wrapper Principal G1 */
.g1-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.g1-main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Seção de Destaques - Grid G1 - Full Width */
.g1-featured-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.g1-featured-main {
    grid-column: 1;
    grid-row: 1 / 3;
}

.g1-featured-side {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards de Destaque */
.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.g1-featured-main .featured-card {
    min-height: 650px;
}

.g1-featured-side .featured-card {
    min-height: 315px;
}

.featured-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.featured-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-thumbnail {
    transform: scale(1.05);
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

/* Texto overlay no topo esquerdo */
.featured-card-overlay-text {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    line-height: 1.3;
}

.g1-featured-side .featured-card-overlay-text {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
    top: 0.75rem;
    left: 0.75rem;
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.g1-featured-side .featured-card-content {
    padding: 1.5rem;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.g1-featured-main .featured-card-title {
    font-size: 2.25rem;
    line-height: 1.2;
}

.g1-featured-side .featured-card-title {
    font-size: 1.125rem;
    line-height: 1.3;
}

/* Header de Arquivo G1 */
.g1-archive-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.g1-archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.g1-archive-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Lista de Posts G1 */
.g1-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Card G1 - Layout Horizontal */
.g1-card {
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0;
    transition: background-color 0.2s ease;
}

.g1-card:hover {
    background-color: #f9f9f9;
}

.g1-card-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Imagem do Card G1 */
.g1-card-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
}

.g1-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.g1-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.g1-card:hover .g1-thumbnail {
    transform: scale(1.05);
}

/* Conteúdo do Card G1 */
.g1-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Meta do Card (Categoria e Tempo) */
.g1-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.g1-card-category {
    font-weight: 600;
}

.g1-card-category a {
    color: #c4170c;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.g1-card-category a:hover {
    text-decoration: underline;
}

.g1-card-time {
    color: #666;
}

/* Título do Card G1 */
.g1-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.g1-card-title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.g1-card-title a:hover {
    color: #c4170c;
}

/* Resumo do Card G1 */
.g1-card-excerpt {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Single Post - Estilo G1 */
.g1-content-wrapper .g1-main-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.single-post {
    background-color: #fff;
    border-radius: 0;
    padding: 0;
}

.entry-header {
    margin-bottom: 2rem;
}

/* Título Principal - Estilo G1 */
.entry-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

/* Subtítulo/Resumo - Estilo G1 */
.entry-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #1e1e1e;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
}

/* Meta do Post - Estilo G1 */
.entry-header-meta {
    margin-bottom: 1.5rem;
}

.entry-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.entry-author {
    color: #666;
}

.entry-author strong {
    font-weight: 600;
    color: #1e1e1e;
}

.entry-date {
    color: #666;
}

.entry-updated {
    color: #999;
    margin-left: 0.5rem;
}

.entry-updated::before {
    content: '·';
    margin-right: 0.5rem;
}

/* Botões de Compartilhar - Estilo G1 */
.entry-share {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #1e1e1e;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-btn.share-facebook svg {
    color: #1877f2;
}

.share-btn.share-whatsapp svg {
    color: #25d366;
}

.share-btn.share-generic svg {
    color: #666;
}

.share-btn span {
    display: none;
}

/* Imagem Destacada - Estilo G1 */
.entry-featured-image {
    margin: 1.5rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Conteúdo do Post - Estilo G1 */
.entry-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #1e1e1e;
    margin-top: 2rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #1e1e1e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

.entry-content h3 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content a {
    color: #c4170c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: #a0140a;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid #c4170c;
    font-style: italic;
    color: #666;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Footer do Post */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-posts p {
    font-size: 1.125rem;
    margin: 0;
}

/* Responsivo - Layout G1 */
@media (max-width: 768px) {
    .g1-content-wrapper {
        padding: 1rem;
    }

    .g1-archive-title {
        font-size: 1.5rem;
    }

    .g1-featured-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .g1-featured-main {
        grid-column: 1;
        grid-row: 1;
    }

    .g1-featured-side {
        grid-column: 1;
        grid-row: 2;
    }

    .g1-featured-main .featured-card {
        min-height: 400px;
    }

    .g1-featured-side .featured-card {
        min-height: 250px;
    }

    .g1-featured-main .featured-card-title {
        font-size: 1.5rem;
    }

    .g1-featured-side .featured-card-title {
        font-size: 1.125rem;
    }

    .featured-card-content {
        padding: 1.5rem;
    }

    .g1-card-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .g1-card-image {
        width: 100%;
        height: 200px;
    }

    .g1-card-title {
        font-size: 1.125rem;
    }

    .entry-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .entry-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .g1-card-image {
        width: 100%;
        height: 200px;
    }

    .entry-share {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .share-btn svg {
        width: 20px;
        height: 20px;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }
}

/* Light Theme - Ajustes para G1 */
body.light-theme .g1-card:hover {
    background-color: #f5f5f5;
}

body.light-theme .g1-archive-header {
    border-bottom-color: #e5e5e5;
}

body.light-theme .g1-card {
    border-bottom-color: #e5e5e5;
}

/* Dark Theme - Ajustes para G1 */
body:not(.light-theme) .g1-content-wrapper {
    background-color: #161823;
}

body:not(.light-theme) .g1-card {
    border-bottom-color: var(--border-color);
}

body:not(.light-theme) .g1-card:hover {
    background-color: var(--bg-secondary);
}

body:not(.light-theme) .g1-archive-title,
body:not(.light-theme) .g1-card-title a,
body:not(.light-theme) .entry-title {
    color: var(--text-primary);
}

body:not(.light-theme) .g1-archive-description,
body:not(.light-theme) .g1-card-excerpt,
body:not(.light-theme) .g1-card-time {
    color: var(--text-secondary);
}

body:not(.light-theme) .g1-archive-header,
body:not(.light-theme) .entry-header-meta,
body:not(.light-theme) .entry-share,
body:not(.light-theme) .entry-footer {
    border-color: var(--border-color);
}

body:not(.light-theme) .share-btn {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body:not(.light-theme) .share-btn:hover {
    background-color: var(--bg-card);
}

body:not(.light-theme) .single-post {
    background-color: var(--bg-card);
}

body:not(.light-theme) .entry-subtitle {
    color: var(--text-secondary);
}

body:not(.light-theme) .entry-meta-info,
body:not(.light-theme) .entry-author,
body:not(.light-theme) .entry-date,
body:not(.light-theme) .entry-updated,
body:not(.light-theme) .no-posts {
    color: var(--text-light);
}

body:not(.light-theme) .entry-author strong {
    color: var(--text-primary);
}

body:not(.light-theme) .entry-content {
    color: var(--text-secondary);
}

body:not(.light-theme) .entry-content h2,
body:not(.light-theme) .entry-content h3,
body:not(.light-theme) .entry-content h4 {
    color: var(--text-primary);
}

body:not(.light-theme) .entry-content a {
    color: #69ddf7;
}

body:not(.light-theme) .entry-content blockquote {
    color: var(--text-secondary);
}

body:not(.light-theme) .entry-content figcaption {
    color: var(--text-light);
}

body:not(.light-theme) .share-btn.share-generic svg {
    color: var(--text-light);
}

/* Tema Light */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.85);
    --text-light: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 0, 0, 0.1);
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --link-visited: #551a8b;
}

body.light-theme .site-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .site-title a {
    color: var(--text-primary);
}

body.light-theme .card-title a {
    color: var(--text-primary);
}

body.light-theme .entry-title {
    color: var(--text-primary);
}

body.light-theme .archive-title {
    color: var(--text-primary);
}

body.light-theme .menu-toggle {
    color: var(--text-primary);
}

body.light-theme .menu-icon span {
    background-color: var(--text-primary);
}

body.light-theme .main-navigation {
    background-color: var(--bg-secondary);
    border-right-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .main-navigation a {
    color: var(--text-primary);
}

body.light-theme .main-navigation a:hover,
body.light-theme .main-navigation a:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .main-navigation .current-menu-item > a,
body.light-theme .main-navigation .current_page_item > a {
    background-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .search-form-container {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .search-field {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-theme .search-field:focus {
    background-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .search-submit,
body.light-theme .search-close {
    color: var(--text-primary);
}

body.light-theme .region-filters {
    background-color: var(--bg-primary);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .region-filter-btn {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .region-filter-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .theme-toggle {
    color: var(--text-primary);
}

body.light-theme .search-toggle {
    color: var(--text-primary);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    border-radius: 2px;
}

