/* ========================================
   MODO ESCURO - Estilos Base
   ======================================== */

/* Estilos base do body no modo escuro */
body.dark-mode {
    color: #FFF !important;
}

/* Áreas principais de conteúdo */
body.dark-mode .page-content {
    color: #FFF !important;
}

/* Calendário e elementos base */
body.dark-mode #wp-calendar td.pad, 
body.dark-mode .boxed-margin, 
body.dark-mode .boxed, 
body.dark-mode .full {
    background: #262627;
}

body.dark-mode #wp-calendar td, 
body.dark-mode #wp-calendar th {
    border: 1px solid #262627;
    background: #1B1B1B;
}

/* Links e títulos */
body.dark-mode a, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #FFF;
}

body.dark-mode .counter span {
    color: #CCC;
}

body.dark-mode .small_posts li.clearfix {
    border-bottom: 1px solid #363636;
}

body.dark-mode .tags a {
    background: #313131;
}

/* Tooltips */
body.dark-mode .tipsy-inner {
    background-color: #FFF;
    color: #313131;
}

body.dark-mode .tipsy-n .tipsy-arrow:before {
    border-bottom: 6px solid #FFF;
}

body.dark-mode .tipsy-s .tipsy-arrow:before {
    border-top: 6px solid #FFF;
}

body.dark-mode .tipsy-e .tipsy-arrow:before {
    border-top: 6px solid #FFF;
}

body.dark-mode .tipsy-w .tipsy-arrow:before {
    border-right: 6px solid #FFF;
}

/* ========================================
   WIDGET DE PESQUISA - Modo Escuro
   ======================================== */

body.dark-mode .survey-widget {
    background: transparent !important;
}

body.dark-mode .survey-widget .title h4 {
    color: #FFF !important;
}

body.dark-mode .survey-widget .survey-content {
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-question {
    color: #FFF !important;
}

body.dark-mode .survey-widget .survey-question strong {
    color: #FFF !important;
}

body.dark-mode .survey-widget .survey-answer-item {
    background: #313131 !important;
    border: 1px solid #363636 !important;
    border-radius: 4px !important;
}

body.dark-mode .survey-widget .survey-answer-item:hover {
    background: #3a3a3a !important;
}

body.dark-mode .survey-widget .survey-answer-label {
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-answer-text {
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-radio {
    accent-color: #E84A4A;
    color: #CCC !important;
    background-color: #313131 !important;
}

body.dark-mode .survey-widget .survey-results {
    border-top: 1px solid #363636 !important;
}

body.dark-mode .survey-widget .survey-bar-container {
    background: #1B1B1B !important;
    border-radius: 10px !important;
}

body.dark-mode .survey-widget .survey-bar {
    background: linear-gradient(90deg, #E84A4A, #ff6b6b) !important;
}

body.dark-mode .survey-widget .survey-stats {
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-votes,
body.dark-mode .survey-widget .survey-percentage {
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-total-votes {
    border-top: 1px solid #363636 !important;
    color: #CCC !important;
}

body.dark-mode .survey-widget .survey-total-votes small {
    color: #999 !important;
}

body.dark-mode .survey-widget .survey-total-votes strong {
    color: #FFF !important;
}

body.dark-mode .survey-widget .text-muted {
    color: #999 !important;
}

body.dark-mode .survey-widget .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c8c 100%) !important;
    border: 2px solid #ff8c8c !important;
    color: #FFF !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .survey-widget .btn-primary:hover {
    background: linear-gradient(135deg, #ff8c8c 0%, #ffaaaa 100%) !important;
    border-color: #ffaaaa !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
}

body.dark-mode .survey-widget .btn-primary:active {
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

body.dark-mode .survey-widget .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.4) !important;
}

body.dark-mode .survey-widget .survey-submit-container {
    margin-top: 5px !important;
}

body.dark-mode .survey-widget .btn-secondary {
    background-color: #313131 !important;
    border: none !important;
    color: #CCC !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .survey-widget .btn-secondary:hover {
    background-color: #3a3a3a !important;
}

body.dark-mode .survey-widget .btn-secondary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* ========================================
   NOTÍCIAS - Títulos, Subtítulos e Textos
   ======================================== */

/* Títulos principais das notícias */
body.dark-mode .post_day_content h3,
body.dark-mode .post_day_content h3 a,
body.dark-mode .post_m_content h3,
body.dark-mode .post_m_content h3 a,
body.dark-mode .single_post h3,
body.dark-mode .single_post h3 a,
body.dark-mode .single_post .single_title,
body.dark-mode h3.single_title,
body.dark-mode .small_posts h3,
body.dark-mode .small_posts h3 a,
body.dark-mode .small_posts h5,
body.dark-mode .small_posts li h3,
body.dark-mode .small_posts li h3 a {
    color: #FFF !important;
}

/* Todos os parágrafos e textos das notícias */
body.dark-mode .post_day_content,
body.dark-mode .post_day_content p,
body.dark-mode .post_m_content,
body.dark-mode .post_m_content p,
body.dark-mode .single_post,
body.dark-mode .single_post p {
    color: #FFF !important;
}

/* Conteúdo da notícia (vem do TinyMCE) - sobrescrever TODOS os elementos */
body.dark-mode .noticia-content-wrapper,
body.dark-mode .noticia-content-wrapper *,
body.dark-mode .noticia-content-wrapper p,
body.dark-mode .noticia-content-wrapper div,
body.dark-mode .noticia-content-wrapper span,
body.dark-mode .noticia-content-wrapper strong,
body.dark-mode .noticia-content-wrapper em,
body.dark-mode .noticia-content-wrapper b,
body.dark-mode .noticia-content-wrapper i,
body.dark-mode .noticia-content-wrapper li,
body.dark-mode .noticia-content-wrapper ul,
body.dark-mode .noticia-content-wrapper ol,
body.dark-mode .noticia-content-wrapper td,
body.dark-mode .noticia-content-wrapper th,
body.dark-mode .noticia-content-wrapper h1,
body.dark-mode .noticia-content-wrapper h2,
body.dark-mode .noticia-content-wrapper h3,
body.dark-mode .noticia-content-wrapper h4,
body.dark-mode .noticia-content-wrapper h5,
body.dark-mode .noticia-content-wrapper h6 {
    color: #FFF !important;
}

/* Meta informações (data, comentários) */
body.dark-mode .meta,
body.dark-mode .meta a,
body.dark-mode .meta span {
    color: #CCC !important;
}

/* Comentários */
body.dark-mode .recent_comments h5,
body.dark-mode .recent_comments p,
body.dark-mode .recent_comments li {
    color: #FFF !important;
}

/* Galeria de fotos */
body.dark-mode .gallery-container h4 {
    color: #FFF !important;
}

/* Vídeo */
body.dark-mode .video-container h4 {
    color: #FFF !important;
}

/* Slider de notícias principais */
body.dark-mode .slide_details h3,
body.dark-mode .slide_details h3 a {
    color: #FFF !important;
}

/* Área de posts completa */
body.dark-mode .posts p,
body.dark-mode .posts div,
body.dark-mode .posts span,
body.dark-mode .posts li,
body.dark-mode .posts td,
body.dark-mode .posts th,
body.dark-mode .posts blockquote {
    color: #FFF !important;
}

/* Links dentro do conteúdo de notícias (azul claro para contraste) */
body.dark-mode .single_post a:not(.cat),
body.dark-mode .noticia-content-wrapper a {
    color: #4da6ff !important;
}

body.dark-mode .single_post a:not(.cat):hover,
body.dark-mode .noticia-content-wrapper a:hover {
    color: #66b3ff !important;
}

/* ========================================
   PAGINAÇÃO - Modo Escuro
   ======================================== */

body.dark-mode .pagination {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

body.dark-mode .pagination span {
    background: #2B2B2B;
    color: #e0e0e0;
}

/* ========================================
   GALERIA DE FOTOS - Modo Escuro
   ======================================== */

body.dark-mode .gallery-header {
    border-bottom: 2px solid #E84A4A;
}

body.dark-mode .gallery-header h4 {
    color: #FFF !important;
}

body.dark-mode .gallery-counter {
    background: #2B2B2B;
    color: #e0e0e0;
}

body.dark-mode .gallery-counter span {
    color: #E84A4A;
}

body.dark-mode .gallery-loader p {
    color: #e0e0e0;
}

body.dark-mode .gallery-thumbnail {
    background: #2B2B2B;
}

/* ========================================
   FORMULÁRIO DE COMENTÁRIOS - Modo Escuro
   ======================================== */

body.dark-mode .comment-form-container h5 {
    color: #FFF;
    border-top: 1px solid #363636;
}

body.dark-mode .comment-form-container label {
    color: #e0e0e0;
}

body.dark-mode .comment-form-container .form-control {
    background: #2B2B2B;
    border: 1px solid #444;
    color: #FFF;
}

body.dark-mode .comment-form-container .form-control:focus {
    background: #2B2B2B;
    border-color: #E84A4A;
    color: #FFF;
}

body.dark-mode .comment-form-container .form-text {
    color: #999;
}

body.dark-mode .recent_comments li {
    border-bottom: 1px solid #363636;
}

body.dark-mode .recent_comments h5 {
    color: #FFF;
}

body.dark-mode .recent_comments p {
    color: #e0e0e0;
}

body.dark-mode .recent_comments .text-muted {
    color: #999 !important;
}