/**
 * @file
 * Estilos para a página de Notícias Jurídicas
 * Petições Online - Template Customizado
 */

:root {
    --primary-green: #2d5f2e;
    --secondary-green: #4a8f4d;
    --light-green: #e8f5e9;
    --accent-green: #66bb6a;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

/* BREADCRUMB */
.breadcrumb {
    background: var(--primary-green);
    padding: 12px 0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--white);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb i { font-size: 0.75rem; opacity: 0.7; }

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1e4620 100%);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

.hero-container { max-width: 900px; margin: 0 auto; }

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2.25rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.9375rem; opacity: 0.9; }

/* NAVEGAÇÃO RÁPIDA */
.quick-nav {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 2px solid #e0e0e0;
}

.quick-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-nav-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-dropdown { position: relative; }

.nav-dropdown-btn {
    background: var(--secondary-green);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-dropdown-btn.alt {
    background: var(--light-green);
    color: var(--primary-green);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 15px;
    min-width: 280px;
    z-index: 50;
    display: none;
}

.nav-dropdown:hover .nav-dropdown-content { display: block; }

.nav-dropdown-content a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.nav-dropdown-content a:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.nav-dropdown-content .count {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.quick-nav-separator {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

.quick-nav-info {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.quick-nav-info strong { color: var(--secondary-green); }

/* breadcrumbs */
#breadcrumbs.container {
    max-width: unset;
    width: 100%;
    background: #2d5f2e;
}

#breadcrumbs nav {
    max-width: 1320px;
    margin: 0 auto !important;
}

#breadcrumbs .breadcrumb-item:not(:first-child) a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

#breadcrumbs .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

#breadcrumbs .breadcrumb-item:first-child a {
    color: #ffffff;
}

/* MAIN CONTAINER */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 45px;
    height: 45px;
    background: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-green);
    font-size: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-green);
}

.carousel-counter {
    background: var(--light-green);
    color: var(--secondary-green);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* CARROSSEL */
.carousel-section { margin-bottom: 50px; }

.featured-carousel {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

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

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.featured-main {
    display: flex;
    flex-direction: column;
    padding: 40px;
    min-height: 480px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.meta-item i { color: var(--secondary-green); }

.featured-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.featured-summary {
    color: var(--dark-gray);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
    text-align: justify;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    background: var(--secondary-green);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}

.read-more:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.featured-side {
    background: var(--light-gray);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid #e0e0e0;
    max-height: 480px;
    overflow-y: auto;
}

.side-title-area {
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.side-main-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
}

.side-card {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.side-card:hover {
    transform: translateX(4px);
    border-color: var(--secondary-green);
}

.side-card.active {
    background: var(--light-green);
    border-color: var(--secondary-green);
}

.side-number {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--light-green);
    color: var(--secondary-green);
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: 800;
    font-size: 0.8125rem;
    margin-bottom: 8px;
}

.side-card.active .side-number {
    background: var(--secondary-green);
    color: var(--white);
}

.side-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.side-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.side-badge {
    background: var(--light-green);
    color: var(--secondary-green);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.6875rem;
}

/* CONTROLES CARROSSEL */
.carousel-controls {
    position: absolute;
    bottom: 25px;
    left: calc(50% - 77px);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--secondary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--secondary-green);
    font-size: 1.125rem;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--secondary-green);
    color: var(--white);
}

.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-play-pause {
    width: 50px;
    height: 50px;
    background: var(--secondary-green);
    color: var(--white);
    border: 3px solid var(--white);
}

.carousel-indicators {
    position: absolute !important;
    bottom: 25px !important;
    right: 40px !important;
    left: auto !important;
    margin: 0 !important;
    display: flex !important;
    gap: 8px;
    z-index: 10;
    justify-content: flex-end !important;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(0,0,0,0.2);
    border: 2px solid var(--secondary-green);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: var(--secondary-green);
    width: 28px;
    border-radius: 5px;
}

.autoplay-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.1);
}

.autoplay-bar {
    height: 100%;
    background: var(--secondary-green);
    width: 0%;
    transition: width 0.1s linear;
}

.timer-display {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(45,95,46,0.9);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* FILTROS */
.filters-section {
    background: var(--white);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

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

.filters-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
}

.filters-header-left i {
    font-size: 1.25rem;
}

.filters-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.view-toggle {
    display: flex;
    gap: 6px;
    background: var(--light-gray);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--medium-gray);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn.active {
    background: var(--secondary-green);
    color: var(--white);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label i {
    color: var(--secondary-green);
    font-size: 1rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--dark-gray);
    cursor: pointer;
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.search-keyword-wrapper {
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--dark-gray);
    background: var(--white);
}

.filter-input:focus {
    outline: none;
    border-color: var(--secondary-green);
}

.filter-input::placeholder {
    color: #999;
}

.filter-actions {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding-top: 10px;
}

.filter-actions .search-group {
    flex: 1;
    min-width: 300px;
}

.filter-actions .filter-input {
    width: 100%;
}

.btn-search,
.btn-clear {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn-search {
    background: var(--secondary-green);
    color: var(--white);
}

.btn-search:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.3);
}

.btn-clear {
    background: #f5f5f5;
    color: var(--medium-gray);
    border: 2px solid #e0e0e0;
}

.btn-clear:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* CONTEÚDO COM SIDEBAR */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* GRID DE NOTÍCIAS */
.news-section { margin-bottom: 40px; }

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.results-count { color: var(--medium-gray); }
.results-count strong { color: var(--secondary-green); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Visualização em Lista */
.news-grid.list-view,
.news-grid.news-list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-grid.list-view .news-card,
.news-grid.news-list-view .news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 150px;
}

.news-grid.list-view .news-card-image,
.news-grid.news-list-view .news-card-image {
    height: 100%;
    min-height: 150px;
}

.news-grid.list-view .news-card:hover,
.news-grid.news-list-view .news-card:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-grid.list-view .news-card,
    .news-grid.news-list-view .news-card {
        grid-template-columns: 1fr;
    }

    .news-grid.list-view .news-card-image,
    .news-grid.news-list-view .news-card-image {
        height: 160px;
        min-height: 160px;
    }
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.news-card-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--light-green) 0%, #d4edd6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid var(--secondary-green);
    overflow: visible;
    border-radius: 12px 12px 0 0;
}

.news-card-image i {
    font-size: 3.5rem;
    color: var(--secondary-green);
    opacity: 0.25;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary-green);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: visible;
    z-index: 10;
}

.news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: var(--medium-gray);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta-item i { color: var(--secondary-green); }

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.card-excerpt {
    color: var(--medium-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.card-category {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-green);
    font-size: 0.8125rem;
    font-weight: 600;
}

.card-read-time {
    color: var(--medium-gray);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* PAGINAÇÃO */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-info {
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 8px;
    color: var(--dark-gray);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background: var(--light-green);
    border-color: var(--secondary-green);
    color: var(--secondary-green);
    text-decoration: none;
}

.page-item.active .page-link {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    color: var(--white);
    font-weight: 600;
}

.page-item.disabled .page-link {
    background: var(--light-gray);
    border-color: var(--light-border);
    color: var(--medium-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    background: var(--light-gray);
    border-color: var(--light-border);
    color: var(--medium-gray);
}

.page-link i {
    font-size: 0.875rem;
}

/* Responsivo para paginação */
@media (max-width: 576px) {
    .pagination {
        gap: 4px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 0.875rem;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 6px 12px;
    }

    /* Esconder texto em mobile, manter apenas ícones */
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        font-size: 0;
    }

    .page-item:first-child .page-link i,
    .page-item:last-child .page-link i {
        font-size: 1rem;
    }
}

/* Animação de loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PAGE STATS WIDGET */
.page-stats-widget {
    background: var(--white);
    padding: 15px 20px;
}

.page-stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.page-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.page-stat-item i {
    font-size: 1.1rem;
    color: var(--secondary-green);
}

.page-stat-item .stat-label {
    color: var(--medium-gray);
}

.page-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.page-like-btn:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.page-like-btn:hover i {
    color: var(--primary-green);
}

.page-like-btn.active {
    color: var(--primary-green);
    background: var(--light-green);
}

.page-like-btn.active i {
    color: var(--primary-green);
}

/* NEWSLETTER WIDGET */
.newsletter-widget {
    background: linear-gradient(135deg, var(--light-green) 0%, #c8e6c9 100%);
    border: 2px solid var(--secondary-green);
}

.newsletter-widget p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: rgba(255,255,255,0.8);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-green);
    background: var(--white);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--secondary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: var(--primary-green);
}

.newsletter-disclaimer {
    font-size: 9px;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.newsletter-disclaimer i {
    font-size: 10px;
    color: var(--secondary-green);
    margin-right: 4px;
}

/* POPULARES */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item:hover { padding-left: 8px; }

.popular-number {
    width: 30px;
    height: 30px;
    background: var(--light-green);
    color: var(--secondary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.popular-content { flex: 1; }

.popular-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.popular-meta {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* CATEGORIAS */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: all 0.3s;
}

.category-item:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.category-count {
    background: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--secondary-green);
    font-weight: 700;
}

/* MODAL NEWSLETTER */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--secondary-green);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

.modal-email {
    background: var(--light-gray);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}

.modal-email i {
    color: var(--secondary-green);
    margin-right: 8px;
}

.modal-instructions {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: left;
}

.modal-instructions p {
    font-size: 0.875rem;
    color: #795548;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-instructions i {
    color: #ff9800;
    font-size: 1.125rem;
}

.modal-btn {
    background: var(--secondary-green);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-btn:hover {
    background: var(--primary-green);
}

.modal-footer {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--medium-gray);
}

.modal-footer a {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   BARRA DE COMPARTILHAMENTO FLUTUANTE
   ============================================ */
.share-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.share-floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.share-floating-btn.whatsapp { background: #25D366; }
.share-floating-btn.telegram { background: #0088cc; }
.share-floating-btn.linkedin { background: #0077B5; }
.share-floating-btn.twitter { background: #1DA1F2; }
.share-floating-btn.facebook { background: #1877F2; }
.share-floating-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-floating-btn.email { background: var(--secondary-green); }
.share-floating-btn.copy { background: var(--primary-green); }

.share-floating-label {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-bottom: 5px;
    border: 1px solid #ffffff;
}

/* Tooltip */
.share-floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: var(--dark-gray);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.share-floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation para destacar */
.share-floating-btn.whatsapp {
    animation: pulse-share 2s ease-in-out infinite;
}

@keyframes pulse-share {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
}

/* HERO SHARE BUTTONS */
.hero-share {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-share-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-share-btn:hover {
    transform: translateY(-3px);
    border-color: var(--white);
}

.hero-share-btn.whatsapp { background: rgba(37, 211, 102, 0.9); }
.hero-share-btn.telegram { background: rgba(0, 136, 204, 0.9); }
.hero-share-btn.linkedin { background: rgba(0, 119, 181, 0.9); }
.hero-share-btn.email { background: rgba(74, 143, 77, 0.9); }

.hero-share-btn i { font-size: 1.125rem; }

/* RESPONSIVO */
@media (max-width: 1200px) {
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; }
}

@media (max-width: 1024px) {
    .carousel-slide { grid-template-columns: 1fr; }
    .featured-side {
        border-left: none;
        border-top: 2px solid #e0e0e0;
        flex-direction: row;
        overflow-x: auto;
        max-height: 280px;
    }
    .side-title-area { display: none; }
    .side-card { min-width: 200px; }
    .featured-main { min-height: auto; padding: 30px; }

    /* Esconde floating em mobile */
    .share-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .quick-nav-grid { flex-direction: column; }
    .quick-nav-separator { display: none; }
    .quick-nav-info { margin-left: 0; }
    .news-grid { grid-template-columns: 1fr; }
    .filters-grid { grid-template-columns: 1fr; }

    .hero-share-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-share-btn {
        justify-content: center;
    }
}

/* ========================================
   NOTIFICAÇÕES TOAST
   ======================================== */

.post-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.post-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.post-notification.toast-success {
    border-left: 4px solid var(--primary-green);
    color: var(--primary-dark);
}

.post-notification.toast-warning {
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.post-notification.toast-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.post-notification.toast-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

@media (max-width: 768px) {
    .post-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
}
