﻿/* stylelint-disable @stylistic/selector-list-comma-newline-after */

/* Variáveis de tema */
:root {
    --background: #f8f6f1;
    --foreground: #212529;
    --header-bg: #fff;
    --header-border: #d6d5d5;
    --slogan: #727272;
    --badge-left: #802727;
    --badge-right: #204986;
    --badge-center-bg: #fff;
    --badge-center-color: #000;
}

body {
    background-color: var(--background);
    color: var(--foreground);
}

.main-background {
    background-color: var(--background);
}
.blog-header-logo {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
    font-size: 2.5rem;
    
}

    .blog-header-logo:hover {
        text-decoration: none;
    }

    .slogan{
        font-size : 0.90rem;
        color: var(--slogan);
    }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
}

.flex-auto {
    flex: 0 0 auto;
}

.h-250 {
    height: 250px;
}

@media (min-width: 768px) {
    .h-md-250 {
        height: 250px;
    }
}

/* Pagination */
.blog-pagination {
    margin-bottom: 4rem;
}

/*
 * Blog posts
 */
.blog-post {
    margin-bottom: 4rem;
}

.blog-post-meta {
    margin-bottom: 1.25rem;
    color: #727272;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

    .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

    .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
    }

.badge-left {
    background-color: var(--badge-left);
    color: white;
}

.badge-right {
    background-color: var(--badge-right);
    color: white;
}

.badge-center, .badge-center *, .dark-mode .badge-center, .dark-mode .badge-center *, .badge-center[style], .dark-mode .badge-center[style] {
    color: #000 !important;
    background-color: #fff !important;
    border: none !important;
}

/* Estilos gerais para PoliticalPositionBar */
.progress-stacked {
    border-radius: 0 !important;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

/* Modo escuro para PoliticalPositionBar */
.dark-mode .progress-stacked {
    border-color: #404040;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-active {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

.table-active:hover {
    background-color: rgba(13, 110, 253, 0.15) !important;
}

/* Modo escuro */
.dark-mode {
    --background: #181a1b;
    --foreground: #f1f1f1;
    --header-bg: #23272b;
    --header-border: #444;
    --slogan: #b0b0b0;
    --badge-left: #c94f4f;
    --badge-right: #4f7fc9;
    --badge-center-bg: #23272b;
    --badge-center-color: #f1f1f1;
}

/* Ajustes para header/top-row se necessário */
.top-row {
    background-color: var(--header-bg) !important;
    border-bottom: 1px solid var(--header-border) !important;
}

/* ArticleItem - modo escuro */
.dark-mode .container .bg-dark-subtle {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
}
.dark-mode .container h3,
.dark-mode .container p:not(.badge-center),
.dark-mode .container small,
.dark-mode .container .text-body,
.dark-mode .container .text-body-secondary {
    color: #f1f1f1 !important;
}
.dark-mode .btn-outline-secondary {
    color: #f1f1f1;
    border-color: #888;
}
.dark-mode .btn-outline-secondary:hover {
    background-color: #333;
    color: #fff;
}

/* Página de Status - modo escuro */
.dark-mode .card {
    background-color: #23272b;
    color: #f1f1f1;
    border-color: #444;
}
.dark-mode .card-header {
    background-color: #181a1b;
    color: #f1f1f1;
    border-bottom: 1px solid #444;
}
.dark-mode .table-light {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
}
.dark-mode .table-hover tbody tr:hover {
    background-color: #333 !important;
    color: #fff !important;
}
.dark-mode .alert-info {
    background-color: #1a1d20;
    color: #f1f1f1;
    border-color: #444;
}

/* Tabela de Status - modo escuro */
.dark-mode .table {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
.dark-mode .table thead th, .dark-mode .table-light th {
    background-color: #181a1b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
.dark-mode .table tbody tr {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
.dark-mode .table-hover tbody tr:hover {
    background-color: #333 !important;
    color: #fff !important;
}
.dark-mode .table td, .dark-mode .table th {
    border-color: #444 !important;
}

/* Menu de navegação e logo - modo escuro */
.dark-mode .nav-scroller {
    background-color: #181a1b;
    border-bottom: 1px solid #444;
}
.dark-mode .nav-link,
.dark-mode .nav-link.active,
.dark-mode .nav-link:focus,
.dark-mode .nav-link:hover {
    color: #f1f1f1 !important;
}
.dark-mode .blog-header-logo {
    color: #f1f1f1 !important;
}

/* Remover regras de modo escuro para PoliticalPositionTag */

/* Modais - modo escuro */
.dark-mode .modal-content {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-mode .modal-header {
    background-color: #181a1b !important;
    color: #f1f1f1 !important;
    border-bottom-color: #444 !important;
}

.dark-mode .modal-body {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
}

.dark-mode .modal-footer {
    background-color: #181a1b !important;
    color: #f1f1f1 !important;
    border-top-color: #444 !important;
}

.dark-mode .modal-title {
    color: #f1f1f1 !important;
}

.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* List-group dentro de modais - modo escuro */
.dark-mode .list-group {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
}

.dark-mode .list-group-item {
    background-color: #23272b !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}

.dark-mode .list-group-item:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Alertas dentro de modais - modo escuro */
.dark-mode .alert-info {
    background-color: #0c5460 !important;
    color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

.dark-mode .alert-warning {
    background-color: #856404 !important;
    color: #fff3cd !important;
    border-color: #ffeaa7 !important;
}

/* Botões dentro de modais - modo escuro */
.dark-mode .modal .btn-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

.dark-mode .modal .btn-secondary:hover {
    background-color: #5a6268 !important;
    color: #fff !important;
}

/* Estilos existentes */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Estilos para o carrossel de histórias em destaque */
.featured-story-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    padding: 2rem;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.featured-story-card:hover {
    transform: scale(1.02);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.491) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 2rem;
    border-radius: 0;
}

.featured-content {
    position: relative;
    z-index: 2;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.featured-meta {
    display: flex;
    align-items: center;
}

/* Carrossel customizado */
.carousel {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background-color: #f8f6f1;
}

.carousel-indicators {
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
}

.carousel-indicators button.active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
    .featured-story-card {
        padding: 1.5rem;
        min-height: 400px;
    }
    
    .featured-overlay {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
}

/* Estilos para a página de histórias */
.story-card {
    transition: transform 0.2s ease-in-out;
}

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

/* Estilos para cards horizontais */
.story-card-horizontal {
    transition: transform 0.2s ease-in-out;
}

.story-card-horizontal:hover {
    transform: translateY(-2px);
}

.story-card-horizontal .card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 200px; /* Altura fixa para todos os cards */
}

.story-card-horizontal .card .row {
    height: 100%;
}

.story-card-horizontal .card .col-md-4 {
    height: 100%;
    padding: 0;
}

.story-card-horizontal .card .col-md-8 {
    height: 100%;
    padding: 0;
}

.story-card-horizontal .card-img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-horizontal:hover .card-img {
    transform: scale(1.05);
}

.story-card-horizontal .card-body {
    height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.story-card-horizontal .card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-card-horizontal .card-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.story-card-horizontal .position-relative {
    height: 100%;
}

/* Responsividade para cards horizontais */
@media (max-width: 768px) {
    .story-card-horizontal .card {
        height: auto;
        min-height: 200px;
    }
    
    .story-card-horizontal .card .row {
        height: auto;
    }
    
    .story-card-horizontal .card .col-md-4 {
        height: 200px;
    }
    
    .story-card-horizontal .card .col-md-8 {
        height: auto;
        min-height: 150px;
    }
    
    .story-card-horizontal .card-body {
        height: auto;
        min-height: 150px;
    }
}

/* Estilos para cards da sidebar */
.sidebar-card {
    transition: transform 0.2s ease-in-out;
}

.sidebar-card:hover {
    transform: translateY(-2px);
}

.sidebar-card .card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 150px;
}

.sidebar-card .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.sidebar-card .card-text {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.sidebar-card .badge {
    font-size: 0.7rem;
}

.sidebar-card .badge-container {
    margin-bottom: 0.75rem;
}

.sidebar-card .political-bar-container {
    margin-top: auto;
}

/* Modo escuro para cards da sidebar */
.dark-mode .sidebar-card .card {
    background-color: #23272b;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode .sidebar-card .card-title {
    color: #f1f1f1;
}

.dark-mode .sidebar-card .card-text {
    color: #b0b0b0;
}

.story-card .card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.story-card .card-img-top {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.story-card:hover .card-img-top {
    transform: scale(1.05);
}

.story-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.story-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.story-card .card-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Animações de loading */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Estilos para paginação */
.pagination .page-link {
    border: none;
    color: #6c757d;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* Estilos para badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Estilos para botões */
.btn-outline-primary {
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilos específicos para PoliticalPositionBar em StoryCard */
.story-card .progress-stacked {
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;
}

.story-card .progress-bar {
    transition: width 0.6s ease;
}

/* Responsividade para cards */
@media (max-width: 768px) {
    .story-card .card-title {
        font-size: 1rem;
    }
    
    .story-card .card {
        min-height: 350px;
    }
    
    .story-card .card-body {
        padding: 1rem;
    }
}

/* Modo escuro para story cards */
.dark-mode .story-card .card {
    background-color: #23272b;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode .story-card .card-title {
    color: #f1f1f1;
}

.dark-mode .story-card .card-text {
    color: #b0b0b0;
}

/* Modo escuro para story cards horizontais */
.dark-mode .story-card-horizontal .card {
    background-color: #23272b;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode .story-card-horizontal .card-title {
    color: #f1f1f1;
}

.dark-mode .story-card-horizontal .card-text {
    color: #b0b0b0;
}

/* Estilos para a página de detalhes da história */
.story-header-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 2.5rem;
    color: #212529;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.story-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 2rem;
    border-radius: 0;
}

.story-header-content {
    position: relative;
    z-index: 2;
}

.story-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #212529;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.story-header-meta {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

/* Estilos para cards de artigos */
.article-card {
    transition: transform 0.2s ease-in-out;
}

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

.article-card .card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card .card-img-top {
    transition: transform 0.3s ease;
}

.article-card:hover .card-img-top {
    transform: scale(1.05);
}

.article-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.article-card .card-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Responsividade para página de detalhes */
@media (max-width: 768px) {
    .story-header-card {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .story-header-title {
        font-size: 1.8rem;
    }
    
    .story-header-overlay {
        padding: 1rem;
    }
}

/* Modo escuro para página de detalhes */
.dark-mode .article-card .card {
    background-color: #23272b;
    color: #f1f1f1;
    border-color: #444;
}

.dark-mode .article-card .card-title {
    color: #f1f1f1;
}

.dark-mode .article-card .card-text {
    color: #b0b0b0;
}

/* Modo escuro para carrossel */
.dark-mode .carousel {
    background-color: #181a1b;
}

.dark-mode .carousel-indicators button {
    background-color: rgba(255,255,255,0.3);
}

.dark-mode .carousel-indicators button.active {
    background-color: #f1f1f1;
}

/* Layout para garantir que o rodapé fique sempre no fim */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 1rem 0;
}

/* Estilos para o rodapé compacto */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    position: relative;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.footer h6 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer h6 i {
    opacity: 0.8;
}

.footer .social-links {
    margin-top: 0;
}

.footer .social-links a {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem;
    border-radius: 50%;
}

.footer .social-links a:hover {
    color: #0d6efd !important;
    transform: translateY(-1px);
    background-color: rgba(13, 110, 253, 0.1);
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #0d6efd !important;
    transform: translateY(-1px);
}

/* Modo escuro para o rodapé */
.dark-mode .footer {
    background-color: #23272b;
    border-color: #444;
}

.dark-mode .footer::before {
    background: linear-gradient(90deg, transparent, #444, transparent);
}

.dark-mode .footer h6 {
    color: #f1f1f1;
}

.dark-mode .footer .text-muted {
    color: #adb5bd !important;
}

.dark-mode .footer .social-links a:hover {
    color: #6ea8fe !important;
    background-color: rgba(110, 168, 254, 0.1);
}

.dark-mode .footer a:hover {
    color: #6ea8fe !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
        display: flex;
        margin-top: 0.5rem;
    }
    
    .footer .d-flex {
        flex-direction: column;
        align-items: center !important;
    }
    
    .footer .d-flex h6 {
        margin-bottom: 0.5rem;
    }
}

