/*
Theme Name: Portal de Notícias RBC
Theme URI: https://www.rbc.net.br
Author: Wesley Rodrigues
Author URI: https://www.rbc.net.br
Description: Tema personalizado para o portal de notícias do grupo RBC.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: portal-de-noticias-rbc
*/

/*
|------------------------------------
|    HEADER
|-----------------------------------
*/

body {
    font-family: 'Lora', serif;
}

#site-header {
  text-align: center;
  padding: 0;
}

/* Data */
.header-date {
  font-size: 14px;
  margin: 0;
  padding: 5px 0;
  background-color: #ccc;
  color: #000;
}

/* Área do logo */
.logo-area {
  background-color: #000;
  padding: 15px 0;
  margin: 0;
}

/* Logo 
.site-logo img {
  max-height: 100px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}
*/

/* Menu principal */
#main-navigation {
  margin: 0;
  padding: 10px 0;
  background-color: #ccc;
  text-align: center;
}

.main-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.main-menu li {
  display: inline-block;
  margin: 0;
}

.main-menu a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  padding: 8px 12px;
  transition: all 0.3s ease;
}


/* Responsividade */
@media (max-width: 768px) {
  .header-date {
    font-size: 13px;
  }

  .site-logo img {
    max-height: 90px;
  }

  .main-menu a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    max-height: 80px;
  }

  .main-menu a {
    font-size: 13px;
    padding: 5px 8px;
  }

  .main-menu ul {
    gap: 6px;
  }
}

/*
|------------------------------------
|   SECTIONS
|-----------------------------------
*/

.section-title{
    position:relative; 
    padding-bottom:8px; 
    display:inline-block; 
    border-bottom:3px solid red;
}







/*
|------------------------------------
|   LEGENDA DE FOTOS
|-----------------------------------
*/

.image-caption,
.wp-block-image figcaption,
.wp-caption-text {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
    text-align: left;
}

/*
|------------------------------------
|    SLIDER ESPORTES
|-----------------------------------
*/
.slider-container {
	max-width: 650px;
	position: relative;
	font-family: Arial, sans-serif;
	margin: 20px auto;
}
.slides-wrapper {
	overflow-x: auto;
	scroll-behavior: smooth;
	display: flex;
	gap: 12px;
	padding-bottom: 10px;
}
.slide-jogo {
	flex: 0 0 300px;
	border: 1px solid #ddd;
	padding: 8px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 4px;
}
h3 {
	font-size: 14px;
	margin-bottom: 6px;
	font-weight: bold;
}
.times-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
}
.time-info {
	display: flex;
	align-items: center;
	gap: 6px;
}
.time-logo {
	width: 40px;
	height: auto;
}
.time-sigla {
	font-weight: bold;
	font-size: 14px;
}
.time-resultado {
	font-size: 18px;
	font-weight: bold;
}
.info-estadio, .info-data {
	font-size: 12px;
	color: #555;
	margin-bottom: 6px;
}
.tempo-real {
	font-weight: bold;
	font-size: 12px;
	color: #007BFF;
}
.slider-controls {
	text-align: center;
	margin-top: 8px;
}
.slider-controls button {
	padding: 6px 14px;
	margin: 0 10px;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid #007BFF;
	background: white;
	color: #007BFF;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}
.slider-controls button:hover {
	background-color: #007BFF;
	color: white;
}

/* Título */
.entry-title {
  font-size: 32px;
  font-weight: bold;
}

/*
|------------------------------------
|    BOTÕES PARA REDES SOCIAIS
|-----------------------------------
*/
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 18px;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.share-icon.whatsapp { background: #25D366; }
.share-icon.whatsapp:hover { background: #1da851; }

.share-icon.facebook { background: #3b5998; }
.share-icon.facebook:hover { background: #2d4373; }

.share-icon.telegram { background: #0088cc; }
.share-icon.telegram:hover { background: #006eaa; }

.share-icon.twitter { background: #000; }
.share-icon.twitter:hover { background: #222; }

/*
|------------------------------------
|    VIDEOS DO YOUTUBE
|-----------------------------------
*/
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
















/* =========================
   ÁREA DE COMENTÁRIOS
========================= */

.comments-border,
.comments-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.comment-city {
    font-weight: 400;
    color: #555;
    margin-left: 5px;
}

.comment-site a {
    color: #ff0000;
    text-decoration: none;
}

.comment-site a:hover {
    text-decoration: underline;
}

.comments-border small {
    display: block;
    font-size: 0.75rem;
    line-height: 1.0;
    color: #777;
    text-align: justify;
}

/* =========================
   TÍTULOS
========================= */

.comments-area h2.section-title {
    margin-bottom: 0;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* =========================
   LISTA
========================= */

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   CARD DO COMENTÁRIO
========================= */

.comment-card {
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.comment-body {
    display: block;
}

.comment-icon {
    margin-right: 5px;
}

.comment-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.comment-content {
    margin-top: 10px;
    line-height: 1.6;
}

.comment-awaiting {
    color: #f90;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* BOTÃO RESPONDER */

.comment-reply-link {
    color: #ff0000 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-reply-link:hover {
    color: #cc0000 !important;
}

/* =========================
   RESPOSTAS (THREAD)
========================= */

.comment-list .children {
    list-style: none;
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

/* =========================
   FORMULÁRIO (CORRIGIDO)
========================= */

.comment-form-wrapper {
    margin-top: 40px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form p {
    margin: 0;
    width: 100%;
}

/* Labels */

.comment-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Inputs */

.comment-form input,
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Foco */

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus {
    border-color: #e50914;
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

/* Textarea */

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Botão */

.comment-form .form-submit {
    margin-top: 10px;
}

.comment-form input[type="submit"] {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    width: 100%;
}

.comment-form input[type="submit"]:hover {
    background: #b20710;
}

/* CHECKBOX */

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #e50914;
}

/* =========================
   AJUSTES EXTRAS
========================= */

.comments-area > *:first-child {
    margin-top: 0 !important;
}

.comments-area > *:last-child {
    margin-bottom: 0 !important;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {

    .comments-area {
        padding: 20px;
    }

    .comment-card {
        padding: 15px;
    }

    .comment-list .children {
        margin-left: 15px;
        padding-left: 10px;
    }

    .comment-form input[type="submit"] {
        width: 100%;
    }
    
    .comments-border small {
    display: block;
    font-size: 0.70rem;
    line-height: 1.0;
    color: #777;
    text-align: justify;
}
}




























/*
|------------------------------------
|   LISTAGEM DE POSTS (CATEGORIA / HOME)
|-----------------------------------
*/

.category-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2px;
}

.category-title {
    text-align: center;
    margin-bottom: 30px;
}

.category-title.padding {
    padding: 20px 0;
}

/* Card do post */
.category-post {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Thumbnail */
.category-post .post-thumb {
    flex: 1 1 40%;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

.category-post .post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Conteúdo */
.category-post .post-content {
    flex: 1 1 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Meta */
.category-post .post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

/* Chapéu */
.category-post .post-chapeu {
    text-transform: uppercase;
    color: #c00;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.85em;
}

/* Título */
.category-post h2 {
    margin: 0;
    font-size: 1.4em;
    line-height: 1.3em;
}

.category-post h2 a {
    text-decoration: none;
    color: #000;
}

/* Hover */
.category-post:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    border-color: #bbb;
}

/* Responsivo */
@media (max-width: 768px) {
    .category-post {
        flex-direction: column;
    }

    .category-post .post-thumb {
        width: 100%;
        min-height: 220px;
    }

    .category-post .post-content {
        padding: 15px;
    }
}

/* Paginação */
.category-pagination {
    text-align: center;
    margin: 30px 0;
}

.category-pagination a,
.category-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
    transition: background 0.3s;
}

.category-pagination a:hover {
    background: #f0f0f0;
}

.category-pagination .current {
    background: #c00;
    color: #fff;
    border-color: #c00;
}


/* Todos os links dentro do conteúdo ficam azuis */
.entry-content a {
    color: #003366; /* Azul escuro */
    font-weight: bold;
    text-decoration: none; 
}

/* Se quiser que fique mais evidente ao passar o mouse */
.entry-content a:hover {
    color: #000; /* Azul mais vivo ao passar o mouse */
    font-weight: bold;
    text-decoration: none; /* Sublinhado ao passar o mouse, opcional */
}

/* Garantir que em dispositivos mobile o link continue azul e em negrito */
@media (max-width: 768px) {
    .entry-content a {
        color: #003366; /* Azul escuro */
        font-weight: bold;
        text-decoration: none;
    }
}





/* Listas */
.entry-content ul,
.entry-content ol {
    padding-left: 40px;  /* recuo dos bullets ou números */
    margin-left: 0;      /* remove margem externa que empurra a lista */
    list-style-position: outside; /* bullets/números fora do texto */
}

/* Itens da lista */
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em; /* espaçamento entre itens */
}

/* Para listas dentro de outras listas (opcional) */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    padding-left: 20px; /* recuo menor para sublistas */
}
