/*
Theme Name: WP Local News
Theme URI: https://dantetesta.com.br
Author: Dante Testa
Author URI: https://dantetesta.com.br
Description: Tema completo para portais de notícias locais com Home Builder visual, sistema de newsletter, previsão do tempo, resultados de loteria e muito mais. Compatível com Elementor Free/Pro e RankMath SEO.
Version: 4.0.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-local-news
Tags: news, portal, local-news, responsive, custom-logo, custom-colors, elementor, seo-ready, builder, newsletter

Desenvolvido por Dante Testa (https://dantetesta.com.br) - 01/12/2024
*/

/* ========================================
   VARIÁVEIS CSS E RESET
   ======================================== */
:root {
    --cor-primaria: #1e40af;
    --cor-secundaria: #f59e0b;
    --cor-fundo: #f8fafc;
    --cor-texto: #1e293b;
    --cor-texto-claro: #64748b;
    --cor-borda: #e2e8f0;
    --cor-sucesso: #10b981;
    --cor-erro: #ef4444;
    --cor-aviso: #f59e0b;
    --fonte-principal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fonte-titulo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sombra-suave: 0 1px 3px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-forte: 0 10px 15px rgba(0, 0, 0, 0.1);
    --raio-borda: 8px;
    --raio-borda-lg: 12px;
    --transicao: all 0.3s ease;
}

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--fonte-principal);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    line-height: 1.3;
    color: var(--cor-texto);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: var(--transicao);
}

a:hover {
    color: var(--cor-secundaria);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LAYOUT E CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1440px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background: #fff;
    box-shadow: var(--sombra-suave);
}

.header-top {
    background: linear-gradient(90deg, var(--cor-primaria) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.header-top a {
    color: rgba(255,255,255,0.9);
    opacity: 0.9;
}

.header-top a:hover {
    opacity: 1;
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

/* Logo Desktop/Mobile */
.site-logo-mobile {
    display: none;
}

.site-logo-mobile img {
    max-height: 45px;
    width: auto;
}

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

.site-title a {
    color: var(--cor-primaria);
}

.site-description {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin: 0;
}

/* ========================================
   NAVEGAÇÃO PRINCIPAL
   ======================================== */
.main-navigation {
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    margin: 0;
    margin-left: auto;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 1.1rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--cor-texto);
    border-radius: 25px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    color: var(--cor-primaria);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.nav-menu .current-menu-item > a {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

/* Submenu Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 100;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.dropdown-open > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-menu .sub-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--cor-texto);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-menu .sub-menu a:hover {
    background: var(--cor-primaria-light, #f0f7ff);
    color: var(--cor-primaria);
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--cor-texto);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transicao);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE MENU DRAWER
   ======================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* Considera admin bar quando logado */
.admin-bar .mobile-menu {
    top: 32px;
    height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    .admin-bar .mobile-menu {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-menu-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-menu-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.9rem;
}

.mobile-menu-search input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.mobile-menu-search button {
    padding: 0.75rem 1rem;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: var(--raio-borda);
    cursor: pointer;
}

.mobile-menu-anunciar {
    display: block;
    background: linear-gradient(135deg, var(--cor-secundaria) 0%, #166534 100%);
    color: #fff;
    text-align: center;
    padding: 0.85rem;
    border-radius: var(--raio-borda);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.mobile-menu-nav {
    border-top: 1px solid var(--cor-borda);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--cor-borda);
}

.mobile-nav-list li a {
    display: block;
    padding: 0.85rem 0;
    color: var(--cor-texto);
    font-weight: 500;
}

.mobile-nav-list li a:hover {
    color: var(--cor-primaria);
}

/* Mobile Dropdown de Categorias */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    background: none;
    border: none;
    color: var(--cor-texto);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    color: var(--cor-primaria);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--cor-texto-claro);
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--cor-fundo);
    border-radius: var(--raio-borda);
    margin-bottom: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-dropdown-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.mobile-dropdown-menu .cat-count {
    background: var(--cor-primaria);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-menu-account {
    background: var(--cor-fundo);
    padding: 1rem;
    border-radius: var(--raio-borda);
}

.mobile-menu-date {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.75rem;
}

.mobile-menu-user {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--cor-primaria);
    font-size: 0.9rem;
}

.mobile-menu-logout {
    color: #dc2626;
}

/* Overlay do menu mobile */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Considera admin bar no overlay */
.admin-bar .mobile-menu-overlay {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .mobile-menu-overlay {
        top: 46px;
    }
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   HEADER ACTIONS (padronizado)
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    height: 40px;
    padding: 0 2.5rem 0 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: 25px;
    width: 180px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: var(--cor-fundo);
}

.header-search input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    width: 220px;
    background: #fff;
}

.header-search button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cor-texto-claro);
    padding: 0;
    display: flex;
}

.header-search button:hover {
    color: var(--cor-primaria);
}

/* Botão Anunciar no header */
.header-actions .btn {
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--raio-borda);
    cursor: pointer;
    transition: var(--transicao);
    text-decoration: none;
}

.btn-primary {
    background: var(--cor-primaria);
    color: #fff;
}

.btn-primary:hover {
    background: #1e3a8a;
    color: #fff;
}

.btn-secondary {
    background: var(--cor-secundaria);
    color: #fff;
}

.btn-secondary:hover {
    background: #d97706;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-outline:hover {
    background: var(--cor-primaria);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    min-width: auto;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Botões de ações na tabela */
.acoes-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Botões de ação padronizados */
.btn-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 90px;
}

.btn-acao svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Botões apenas com ícone */
.btn-acao.btn-icon-only {
    min-width: auto;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
}

.btn-acao.btn-icon-only svg {
    width: 16px;
    height: 16px;
}

.btn-ver {
    background: #64748b;
    color: #fff;
}

.btn-ver:hover {
    background: #475569;
}

.btn-editar {
    background: #3b82f6;
    color: #fff;
}

.btn-editar:hover {
    background: #2563eb;
}

.btn-vendido {
    background: #10b981;
    color: #fff;
}

.btn-vendido:hover {
    background: #059669;
}

/* Switch Vendido */
.switch-vendido {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.switch-vendido-input {
    display: none;
}

.switch-vendido-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 22px;
    transition: all 0.3s ease;
}

.switch-vendido-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-vendido-input:checked + .switch-vendido-slider {
    background: #10b981;
}

.switch-vendido-input:checked + .switch-vendido-slider::before {
    transform: translateX(18px);
}

.switch-vendido-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.switch-vendido-input:checked ~ .switch-vendido-label {
    color: #10b981;
}

.switch-vendido:hover .switch-vendido-slider {
    background: #94a3b8;
}

.switch-vendido-input:checked:hover + .switch-vendido-slider {
    background: #059669;
}

.switch-vendido.loading .switch-vendido-slider {
    opacity: 0.5;
    pointer-events: none;
}

.btn-destacar-acao {
    background: #f59e0b;
    color: #fff;
}

.btn-destacar-acao:hover {
    background: #d97706;
}

.btn-destaque-ativo {
    background: #fbbf24;
    color: #78350f;
    cursor: default;
}

.btn-excluir {
    background: #ef4444;
    color: #fff;
}

.btn-excluir:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--cor-sucesso);
    color: #fff;
}

.btn-danger {
    background: var(--cor-erro);
    color: #fff;
}

.btn-destacar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border: none;
}

.btn-destacar:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
}

.badge-destaque {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========================================
   CARDS DE NOTÍCIAS
   ======================================== */
.card {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    transition: var(--transicao);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--sombra-media);
    transform: translateY(-4px);
}

/* ========================================
   CARD NOTÍCIA V2 - DESIGN MODERNO
   ======================================== */
.card-noticia-v2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-noticia-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-noticia-v2 .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-noticia-v2 .card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-noticia-v2 .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-noticia-v2:hover .card-thumb img {
    transform: scale(1.1);
}

.card-noticia-v2 .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.2) 40%,
        transparent 100%
    );
    pointer-events: none;
}

.card-noticia-v2 .card-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--cat-bg, #2563eb);
    color: var(--cat-color, #fff);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-noticia-v2 .card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-noticia-v2 .card-time {
    font-size: 0.7rem;
    color: var(--cor-texto-claro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-noticia-v2 .card-headline {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-noticia-v2:hover .card-headline {
    color: var(--cor-primaria);
}

.card-noticia-v2 .card-summary {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fallback para cards antigos */
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: var(--raio-borda-lg) var(--raio-borda-lg) 0 0;
    display: block;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: inherit;
}

.card:hover .card-image img {
    transform: scale(1.08);
}

/* Overlay gradiente na imagem */
.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Badge categoria base (cores via inline style) */
.badge-categoria {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.badge-categoria:hover {
    opacity: 0.9;
}

/* Badge categoria no card de notícias */
.card-image .badge-categoria {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
}

/* Data no canto superior direito */
.card-image-date {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Esconde badges duplicados fora do card-image */
.card-body .badge-categoria {
    display: none;
}

.card-image-square {
    aspect-ratio: 1/1;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--cor-primaria);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.card-title {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--cor-texto);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--cor-primaria);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--cor-borda);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-meta-item svg {
    color: var(--cor-primaria);
    opacity: 0.7;
}

/* ========================================
   GRID DE NOTÍCIAS
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ========================================
   HERO (DESTAQUE PRINCIPAL)
   ======================================== */
.hero-section {
    margin-bottom: 3rem;
}

.hero-card {
    position: relative;
    border-radius: var(--raio-borda-lg);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-card-image {
    position: absolute;
    inset: 0;
}

.hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.hero-card-content {
    position: relative;
    padding: 2rem;
    color: #fff;
    z-index: 1;
}

.hero-card-content .card-category {
    background: var(--cor-secundaria);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.hero-card-content .card-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-card-content .card-excerpt {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   HERO V2 (3 COLUNAS: 70% + 30%)
   ======================================== */
.hero-section-v2 {
    padding: 1.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    min-height: 520px;
}

.hero-item {
    position: relative;
    border-radius: var(--raio-borda-lg);
    overflow: hidden;
}

.hero-item-link {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero-item-image {
    position: absolute;
    inset: 0;
}

.hero-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-item:hover .hero-item-image img {
    transform: scale(1.05);
}

.hero-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

.hero-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

/* Badge no hero usa cores inline */
.hero-item-content .badge-categoria {
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: auto;
}

.hero-item-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Esconde excerpt e meta nos cards secundários para ficar mais limpo */
.hero-item-excerpt,
.hero-item-meta {
    display: none;
}

.hero-item-date svg {
    opacity: 0.7;
}

/* Hero Principal (70%) */
.hero-item-main {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hero-item-main .hero-item-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%);
}

.hero-item-main .hero-item-title {
    font-size: 1.6rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 0.5rem;
}

.hero-item-main .hero-item-content {
    padding: 2rem;
}

.hero-item-main .badge-categoria {
    font-size: 0.7rem;
    padding: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}

.hero-item-main .hero-item-excerpt {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Lateral (30% dividido em 2) */
.hero-item-side {
    grid-column: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-item-side .hero-item-content {
    padding: 1rem;
}

.hero-item-side .hero-item-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Responsivo Hero V2 */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }

    .hero-item-main {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 350px;
    }

    .hero-item-side {
        grid-column: auto;
        min-height: 280px;
    }

    .hero-item-main .hero-item-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-item-main {
        grid-column: 1;
        min-height: 300px;
    }

    .hero-item-side {
        min-height: 200px;
    }

    .hero-item-main .hero-item-title {
        font-size: 1.25rem;
    }

    .hero-item-main .hero-item-content {
        padding: 1.25rem;
    }
}

/* ========================================
   SEÇÕES DA HOME
   ======================================== */
.section {
    padding: 3rem 0;
}

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

.section-title {
    font-size: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cor-primaria);
    border-radius: 2px;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cor-primaria);
}

.section-link:hover {
    color: var(--cor-secundaria);
}

.section-alt {
    background: #fff;
}

/* ========================================
   CARROSSEL DE CLASSIFICADOS
   ======================================== */
.classificados-carousel-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #1e3a8a 100%);
    padding: 3rem 0;
}

.classificados-carousel-section .section-title {
    color: #fff;
}

.classificados-carousel-section .section-title::before {
    background: var(--cor-secundaria);
}

.classificados-carousel-section .section-link {
    color: #fff;
}

.classificados-carousel {
    position: relative;
    overflow: hidden;
}

.classificados-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.classificados-carousel .card {
    flex: 0 0 280px;
}

.classificados-carousel .card-image {
    aspect-ratio: 1/1;
}

.classificados-carousel .card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
}

.carousel-btn:hover {
    background: var(--cor-secundaria);
    color: #fff;
}

/* ========================================
   CTA CLASSIFICADOS V2 - DESIGN LIMPO
   ======================================== */
.cta-classificados-v2 {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-classificados-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-grid-v2 {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 2rem;
    align-items: stretch;
}

/* Cards Area */
.cta-cards-area {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
}

.cta-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.cta-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.destaque-badge {
    font-size: 1rem;
}

.cta-carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.cta-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.cta-nav-btn:hover {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

.cta-cards-wrapper {
    overflow: hidden;
}

.cta-cards-wrapper.has-carousel .cta-cards-grid {
    display: flex;
    transition: transform 0.4s ease;
}

.cta-cards-wrapper.has-carousel .cta-card-v2 {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.cta-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Card Destaque Tag */
.cta-card-v2 {
    position: relative;
}

.card-destaque-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cta-card-v2.is-destaque {
    border-color: #fbbf24;
}

.cta-card-v2.is-destaque:hover {
    border-color: #f59e0b;
}

.cta-card-v2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cta-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--cor-primaria);
}

.cta-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.cta-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cta-card-v2:hover .cta-card-thumb img {
    transform: scale(1.08);
}

.cta-card-body {
    padding: 1rem;
}

.cta-card-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cor-texto);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.cta-card-local {
    display: block;
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.5rem;
}

.cta-card-price {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* CTA Box - Design Compacto */
.cta-box-v2 {
    background: linear-gradient(145deg, #1e40af 0%, #1e3a8a 50%, #172554 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-box-v2::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cta-box-v2::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-box-v2 h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cta-box-v2 > p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.cta-features-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    position: relative;
    z-index: 1;
}

.cta-features-v2 li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta-features-v2 li:last-child {
    border-bottom: none;
}

.cta-features-v2 .check-icon {
    width: 20px;
    height: 20px;
    background: rgba(34,197,94,0.3);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.cta-btn-v2 {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}

.cta-btn-v2:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.4);
    color: #fff;
}

@media (max-width: 992px) {
    .cta-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .cta-box-v2 {
        position: static;
    }
}

@media (max-width: 768px) {
    .cta-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cta-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-cards-area {
        padding: 1.25rem;
    }
    
    .cta-box-v2 {
        padding: 1.5rem;
    }
}

/* ========================================
   HERO PADRÃO PARA ARCHIVES
   ======================================== */
.archive-hero,
.classificados-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.archive-hero::before,
.classificados-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.archive-hero::after,
.classificados-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.archive-hero .container,
.classificados-header .container {
    position: relative;
    z-index: 1;
}

.archive-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.archive-hero-breadcrumb a {
    color: #fff;
}

.archive-hero-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.archive-hero h1,
.classificados-header h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.archive-hero p,
.classificados-header p {
    opacity: 0.85;
    margin-bottom: 0;
    font-size: 1rem;
    max-width: 500px;
}

/* Layout do Archive */
.archive-container,
.noticias-container,
.classificados-container {
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.archive-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: var(--raio-borda-lg);
}

.archive-empty p {
    color: var(--cor-texto-claro);
    margin-bottom: 1.5rem;
}

/* Formulário de busca inline */
.search-form-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--raio-borda-lg);
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-inline-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 1rem;
}

.search-inline-form input[type="search"]:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .search-inline-form {
        flex-direction: column;
    }
    
    .search-inline-form input[type="search"],
    .search-inline-form button {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos específicos de classificados movidos para seção HERO PADRÃO */

.classificados-filtros {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    margin-bottom: 2rem;
}

.filtros-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filtro-grupo label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cor-texto);
}

.filtro-grupo select,
.filtro-grupo input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.875rem;
    background: #fff;
    transition: var(--transicao);
}

.filtro-grupo select:focus,
.filtro-grupo input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.classificados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ========================================
   SINGLE CLASSIFICADO - REDESIGN
   ======================================== */
.classificado-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 1rem 0;
}

.classificado-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.classificado-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.classificado-breadcrumb a:hover {
    color: #fff;
}

.classificado-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.classificado-single {
    padding: 2rem 0 3rem;
    background: var(--cor-fundo);
}

.classificado-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.classificado-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Galeria */
.classificado-galeria {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    overflow: hidden;
}

.classificado-imagem-principal {
    position: relative;
    aspect-ratio: 4/3;
}

.classificado-imagem-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classificado-vendido-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.classificado-vendido-overlay span {
    background: #ef4444;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    padding: 1rem 3rem;
    transform: rotate(-15deg);
    letter-spacing: 3px;
}

.classificado-badge-destaque {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Info Card */
.classificado-info-card {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 2rem;
}

.classificado-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cor-borda);
}

/* Tags uniformes */
.classificado-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.tag-disponivel {
    background: #dcfce7;
    color: #166534;
}

.tag-vendido {
    background: #fef2f2;
    color: #991b1b;
}

.tag-categoria {
    background: var(--cor-primaria);
    color: #fff;
}

.classificado-titulo {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.classificado-preco {
    font-size: 2rem;
    font-weight: 800;
    color: #059669;
}

/* Meta Row - 3 colunas minimalista */
.classificado-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--cor-borda);
}

.meta-col {
    text-align: center;
}

.meta-col .meta-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--cor-texto-claro);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.meta-col .meta-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cor-texto);
}

/* Descrição */
.classificado-descricao h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.classificado-descricao-content {
    line-height: 1.8;
    color: var(--cor-texto);
}

/* Sidebar */
.classificado-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cor-borda);
}

/* CTA Contato */
.sidebar-contato {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    text-align: center;
}

.contato-preco {
    margin-bottom: 1rem;
}

.contato-preco .preco-valor {
    font-size: 1.75rem;
    font-weight: 800;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #059669;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--raio-borda);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.contato-hint {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    text-align: center;
}

/* Anunciante */
.anunciante-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.anunciante-avatar {
    border-radius: 50%;
}

.anunciante-nome {
    display: block;
    font-size: 1rem;
}

.anunciante-desde {
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
}

/* Compartilhar */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #0f1419; }
.share-whatsapp { background: #25d366; }
.share-email { background: #6b7280; }
.share-copy { background: #3b82f6; }

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Denúncia */
.sidebar-denuncia {
    background: #fef2f2;
    border: 1px solid #fecaca;
    text-align: center;
}

.denuncia-texto {
    font-size: 0.85rem;
    color: #991b1b;
    margin-bottom: 0.75rem;
}

.btn-denuncia {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--raio-borda);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-denuncia:hover {
    background: #fecaca;
}

/* Relacionados */
.section-relacionados {
    background: #fff;
}

/* Responsivo */
@media (max-width: 992px) {
    .classificado-grid {
        grid-template-columns: 1fr;
    }
    
    .classificado-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .sidebar-contato {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .classificado-sidebar {
        grid-template-columns: 1fr;
    }
    
    .classificado-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .classificado-titulo {
        font-size: 1.35rem;
    }
    
    .classificado-preco {
        font-size: 1.5rem;
    }
}

/* ========================================
   BADGES E STATUS
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-disponivel {
    background: #dcfce7;
    color: #166534;
}

.badge-vendido {
    background: #fef3c7;
    color: #92400e;
}

.badge-destaque {
    background: #fef08a;
    color: #854d0e;
}

.badge-pendente {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-reprovado {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   BOTÕES DE COMPARTILHAMENTO
   ======================================== */
.post-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
}

.post-share h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--raio-borda);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn svg {
    flex-shrink: 0;
}

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

.share-facebook:hover {
    background: #4293f5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

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

.share-whatsapp:hover {
    background: #4ade80;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-twitter:hover {
    background: #374151;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-email {
    background: #6b7280;
    color: #fff;
}

.share-email:hover {
    background: #9ca3af;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.share-copy {
    background: var(--cor-primaria);
    color: #fff;
}

.share-copy:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.share-copy.copied {
    background: #10b981;
}

/* Modal de E-mail */
.modal-email {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-email.active {
    display: flex;
}

.modal-email-content {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-email-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cor-borda);
}

.modal-email-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-email-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cor-texto-claro);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-email-close:hover {
    color: var(--cor-texto);
}

.modal-email-body {
    padding: 1.5rem;
}

.modal-email-preview {
    background: var(--cor-fundo);
    padding: 1rem;
    border-radius: var(--raio-borda);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--cor-primaria);
}

.modal-email-preview strong {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.modal-email-preview small {
    color: var(--cor-texto-claro);
    line-height: 1.5;
}

.modal-email-remetente {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: var(--raio-borda);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ========================================
   MODAL DE PAGAMENTO PIX
   ======================================== */
.modal-pagamento {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-pagamento.active {
    display: flex;
}

.modal-pagamento-content {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-pagamento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cor-borda);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border-radius: var(--raio-borda-lg) var(--raio-borda-lg) 0 0;
}

.modal-pagamento-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #fff;
}

.modal-pagamento-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-pagamento-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-pagamento-body {
    padding: 1.5rem;
}

.pagamento-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pagamento-valor {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: var(--raio-borda);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagamento-valor .label {
    color: var(--cor-texto-claro);
    font-weight: 500;
}

.pagamento-valor .valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.qrcode-container img {
    max-width: 250px;
    width: 100%;
    border: 4px solid #3b82f6;
    border-radius: var(--raio-borda);
    padding: 0.5rem;
    background: #fff;
}

.pagamento-instrucoes {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pagamento-valor-destaque {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0.5rem 0;
}

.pix-copia-cola {
    margin-bottom: 1.5rem;
}

.pix-copia-cola label {
    display: block;
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.5rem;
}

.pix-code-container {
    display: flex;
    gap: 0.5rem;
}

.pix-code-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.75rem;
    background: #f9fafb;
}

/* PIX Estático */
.pix-estatico-dados {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--raio-borda);
    padding: 1rem;
    margin-bottom: 1rem;
}

.pix-estatico-item {
    margin-bottom: 0.75rem;
}

.pix-estatico-item:last-child {
    margin-bottom: 0;
}

.pix-estatico-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.25rem;
}

.pix-estatico-item strong,
.pix-estatico-item span {
    font-size: 0.9rem;
}

.pagamento-instrucoes-estatico {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--raio-borda);
    padding: 1rem;
    margin-bottom: 1rem;
}

.pagamento-instrucoes-estatico p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
}

.pagamento-aviso {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--raio-borda);
    padding: 1rem;
}

.pagamento-aviso p {
    margin: 0;
    font-size: 0.8rem;
    color: #92400e;
}

/* Aviso WhatsApp para comprovante */
.pagamento-aviso-whatsapp {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1rem;
}

.aviso-whatsapp-texto {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-align: left;
}

.aviso-whatsapp-texto .aviso-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.aviso-whatsapp-texto p {
    margin: 0;
    font-size: 0.9rem;
    color: #166534;
    line-height: 1.4;
}

.btn-whatsapp-comprovante {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-comprovante:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-comprovante svg {
    flex-shrink: 0;
}

/* Botão WhatsApp na tela de sucesso do anúncio */
.sucesso-whatsapp-aviso {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #d1d5db;
    text-align: center;
}

.sucesso-whatsapp-aviso p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
}

.btn-whatsapp-sucesso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-sucesso:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-sucesso svg {
    flex-shrink: 0;
}

.pagamento-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: var(--raio-borda);
    color: #92400e;
}

.pagamento-status .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #fbbf24;
    border-top-color: #92400e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#pagamento-etapa-sucesso {
    text-align: center;
    padding: 2rem 0;
}

#pagamento-etapa-sucesso .sucesso-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#pagamento-etapa-sucesso h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

#pagamento-etapa-sucesso p {
    color: var(--cor-texto-claro);
    margin-bottom: 1.5rem;
}

/* Botão de pagamento pendente */
.btn-pagamento-pendente {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    display: block;
    width: 100%;
}

.btn-pagamento-pendente:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
}

/* ========================================
   PAINEL MINHA CONTA
   ======================================== */
.minha-conta-section {
    padding: 3rem 0;
}

.minha-conta-container {
    max-width: 1000px;
    margin: 0 auto;
}

.minha-conta-header {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.minha-conta-welcome h2 {
    margin-bottom: 0.25rem;
}

.minha-conta-welcome p {
    color: var(--cor-texto-claro);
    margin-bottom: 0;
}

/* Botão Criar Anúncio Destacado */
.btn-criar-anuncio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    transition: all 0.3s ease;
}

.btn-criar-anuncio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #fff;
}

.btn-criar-anuncio .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 400;
}

.minha-conta-content {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 2rem;
}

.anuncios-tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.anuncios-tabela th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--cor-texto-claro);
    border: none;
}

.anuncios-tabela td {
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.anuncios-tabela td:first-child {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.anuncios-tabela td:last-child {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

.anuncios-tabela td:not(:first-child):not(:last-child) {
    border-left: none;
    border-right: none;
}

.anuncios-tabela tr:hover td {
    border-color: var(--cor-primaria);
    background: #f8fafc;
}

.acoes-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Thumbnail na tabela de anúncios */
.anuncio-item-tabela {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.anuncio-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.anuncio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anuncio-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: #e2e8f0;
    color: #94a3b8;
}

.anuncio-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.anuncio-info strong {
    color: var(--cor-texto);
    font-size: 0.95rem;
    line-height: 1.3;
}

.anuncio-info small {
    color: var(--cor-texto-claro);
    font-size: 0.75rem;
}

/* Status badges melhorados */
.anuncios-tabela .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Views column */
.anuncios-tabela td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--cor-texto);
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-grupo {
    margin-bottom: 1.5rem;
}

.form-grupo label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.form-grupo label .label-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

/* ========================================
   UPLOAD DE FOTOS - CAPA E GALERIA
   ======================================== */

/* Foto de Capa */
.capa-upload-container {
    max-width: 250px;
}

.capa-preview {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #059669;
}

.capa-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capa-remover {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.capa-remover:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.capa-dropzone {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.capa-dropzone:hover {
    border-color: var(--cor-primaria);
    background: #eff6ff;
}

.capa-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.capa-dropzone .dropzone-content {
    text-align: center;
    pointer-events: none;
}

.capa-dropzone .dropzone-icon {
    font-size: 2rem;
}

.capa-dropzone .dropzone-content p {
    font-size: 0.85rem;
    margin: 0.5rem 0 0.25rem;
}

/* Galeria de Fotos */
.galeria-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.galeria-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.galeria-dropzone:hover,
.galeria-dropzone.dragover {
    border-color: var(--cor-primaria);
    background: #eff6ff;
}

.galeria-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.dropzone-content p {
    font-weight: 600;
    color: var(--cor-texto);
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
}

/* Preview da Galeria */
.galeria-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.galeria-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: grab;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.galeria-item:first-child {
    border-color: #059669;
}

.galeria-item:active {
    cursor: grabbing;
}

.galeria-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.galeria-item.drag-over {
    border-color: var(--cor-primaria);
    transform: scale(1.02);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-capa-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #059669;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.galeria-remover {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.galeria-item:hover .galeria-remover {
    opacity: 1;
}

.galeria-remover:hover {
    background: #dc2626;
}

/* Novo item (preview local) */
.galeria-item.is-new {
    border-style: dashed;
    border-color: #94a3b8;
}

/* Upload Overlay / Preloader */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.upload-loader {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--cor-primaria);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

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

.upload-loader p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cor-texto);
    margin-bottom: 0.5rem;
}

.loader-hint {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

@media (max-width: 768px) {
    .galeria-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .galeria-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-grupo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.form-grupo-header label {
    margin-bottom: 0;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    margin-top: 0.5rem;
}

/* Botão de IA */
.btn-ia {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ia:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-ia:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-ia.loading {
    position: relative;
    color: transparent;
}

.btn-ia.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transicao);
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.form-grupo-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-grupo-3cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grupo-3cols {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.form-checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin-top: 0.5rem;
}

.form-error {
    color: var(--cor-erro);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Formulário de Login/Cadastro */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-box {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--cor-borda);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--cor-texto-claro);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transicao);
    position: relative;
}

.auth-tab.active {
    color: var(--cor-primaria);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cor-primaria);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* ========================================
   ALERTA E MENSAGENS
   ======================================== */
.alerta {
    padding: 1rem 1.5rem;
    border-radius: var(--raio-borda);
    margin-bottom: 1.5rem;
}

.alerta-sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alerta-erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alerta-aviso {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alerta-info {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

/* Aviso de destaque pago */
.destaque-aviso {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 2px solid var(--cor-secundaria);
    padding: 1.5rem;
    border-radius: var(--raio-borda);
    margin-top: 1rem;
}

.destaque-aviso h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.destaque-aviso p {
    color: #78350f;
    margin-bottom: 0.5rem;
}

.pix-info {
    background: #fff;
    padding: 1rem;
    border-radius: var(--raio-borda);
    margin-top: 1rem;
    font-family: monospace;
    font-size: 1rem;
    word-break: break-all;
}

/* Tela de Sucesso do Anúncio */
.anuncio-sucesso {
    text-align: center;
    padding: 3rem 2rem;
}

.anuncio-sucesso .sucesso-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.anuncio-sucesso h2 {
    font-size: 1.75rem;
    color: #059669;
    margin-bottom: 0.5rem;
}

.anuncio-sucesso .sucesso-msg {
    color: var(--cor-texto-claro);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.sucesso-destaque-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.destaque-badge-sucesso {
    background: #f59e0b;
    color: #fff;
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sucesso-destaque-info p {
    color: #78350f;
    margin-bottom: 1rem;
}

.pix-dados-sucesso {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.pix-dados-sucesso .pix-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.pix-dados-sucesso .pix-chave {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.pix-dados-sucesso .pix-tipo {
    font-weight: 600;
    color: var(--cor-texto);
}

.pix-dados-sucesso .pix-codigo {
    color: var(--cor-texto-claro);
}

.pix-dados-sucesso .pix-beneficiario {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

.pix-instrucoes {
    font-size: 0.85rem;
    color: #92400e;
    margin-top: 1rem;
    font-style: italic;
}

.sucesso-acoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   UPLOAD E CROP DE IMAGEM
   ======================================== */
.upload-area {
    border: 2px dashed var(--cor-borda);
    border-radius: var(--raio-borda);
    padding: 2rem;
    text-align: center;
    transition: var(--transicao);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--cor-primaria);
    background: rgba(30, 64, 175, 0.05);
}

.upload-area input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: var(--cor-texto-claro);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--cor-texto-claro);
}

.upload-preview {
    margin-top: 1rem;
    display: none;
}

.upload-preview img {
    max-width: 300px;
    border-radius: var(--raio-borda);
    margin: 0 auto;
}

/* Modal de Crop */
.crop-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.crop-modal.active {
    display: flex;
}

.crop-modal-content {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.crop-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cor-texto-claro);
}

.crop-container {
    max-height: 400px;
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
}

.crop-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ========================================
   PAGINAÇÃO
   ======================================== */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.paginacao ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.paginacao li {
    list-style: none;
}

.paginacao a,
.paginacao span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--raio-borda);
    font-weight: 500;
    transition: var(--transicao);
}

.paginacao a {
    background: #fff;
    color: var(--cor-texto);
    box-shadow: var(--sombra-suave);
}

.paginacao a:hover {
    background: var(--cor-primaria);
    color: #fff;
}

.paginacao .current {
    background: var(--cor-primaria);
    color: #fff;
}

/* ========================================
   PÁGINAS LEGAIS (Termos, Privacidade)
   ======================================== */
.legal-page {
    background: #f8fafc;
    min-height: 60vh;
}

.legal-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.legal-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cor-texto);
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--cor-primaria);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--cor-secundaria);
}

.legal-footer {
    text-align: center;
    padding: 2rem 0 3rem;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 2rem 1rem;
    }
    
    .legal-hero h1 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 1.5rem;
        margin-top: -1rem;
        border-radius: 12px;
    }
}

/* ========================================
   FOOTER - MINIMALISTA HORIZONTAL
   ======================================== */
.site-footer {
    background: #0f172a;
    color: #fff;
    margin-top: 3rem;
}

.footer-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo e Marca */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.footer-logo-min {
    display: flex;
    align-items: center;
}

.footer-logo-min img,
.footer-logo-min .custom-logo-link img {
    max-height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo-min span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.7;
    margin: 0;
    max-width: 280px;
}

/* Nav Links Horizontais */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

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

/* Redes Sociais */
.footer-social-min {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.footer-social-min a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.footer-social-min a:hover {
    background: var(--cor-primaria);
    color: #fff;
}

/* Copyright */
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-copyright .sep {
    color: rgba(255,255,255,0.2);
}

.footer-copyright a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

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

/* Responsivo Footer */
@media (max-width: 900px) {
    .footer-minimal {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem 0;
    }
    
    .footer-nav {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 0.75rem 1rem;
    }
    
    .footer-nav a {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        flex-wrap: wrap;
    }
}

/* ========================================
   SIDEBAR REDESENHADO
   ======================================== */
.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    overflow: hidden;
}

.sidebar-widget-header {
    background: var(--cor-primaria);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--raio-borda-lg) var(--raio-borda-lg) 0 0;
}

.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-widget-content {
    padding: 1.25rem;
}

/* Post em destaque no sidebar */
.sidebar-post-featured {
    margin-bottom: 1rem;
}

.sidebar-post-thumb {
    display: block;
    position: relative;
    border-radius: var(--raio-borda);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-thumb:hover img {
    transform: scale(1.05);
}

.sidebar-post-thumb .no-thumb {
    width: 100%;
    height: 140px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.sidebar-post-cat {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--cor-primaria);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.sidebar-post-title a {
    color: var(--cor-texto);
}

.sidebar-post-title a:hover {
    color: var(--cor-primaria);
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
}

/* Lista de posts pequenos */
.sidebar-post-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--cor-borda);
}

.sidebar-post-thumb-sm {
    flex-shrink: 0;
}

.sidebar-post-thumb-sm img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: var(--raio-borda);
}

.sidebar-post-thumb-sm .no-thumb {
    width: 70px;
    height: 55px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: var(--raio-borda);
}

.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title-sm {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sidebar-post-title-sm a {
    color: var(--cor-texto);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title-sm a:hover {
    color: var(--cor-primaria);
}

.sidebar-post-date-sm,
.sidebar-post-views {
    font-size: 0.7rem;
    color: var(--cor-texto-claro);
}

/* Posts numerados (Mais Lidas) */
.sidebar-post-numbered {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cor-borda);
}

.sidebar-post-numbered:last-child {
    border-bottom: none;
}

.post-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Classificados no sidebar */
.sidebar-classificado-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cor-borda);
}

.sidebar-classificado-item:first-child {
    padding-top: 0;
}

.sidebar-classificado-item:last-of-type {
    border-bottom: none;
}

.sidebar-classificado-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--raio-borda);
}

.sidebar-classificado-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sidebar-classificado-info h4 a {
    color: var(--cor-texto);
}

.sidebar-classificado-info h4 a:hover {
    color: var(--cor-primaria);
}

.sidebar-classificado-info .preco {
    font-size: 0.8rem;
    font-weight: 700;
    color: #059669;
}

.sidebar-btn-all {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

/* Pesquisa no sidebar */
.sidebar-search-widget {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    padding: 1rem;
}

.sidebar-search-form {
    display: flex;
    gap: 0.5rem;
}

.sidebar-search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.sidebar-search-form input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.sidebar-search-form button {
    padding: 0.75rem 1rem;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: var(--raio-borda);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.sidebar-search-form button:hover {
    background: #1e3a8a;
}

/* Categorias no sidebar */
.sidebar-cat-search {
    margin-bottom: 0.75rem;
}

.sidebar-cat-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.8rem;
    background: var(--cor-fundo);
}

.sidebar-cat-search input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    background: #fff;
}

/* Container de categorias com scroll */
.sidebar-widget-content:has(.sidebar-categorias-list) {
    position: relative;
}

.sidebar-categorias-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cor-primaria) #f1f1f1;
}

.sidebar-categorias-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-categorias-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sidebar-categorias-list::-webkit-scrollbar-thumb {
    background: var(--cor-primaria);
    border-radius: 2px;
}

/* Estado expandido - mostra todas */
.cats-expanded .sidebar-categorias-list,
.cats-searching .sidebar-categorias-list {
    max-height: 350px;
}

.sidebar-categorias-list li {
    border-bottom: 1px solid var(--cor-borda);
}

.sidebar-categorias-list li:last-child {
    border-bottom: none;
}

/* Estado padrão: esconde após 8ª categoria */
.sidebar-categorias-list li:nth-child(n+9) {
    display: none;
}

/* Estado expandido ou buscando: mostra todas */
.cats-expanded .sidebar-categorias-list li,
.cats-searching .sidebar-categorias-list li {
    display: block;
}

.sidebar-categorias-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    color: var(--cor-texto);
    transition: all 0.2s;
}

.sidebar-categorias-list a:hover {
    color: var(--cor-primaria);
    padding-left: 0.5rem;
}

.sidebar-categorias-list .cat-nome {
    font-size: 0.85rem;
}

.sidebar-categorias-list .cat-count {
    background: var(--cor-primaria);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.btn-ver-mais-cats {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.75rem;
    background: var(--cor-fundo);
    border: 1px dashed var(--cor-borda);
    border-radius: var(--raio-borda);
    color: var(--cor-texto-claro);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ver-mais-cats:hover {
    background: var(--cor-primaria);
    color: #fff;
    border-style: solid;
    border-color: var(--cor-primaria);
}

/* Newsletter no sidebar - Estilo carta/airmail */
.sidebar-newsletter {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-media);
    overflow: hidden;
    position: relative;
}

/* Borda estilo carta listrada (airmail) */
.sidebar-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #ef4444 0px,
        #ef4444 10px,
        #fff 10px,
        #fff 20px,
        #3b82f6 20px,
        #3b82f6 30px,
        #fff 30px,
        #fff 40px
    );
}

.sidebar-newsletter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #3b82f6 0px,
        #3b82f6 10px,
        #fff 10px,
        #fff 20px,
        #ef4444 20px,
        #ef4444 30px,
        #fff 30px,
        #fff 40px
    );
}

.newsletter-box {
    padding: 2rem 1.5rem;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.newsletter-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.newsletter-header h3 {
    color: var(--cor-texto);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.newsletter-header p {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    margin: 0;
}

.newsletter-form .form-group {
    margin-bottom: 0.6rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.btn-newsletter {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: var(--raio-borda);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-newsletter:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

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

#newsletter-msg {
    display: none;
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--raio-borda);
    text-align: center;
    font-size: 0.8rem;
}

#newsletter-msg.success {
    background: #dcfce7;
    color: #166534;
}

#newsletter-msg.error {
    background: #fee2e2;
    color: #dc2626;
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.7rem;
    color: var(--cor-texto-claro);
    margin: 0.75rem 0 0;
}

/* Anúncios/Banners no sidebar */
.sidebar-anuncio {
    margin-bottom: 0;
}

.anuncio-banner {
    position: relative;
    border-radius: var(--raio-borda-lg);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
}

.anuncio-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.anuncio-banner .anuncio-label {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-posts {
    color: var(--cor-texto-claro);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
}

/* ========================================
   PREVISÃO DO TEMPO
   ======================================== */
.weather-section {
    padding: 1.5rem 0;
    background: var(--cor-fundo);
}

.weather-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: stretch;
}

.weather-loteria-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.weather-block {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: var(--raio-borda-lg);
    padding: 1.5rem;
    color: #fff;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.weather-location {
    font-weight: 600;
    font-size: 1rem;
}

.weather-update {
    font-size: 0.7rem;
    opacity: 0.8;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.weather-details {
    flex: 1;
}

.weather-desc {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.weather-extra {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.15);
    border-radius: var(--raio-borda);
    padding: 0.75rem;
}

.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.weather-day .day-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.weather-day .day-icon {
    font-size: 1.5rem;
}

.weather-day .day-temps {
    font-size: 0.8rem;
    display: flex;
    gap: 0.25rem;
}

.weather-day .day-temps strong {
    font-weight: 700;
}

.weather-day .day-temps small {
    opacity: 0.7;
}

.weather-anuncio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-anuncio .anuncio-banner {
    height: 100%;
}

.weather-anuncio .anuncio-banner img {
    height: 100%;
    object-fit: cover;
}

/* ========================================
   BLOCO DE LOTERIA - CARROSSEL
   ======================================== */
.loteria-block {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.loteria-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    padding: 0.75rem 1rem;
}

.loteria-title {
    font-weight: 700;
    font-size: 1rem;
}

/* Navegação por botões coloridos em grid */
.loteria-tabs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    padding: 0.75rem;
    background: #f8fafc;
}

.loteria-tab-btn {
    padding: 0.5rem 0.25rem;
    background: var(--btn-cor, #64748b);
    border: none;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    opacity: 0.7;
}

.loteria-tab-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.loteria-tab-btn.active {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

/* Slides */
.loteria-slides {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.loteria-slide {
    display: none;
    padding: 1rem 2rem;
    height: 180px;
    overflow-y: auto;
}

.loteria-slide.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

/* Header do slide */
.loteria-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    text-align: left;
}

.loteria-slide-info {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.loteria-slide-nome {
    font-size: 1rem;
    font-weight: 700;
    color: var(--loteria-cor, #16a34a);
    margin: 0;
}

.loteria-slide-concurso {
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
}

.loteria-slide-data {
    font-size: 0.7rem;
    color: var(--cor-texto-claro);
}

.loteria-slide-acumulou {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: var(--raio-borda);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dezenas - desktop em 1 linha, mobile em 2 */
.loteria-slide-dezenas {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0.5rem;
}

.dezena-big {
    background: var(--loteria-cor, #16a34a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    padding: 0 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer do slide */
.loteria-slide-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cor-borda);
}

.loteria-premio-box {
    text-align: center;
}

.premio-label {
    display: block;
    font-size: 0.65rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0.1rem;
}

.premio-valor {
    font-size: 1rem;
    font-weight: 700;
    color: #16a34a;
    text-transform: lowercase;
}

.loteria-ganhadores {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ganhadores-icon {
    font-size: 1.1rem;
}

.ganhadores-texto {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cor-primaria);
}

/* ========================================
   SINGLE POST - HERO
   ======================================== */
.single-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
}

.single-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.single-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-hero-no-image {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #1e3a8a 100%);
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

.single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem 0;
    color: #fff;
}

.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.single-breadcrumb a {
    color: #fff;
    opacity: 0.9;
}

.single-breadcrumb a:hover {
    opacity: 1;
}

.single-breadcrumb span {
    opacity: 0.6;
}

.single-hero-content .badge-categoria {
    margin-bottom: 0.75rem;
    display: inline-block;
}

.single-hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.single-hero-meta span,
.single-hero-meta a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
}

.single-hero-meta a:hover {
    text-decoration: underline;
}

/* ========================================
   SINGLE POST - CONTEÚDO
   ======================================== */
.single-container {
    padding: 2rem 0;
    background: var(--cor-fundo);
}

.single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.single-main {
    min-width: 0;
}

.single-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.single-post .post-content {
    background: #fff;
    padding: 2rem;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    line-height: 1.8;
    font-size: 1.05rem;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-post .post-content p {
    margin-bottom: 1.25rem;
}

.single-post .post-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: var(--raio-borda);
    margin: 1.5rem 0;
    display: block;
}

/* Força imagens e figuras a não ultrapassar o container */
.single-post .post-content figure,
.single-post .post-content .wp-block-image {
    max-width: 100%;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.single-post .post-content figure img,
.single-post .post-content .wp-block-image img {
    max-width: 100% !important;
    width: 100%;
    height: auto;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Links dentro do conteúdo do post */
.single-post .post-content a {
    color: var(--cor-link, #1e293b);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.single-post .post-content a:hover {
    color: var(--cor-link-hover, #1e40af);
}

.single-post .post-share {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
}

.single-post .post-share h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.single-post .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-post .share-buttons .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    width: auto;
    height: auto;
    justify-content: flex-start;
}

.single-post .share-buttons .share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.single-post .share-btn.share-facebook {
    background: #1877f2;
}

.single-post .share-btn.share-facebook:hover {
    background: #166fe5;
}

.single-post .share-btn.share-whatsapp {
    background: #25d366;
}

.single-post .share-btn.share-whatsapp:hover {
    background: #22c55e;
}

.single-post .share-btn.share-twitter {
    background: #1da1f2;
}

.single-post .share-btn.share-twitter:hover {
    background: #0c8de4;
}

.single-post .share-btn.share-email {
    background: #64748b;
}

.single-post .share-btn.share-email:hover {
    background: #475569;
}

.single-post .share-btn.share-copy {
    background: #0ea5e9;
}

.single-post .share-btn.share-copy:hover {
    background: #0284c7;
}

.single-post .post-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-post .post-header {
    margin-bottom: 1.5rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
}

.single-post .post-thumbnail img {
    width: 100%;
    border-radius: var(--raio-borda-lg);
}

.single-post .post-tags {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--raio-borda);
}

.single-post .post-tags .tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.single-post .comments-area {
    margin-top: 3rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .single-grid {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classificados-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filtros-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classificado-container {
        grid-template-columns: 1fr;
    }
    
    .classificado-sidebar {
        position: static;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    /* Header Mobile */
    .header-top {
        display: none;
    }
    
    .header-main .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    .site-branding {
        flex: 0 0 auto;
        max-width: 50%;
        overflow: visible;
    }
    
    .site-branding img {
        max-height: 45px;
        width: auto;
        transform: scale(1.2);
        transform-origin: left center;
    }
    
    /* Logo Mobile - troca quando há logo mobile configurado */
    .site-logo-desktop {
        display: none;
    }
    
    .site-logo-mobile {
        display: block;
    }
    
    .site-logo-mobile img {
        max-height: 40px;
        transform: none;
    }
    
    .header-actions-desktop {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-card {
        min-height: 350px;
    }
    
    .hero-card-content .card-title {
        font-size: 1.5rem;
    }
    
    .weather-row,
    .weather-loteria-row {
        grid-template-columns: 1fr;
    }
    
    .weather-current {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .weather-extra {
        justify-content: center;
    }
    
    .weather-anuncio {
        display: none;
    }
    
    .loteria-tabs {
        padding: 0.4rem;
        gap: 0.1rem;
    }
    
    .loteria-tab {
        font-size: 0.5rem;
        padding: 0.2rem 0.3rem;
    }
    
    .loteria-slides {
        height: 160px;
    }
    
    .loteria-slide {
        padding: 0.5rem 0.75rem;
        height: 160px;
    }
    
    .loteria-slide-dezenas {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.25rem;
    }
    
    .dezena-big {
        min-width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .premio-valor,
    .ganhadores-num {
        font-size: 0.95rem;
    }
    
    /* Single Post Mobile */
    .single-hero {
        min-height: 300px;
    }
    
    .single-hero-title {
        font-size: 1.5rem;
    }
    
    .single-hero-meta {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    
    .single-breadcrumb {
        font-size: 0.7rem;
    }
    
    .single-container {
        padding: 1rem 0;
    }
    
    .single-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post .post-content {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .single-post .post-share {
        padding: 1rem;
    }
    
    .single-post .share-buttons {
        justify-content: center;
    }
    
    .single-post .share-btn span {
        display: none;
    }
    
    .single-post .share-btn {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .single-post .post-navigation {
        flex-direction: column;
    }
    
    .single-post .post-navigation .btn {
        width: 100%;
        text-align: center;
    }
    
    .news-grid,
    .news-grid-3,
    .news-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .classificados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filtros-form {
        grid-template-columns: 1fr;
    }
    
    .form-grupo-inline {
        grid-template-columns: 1fr;
    }
    
    .minha-conta-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .anuncios-tabela {
        font-size: 0.875rem;
    }
    
    .anuncios-tabela th,
    .anuncios-tabela td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .classificados-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
    }
    
    .acoes-btns {
        flex-direction: column;
    }
    
    .acoes-btns .btn {
        width: 100%;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */
:focus {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--cor-primaria);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --cor-primaria: #0000ee;
        --cor-borda: #000;
    }
    
    .card {
        border: 2px solid var(--cor-borda);
    }
}

/* ========================================
   COMPATIBILIDADE ELEMENTOR
   ======================================== */
.elementor-page .site-content {
    padding: 0;
}

.elementor-page .container {
    max-width: none;
    padding: 0;
}

.elementor-kit-* {
    --e-global-color-primary: var(--cor-primaria);
    --e-global-color-secondary: var(--cor-secundaria);
}

/* ========================================
   COOKIE CONSENT - OVERRIDE MINIMALISTA
   ======================================== */
.cky-consent-container .cky-preference-center {
    max-width: 650px !important;
    max-height: 80vh !important;
}

.cky-consent-container .cky-preference-header {
    padding: 1rem 1.5rem !important;
}

.cky-consent-container .cky-preference-title {
    font-size: 1.1rem !important;
}

.cky-consent-container .cky-preference-body-wrapper {
    padding: 0.75rem 1.5rem !important;
}

.cky-consent-container .cky-accordion-item {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.cky-consent-container .cky-accordion-header-title {
    font-size: 0.9rem !important;
}

.cky-consent-container .cky-accordion-header-desc {
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
}

.cky-consent-container .cky-preference-footer {
    padding: 0.75rem 1.5rem !important;
}

.cky-consent-container .cky-btn {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
}

/* ========================================
   SEÇÕES DINÂMICAS DA HOME
   ======================================== */
.home-section {
    padding: 3rem 0;
}

.home-section:nth-child(even) {
    background: #f8fafc;
}

.home-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.home-section .section-ver-mais {
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.home-section .section-ver-mais:hover {
    color: var(--cor-secundaria);
}

/* Grid layouts */
.section-grid {
    display: grid;
    gap: 1.5rem;
}

.section-grid.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
}

.section-grid.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.section-grid.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Layout Destaque */
.section-grid-destaque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.section-grid-destaque .card-destaque-grande {
    grid-row: span 3;
}

.section-grid-destaque .card-destaque-grande .card-imagem {
    height: 100%;
    min-height: 400px;
}

.section-grid-destaque .card-destaque-grande .card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.section-grid-destaque .card-destaque-grande .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    border-radius: 0 0 12px 12px;
    color: #fff;
}

.section-grid-destaque .card-destaque-grande .card-titulo {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #fff;
}

.section-grid-destaque .card-destaque-grande .card-resumo {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.section-grid-destaque .card-destaque-grande {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.section-grid-destaque .card-destaque-menor {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-grid-destaque .card-destaque-menor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.section-grid-destaque .card-destaque-menor .card-imagem {
    width: 120px;
    flex-shrink: 0;
}

.section-grid-destaque .card-destaque-menor .card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-grid-destaque .card-destaque-menor .card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-grid-destaque .card-destaque-menor .card-titulo {
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
    line-height: 1.3;
}

/* Layout Lista */
.section-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-lista .card-lista {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.section-lista .card-lista:hover {
    transform: translateX(4px);
}

.section-lista .card-lista .card-imagem {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.section-lista .card-lista .card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-lista .card-lista .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-lista .card-lista .card-titulo {
    font-size: 1rem;
    margin: 0.25rem 0;
}

/* Card Notícia padrão */
.card-noticia {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-noticia:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-noticia .card-link {
    text-decoration: none;
    color: inherit;
}

.card-noticia .card-imagem {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-noticia .card-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-noticia:hover .card-imagem img {
    transform: scale(1.05);
}

.card-noticia .card-categoria {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.card-noticia .card-content {
    padding: 1rem;
}

.card-noticia .card-tempo {
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
    text-transform: uppercase;
}

.card-noticia .card-titulo {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-noticia .card-resumo {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsivo */
@media (max-width: 1024px) {
    .section-grid.grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-grid-destaque {
        grid-template-columns: 1fr;
    }
    
    .section-grid-destaque .card-destaque-grande {
        grid-row: auto;
    }
    
    .section-grid-destaque .card-destaque-grande .card-imagem {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .section-grid.grid-3-cols,
    .section-grid.grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .home-section .section-title {
        font-size: 1.25rem;
    }
    
    .section-grid-destaque .card-destaque-menor {
        flex-direction: column;
    }
    
    .section-grid-destaque .card-destaque-menor .card-imagem {
        width: 100%;
        height: 150px;
    }
}

/* ===========================================
   GERADOR DE POSTS/STORIES - COMPACTO (Desktop)
   =========================================== */

/* Esconde no mobile */
@media (max-width: 1024px) {
    .post-social-generator { display: none !important; }
    .sg-modal { display: none !important; }
}

/* Botão no single */
.post-social-generator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
    color: #fff;
}
.post-social-generator h4 { margin: 0 0 4px; font-size: 0.95rem; color: #fff; }
.post-social-generator .social-generator-desc { margin: 0 0 12px; font-size: 0.8rem; opacity: 0.85; }
.btn-social-generator {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 8px 20px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-social-generator:hover { background: #fff; color: #764ba2; }

/* Modal Compacto */
.sg-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.9); z-index: 99999;
    align-items: center; justify-content: center;
}
.sg-modal.active { display: flex; }

.sg-container {
    background: #fff; border-radius: 12px; width: 95vw; max-width: 950px;
    max-height: 95vh; overflow: hidden; display: flex; flex-direction: column;
}

.sg-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
}
.sg-header h2 { margin: 0; font-size: 1rem; }
.sg-close {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sg-close:hover { background: rgba(255,255,255,0.3); }

.sg-body { padding: 12px; overflow-y: auto; flex: 1; }

/* Formatos */
.sg-formats { display: flex; gap: 8px; margin-bottom: 12px; }
.sg-format {
    flex: 1; padding: 8px 12px; border: 2px solid #e2e8f0; background: #f8fafc;
    border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.sg-format:hover { border-color: #667eea; }
.sg-format.active { border-color: #667eea; background: #667eea; color: #fff; }

/* Layout Principal - Preview menor, controles maiores */
.sg-main { display: grid; grid-template-columns: auto 1fr; gap: 16px; }

/* Canvas */
.sg-canvas-area { 
    background: #1a1a2e; border-radius: 8px; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 530px; padding: 20px; position: relative;
}
.sg-canvas-hint {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; color: rgba(255,255,255,0.5); white-space: nowrap;
}

.sg-canvas {
    position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.sg-canvas.format-post { width: 380px; height: 380px; }
.sg-canvas.format-story { width: 275px; height: 489px; }

.sg-canvas-overlay {
    position: absolute; inset: 0; pointer-events: none;
}

/* Elementos Draggable */
.sg-element {
    position: absolute; cursor: move; user-select: none;
    transition: box-shadow 0.15s;
}
.sg-element:hover { box-shadow: 0 0 0 2px rgba(102,126,234,0.6); }
.sg-element.dragging { box-shadow: 0 0 0 2px #667eea; z-index: 100; }

.sg-tag {
    padding: 4px 10px; border-radius: 3px; font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}

.sg-title {
    font-weight: 800; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    max-width: 90%; word-wrap: break-word;
}

.sg-logo {
    max-width: 70px; max-height: 28px; filter: brightness(0) invert(1); opacity: 0.85;
}

/* Controles Redesenhados */
.sg-controls { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }

/* Seções */
.sg-section {
    background: #f8fafc; border-radius: 8px; padding: 12px;
    border: 1px solid #e2e8f0;
}
.sg-section-title {
    font-size: 0.75rem; font-weight: 700; color: #334155;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.sg-section textarea {
    width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 0.9rem; resize: vertical; min-height: 50px; margin-bottom: 10px;
}
.sg-section textarea:focus { outline: none; border-color: #667eea; }

/* Controles Inline */
.sg-inline-controls {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.sg-slider-group {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 100px;
}
.sg-slider-group span {
    font-size: 0.7rem; color: #64748b; white-space: nowrap;
}
.sg-slider-group input[type="range"] {
    flex: 1; height: 6px; accent-color: #667eea; min-width: 60px;
}

/* Color Picker Estilizado */
.sg-color-picker {
    display: flex; align-items: center; gap: 6px;
}
.sg-color-picker span {
    font-size: 0.7rem; color: #64748b;
}
.sg-color-picker input[type="color"] {
    width: 32px; height: 32px; border: 2px solid #e2e8f0; border-radius: 6px;
    cursor: pointer; padding: 2px; transition: all 0.15s;
}
.sg-color-picker input[type="color"]:hover {
    border-color: #667eea; transform: scale(1.05);
}

/* Toggle */
.sg-toggle {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: #475569; cursor: pointer;
    background: #fff; padding: 6px 10px; border-radius: 6px;
    border: 1px solid #e2e8f0; transition: all 0.15s;
}
.sg-toggle:hover { border-color: #667eea; }
.sg-toggle input { width: 16px; height: 16px; accent-color: #667eea; }

.sg-section-inline { background: transparent; border: none; padding: 0; }

/* Legenda IA */
.sg-section-legend { flex: 1; display: flex; flex-direction: column; }
.sg-btn-ia {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
    border: none; padding: 6px 12px; border-radius: 16px;
    font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.sg-btn-ia:hover { transform: scale(1.02); box-shadow: 0 2px 8px rgba(102,126,234,0.4); }
.sg-btn-ia:disabled { opacity: 0.6; cursor: wait; }

#sg-description {
    flex: 1; width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 0.85rem; resize: vertical; min-height: 80px; line-height: 1.5;
}
.sg-btn-copy {
    margin-top: 8px; width: 100%; padding: 10px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.sg-btn-copy:hover { background: #667eea; color: #fff; border-color: #667eea; }

/* Footer */
.sg-footer {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 10px 16px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.sg-btn-cancel {
    background: #fff; border: 1px solid #e2e8f0; color: #64748b;
    padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.sg-btn-cancel:hover { background: #f1f5f9; }
.sg-btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; color: #fff; padding: 8px 20px; border-radius: 6px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.sg-btn-download:hover { opacity: 0.95; }

/* ========================================
   PÁGINA DO AUTOR
   ======================================== */
.author-page {
    background: var(--cor-fundo);
    min-height: 60vh;
}

/* Hero igual ao archive-hero */
.author-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.author-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.author-header .container {
    position: relative;
    z-index: 1;
}

.author-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.author-bio {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 0.75rem;
    line-height: 1.6;
    max-width: 600px;
    color: #fff !important;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #fff !important;
    opacity: 0.9;
}

.stat-item i {
    font-size: 1rem;
    color: #fff !important;
}

/* Filtros */
.author-filters {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.author-filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 0.45rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}

.filter-group select {
    padding-right: 2rem;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

/* Campos de data */
.filter-date-range {
    min-width: 130px !important;
}

.filter-group input[type="date"] {
    padding: 0.4rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

/* Campo de busca */
.filter-search {
    flex: 1;
    max-width: 280px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding-right: 60px !important;
    cursor: text;
}

.search-loading,
.search-clear {
    position: absolute;
    right: 10px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
}

.search-clear:hover {
    color: #ef4444;
}

.filter-clear {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.filter-clear:hover {
    background: #fee2e2;
}

.filter-results {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
}

/* Grid de Posts */
.author-posts {
    padding: 2rem 0 4rem;
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.author-post-card {
    background: #fff;
    border-radius: var(--raio-borda-lg);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s, box-shadow 0.3s;
}

.author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.author-post-card .post-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}

.author-post-card .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.author-post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.author-post-card .categoria-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.author-post-card .post-card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.author-post-card .post-card-content {
    padding: 1rem;
}

.author-post-card .post-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--cor-texto);
}

.author-post-card .post-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.author-post-card .post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Paginação */
.author-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.author-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    background: #fff;
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.author-pagination .page-numbers:hover {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

.author-pagination .page-numbers.current {
    background: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
}

.author-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* Sem Posts */
.author-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: var(--raio-borda-lg);
}

.author-no-posts i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.author-no-posts h3 {
    font-size: 1.25rem;
    color: var(--cor-texto);
    margin: 0 0 0.5rem;
}

.author-no-posts p {
    color: #64748b;
    margin: 0 0 1.5rem;
}

/* Mobile Filter Button & Off-canvas */
.author-filters-mobile {
    display: none;
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.author-filters-mobile .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.mobile-filter-btn .filter-badge {
    background: #fff;
    color: var(--cor-primaria);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
}

.author-filters-mobile .filter-results {
    font-size: 0.85rem;
    color: #64748b;
}

/* Off-canvas */
.author-filters-offcanvas {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.author-filters-offcanvas.active {
    display: block;
}

.offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease;
}

.offcanvas-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.offcanvas-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offcanvas-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
}

.offcanvas-body {
    padding: 1.25rem;
}

.offcanvas-filter-group {
    margin-bottom: 1.25rem;
}

.offcanvas-filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.offcanvas-filter-group input[type="text"],
.offcanvas-filter-group select,
.offcanvas-filter-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range-inputs input {
    flex: 1;
}

.date-range-inputs span {
    color: #94a3b8;
    font-size: 0.85rem;
}

.offcanvas-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.btn-clear-filters {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-apply-filters {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    background: var(--cor-primaria);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Responsivo - Tablet */
@media (max-width: 1024px) {
    .author-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .author-header {
        padding: 2rem 0;
    }
    
    .author-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .author-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-bio {
        font-size: 0.9rem;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .author-filters .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .author-filter-form {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-group {
        flex: 1;
        min-width: 140px;
    }
    
    .filter-group label {
        display: none;
    }
    
    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="date"] {
        width: 100%;
    }
    
    .filter-search {
        max-width: none;
        width: 100%;
        order: -1;
    }
    
    .filter-date-range {
        min-width: 0 !important;
        flex: 1;
    }
    
    .filter-clear {
        flex-shrink: 0;
    }
    
    .filter-results {
        text-align: center;
        width: 100%;
    }
    
    /* Esconder filtros desktop, mostrar mobile */
    .author-filters-desktop {
        display: none !important;
    }
    
    .author-filters-mobile {
        display: block !important;
    }
    
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .post-card-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
}
