/*
Theme Name: Onde Salva
Theme URI: https://ondesalva.com
Author: Onde Salva
Version: 6.9.0
Description: Tema de notícias moderno, ultra leve e 100% customizável sem plugins.
*/

/* ==========================================================================
   0. RESET & ESTRUTURA GLOBAL
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f4f6;
    color: #111;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Barra de Progresso no Topo */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-color, #e50914);
    width: 0%;
    z-index: 999999;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   1. CABEÇALHO (HEADER & NAVBAR)
   ========================================================================== */

.site-header {
    background-color: var(--header-bg, #111113);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    position: relative;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

/* Centralização Absoluta da Logo */
.site-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 45px;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
    max-height: 45px;
    text-decoration: none;
}

.site-logo img {
    max-height: 45px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block;
}

.site-logo .text-logo {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botões Uniformes em Caixa (Hambúrguer e Lupa) */
button.header-btn {
    background: transparent !important;
    border: none !important;
    outline: none;
    box-shadow: none;
    color: #ffffff !important;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

button.icon-box-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
}

button.icon-box-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

/* Botões de Conta */
.register-btn, .account-btn {
    background-color: var(--accent-color, #e50914);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: filter 0.2s ease;
}

.register-btn:hover, .account-btn:hover {
    filter: brightness(1.15);
}

/* Botão Entrar */
.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.25s ease;
}

.login-link:hover {
    background-color: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-1px);
}

body:not(.dark-mode) .site-header .login-link {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Barra de Busca Retrátil (Ajustada Claro/Escuro) */
.search-bar-container {
    display: none;
    background-color: rgba(0,0,0,0.2);
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.search-bar-container.active {
    display: block;
}

.search-bar-container input[type="search"] {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    outline: none;
    transition: all 0.25s ease;
    background-color: #ffffff !important;
    color: #111113 !important;
    border: 1px solid #dcdce6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.search-bar-container input[type="search"]::placeholder {
    color: #666670 !important;
}

/* ==========================================================================
   2. GAVETA LATERAL (MENU OFF-CANVAS ESTILO VOXEL)
   ========================================================================== */

.drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 320px;
    height: 100vh !important;
    background-color: #ffffff;
    z-index: 1000000 !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-drawer.active {
    left: 0 !important;
}

.drawer-header {
    background-color: var(--header-bg, #111113);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.drawer-logo {
    max-height: 40px;
    display: flex;
    align-items: center;
}

.drawer-logo img {
    max-height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block;
}

.close-drawer {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.drawer-content-wrapper {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.drawer-user-actions {
    padding: 20px;
    background-color: #f8f8fa;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-action-btn {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    color: #222;
    transition: all 0.2s ease;
}

.drawer-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-auth-grid .register-btn,
.drawer-auth-grid .drawer-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease;
}

.drawer-login-btn {
    background-color: #e0e0e5 !important;
    color: #111113 !important;
    border: 1px solid #cccccc !important;
}

.drawer-login-btn:hover {
    background-color: #d0d0d5 !important;
}

.drawer-btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.drawer-nav {
    overflow-y: auto;
    flex: 1;
}

.drawer-menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.drawer-menu-list li {
    border-bottom: 1px solid #eeeeee;
}

.drawer-menu-list li a {
    display: block;
    padding: 16px 20px;
    color: #222222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.drawer-menu-list li a:hover {
    background-color: #f8f8f8;
    color: var(--accent-color, #e50914);
}

/* ==========================================================================
   3. ESTILOS DA LOGO SVG (DISQUETE PRETO + TEXTO 100% BRANCO)
   ========================================================================== */

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-logo-link:hover {
    transform: scale(1.04);
}

.site-logo-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.site-logo-link:hover .site-logo-icon {
    transform: rotate(-4deg) scale(1.06);
}

.logo-text-brand {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4. ESTRUTURA DA HOME & LISTAGENS DE NOTÍCIAS
   ========================================================================== */

.home-main-container {
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-header {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    padding-bottom: 8px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.section-header h2 span {
    color: var(--accent-color, #e50914);
}

/* Destaque Principal */
.top-news-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.main-hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 440px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-img-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-hero-card:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
}

.badge-category, .card-cat {
    background-color: var(--accent-color, #e50914);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-overlay h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.secondary-news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card-item a {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.news-card-item a:hover {
    transform: translateX(4px);
}

.card-thumb {
    width: 110px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

/* Área de Vídeos */
.videos-section {
    background-color: #111113;
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    margin-bottom: 50px;
}

.videos-section .section-header {
    border-bottom-color: #222;
}

.videos-section .section-header h2,
.videos-section .section-header h2 span,
#mainVideoTitle,
.vid-thumb-info h4 {
    color: #ffffff !important;
}

.videos-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#mainVideoTitle {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
}

.videos-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-thumb-item {
    display: flex;
    gap: 12px;
    background: #1c1c1f;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.video-thumb-item:hover, .video-thumb-item.active {
    border-color: var(--accent-color, #e50914);
    background: #252529;
}

.vid-thumb-img {
    position: relative;
    width: 100px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.vid-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0,0,0,0.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.vid-thumb-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #ddd;
}

/* Dual Column (Últimas Notícias vs Mais Lidos) */
.dual-columns-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horizontal-post-card a {
    display: flex;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.horizontal-post-card img {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.horizontal-post-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 6px 0;
    color: #111;
}

.horizontal-post-card time {
    font-size: 12px;
    color: #888;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--header-bg, #111);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: background 0.2s;
}

.btn-load-more:hover {
    background-color: var(--accent-color, #e50914);
}

/* Ranking Mais Lidos */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color, #e50914);
    min-width: 30px;
    text-align: center;
}

.rank-info h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.rank-info a {
    text-decoration: none;
    color: #222;
}

/* Paginação das Pílulas */
.pagination-wrapper {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    background: #ffffff;
    color: #111113;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-wrapper .page-numbers:hover {
    background-color: var(--header-bg, #111113);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-wrapper .page-numbers.current {
    background-color: var(--accent-color, #e50914);
    color: #ffffff;
    border-color: var(--accent-color, #e50914);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

/* ==========================================================================
   5. PÁGINA DO ARTIGO (SINGLE.PHP)
   ========================================================================== */

.full-container-article {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 50px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.article-breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: var(--accent-color, #e50914);
    text-decoration: none;
    font-weight: 600;
}

.article-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;
    color: #111;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 24px;
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: none !important;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.author-avatar img {
    border-radius: 50%;
    display: block;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    color: #222;
}

.author-name strong {
    color: var(--accent-color, #e50914);
}

.post-date {
    font-size: 12px;
    color: #888;
}

.article-featured-image {
    margin: 24px 0 32px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #2c2c2c;
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body h2, .article-body h3 {
    margin: 30px 0 16px 0;
    color: #111;
    font-weight: 800;
}

/* Compartilhar + Tags (#) */
.share-and-tags-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.share-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.share-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.9; }
.share-wa { background-color: #25d366; }
.share-tw { background-color: #000000; }
.share-fb { background-color: #1877f2; }

.share-btn.share-copy {
    background-color: #2a2a2e !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}

.share-btn.share-copy:hover {
    background-color: var(--accent-color, #e50914) !important;
}

.article-inline-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.tags-label {
    font-weight: 700;
    color: #888;
}

.tag-link-subtle {
    color: #77777d !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s ease;
}

.tag-link-subtle:hover {
    color: var(--accent-color, #e50914) !important;
    text-decoration: underline !important;
}

/* Leia Também */
.read-also-section {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 20px 24px;
    border-radius: 6px;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color, #e50914);
}

.read-also-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.read-also-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.read-also-list li:last-child {
    border-bottom: none;
}

.read-also-list li a {
    color: #111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
}

.read-also-list li a:hover {
    color: var(--accent-color, #e50914);
}

.article-footer-columns {
    margin-top: 60px;
    border-top: 2px solid #e0e0e0;
    padding-top: 40px;
}

/* ==========================================================================
   6. COMENTÁRIOS DA SINGLE
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e8e8ed;
}

.comments-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #111113;
}

.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card-inner {
    display: flex;
    gap: 16px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaef;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.comment-card-inner:hover {
    border-color: #dcdce5;
}

.comment-avatar-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e2e8f0;
}

.comment-avatar-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block;
}

.comment-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-author-name strong,
.comment-author-name strong a {
    font-size: 15px;
    font-weight: 700;
    color: #111113 !important;
    text-decoration: none !important;
}

.comment-author-name strong a:hover {
    color: var(--accent-color, #e50914) !important;
}

.comment-date-time {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #888894;
    font-weight: 500;
}

.comment-edit-btn a {
    font-size: 12px;
    color: #888894 !important;
    text-decoration: none !important;
}

.comment-edit-btn a:hover {
    color: var(--accent-color, #e50914) !important;
}

.comment-text-body {
    font-size: 15px;
    line-height: 1.6;
    color: #33333a;
}

.comment-text-body a {
    color: #0284c7 !important;
    text-decoration: none !important;
    font-weight: 600;
}

.comment-text-body a:hover {
    text-decoration: underline !important;
}

.comment-reply-action a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color, #e50914) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.comment-reply-action a:hover {
    transform: translateX(3px);
}

.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 2px solid #eaeaef;
}

.logged-in-as {
    font-size: 14px;
    color: #666670 !important;
    margin-bottom: 16px;
    font-weight: 500;
}

.logged-in-as a {
    color: var(--accent-color, #e50914) !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.logged-in-as a:hover {
    text-decoration: underline !important;
    opacity: 0.9;
}

#respond {
    background: #ffffff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

#reply-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fdfdfd;
    outline: none;
    transition: border 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color, #e50914);
}

.submit-btn {
    align-self: flex-start;
    background-color: var(--header-bg, #111113);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: var(--accent-color, #e50914);
}

/* ==========================================================================
   7. PÁGINA ERRO 404 GAMER
   ========================================================================== */

.error-404-container {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 650px;
    margin: 0 auto;
}

.error-gamer-icon {
    color: var(--accent-color, #e50914);
    margin-bottom: 10px;
    animation: floatGamepad 3s ease-in-out infinite;
}

@keyframes floatGamepad {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: #111113;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px rgba(229, 9, 20, 0.2);
}

.error-404-container h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #111;
}

.error-404-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ==========================================================================
   8. RODAPÉ ROBUSTO (WIDGETS, REDES & COPYRIGHT)
   ========================================================================== */

.site-footer {
    background-color: var(--footer-bg, #111113);
    color: #ccc;
    padding-top: 50px;
    padding-bottom: 30px;
    margin-top: 60px;
}

.footer-widgets-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-column .widget-title,
.footer-column h2,
.footer-column h3,
.footer-column h4 {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-column,
.footer-column p,
.footer-column ul li,
.footer-column ul li a {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    display: inline-block;
    opacity: 0.9;
}

.footer-column ul li a:hover {
    opacity: 1;
    transform: translateX(3px);
    text-decoration: underline !important;
}

.footer-divider-full {
    width: 100% !important;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0 24px 0;
}

.footer-bottom-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copy,
.footer-copy p {
    font-size: 13px;
    color: #ffffff !important;
    font-weight: 500;
    text-align: left;
    opacity: 0.95;
}

.footer-social-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

/* Cores Originais Fixas das Redes Sociais */
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-pill svg {
    transition: transform 0.25s ease;
}

.social-pill.social-youtube { 
    background-color: #ff0000 !important; 
    border: 1px solid #ff0000 !important; 
}

.social-pill.social-instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; 
    border: 1px solid #dc2743 !important; 
}

.social-pill.social-facebook { 
    background-color: #1877f2 !important; 
    border: 1px solid #1877f2 !important; 
}

.social-pill.social-tiktok { 
    background-color: #000000 !important; 
    border: 1px solid #25f4ee !important; 
    box-shadow: -2px 2px 10px rgba(37, 244, 238, 0.2), 2px -2px 10px rgba(254, 44, 85, 0.2);
}

.social-pill.social-twitter { 
    background-color: #000000 !important; 
    border: 1px solid rgba(255, 255, 255, 0.4) !important; 
}

.social-pill.social-twitch { 
    background-color: #9146ff !important; 
    border: 1px solid #9146ff !important; 
}

.social-pill:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.social-pill:hover svg {
    transform: scale(1.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--header-bg, #111113);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-color, #e50914);
}

/* ==========================================================================
   9. MODO ESCURO (DARK MODE SUAVE E ALTO CONTRASTE)
   ========================================================================== */

body.dark-mode {
    background-color: #0d0d0f !important;
    color: #e1e1e6 !important;
}

/* Busca no Modo Escuro */
body.dark-mode .search-bar-container input[type="search"] {
    background-color: #1a1a1e !important;
    color: #ffffff !important;
    border-color: #33333a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .search-bar-container input[type="search"]::placeholder {
    color: #a0a0ab !important;
}

/* Header & Single no Dark Mode */
body.dark-mode .article-breadcrumb,
body.dark-mode .article-breadcrumb a {
    color: #a0a0b0 !important;
}

body.dark-mode .article-author-meta {
    border-bottom-color: #26262b !important;
}

body.dark-mode .article-author-meta .author-info,
body.dark-mode .article-author-meta .author-name,
body.dark-mode .article-author-meta .author-name strong,
body.dark-mode .article-author-meta .post-date {
    color: #d1d1db !important;
}

body.dark-mode .article-title,
body.dark-mode .card-info h3,
body.dark-mode .horizontal-post-card h3,
body.dark-mode .rank-info a,
body.dark-mode .section-header h2,
body.dark-mode .comments-title,
body.dark-mode #reply-title,
body.dark-mode .error-404-container h2 {
    color: #ffffff !important;
}

body.dark-mode .article-subtitle,
body.dark-mode .article-body,
body.dark-mode .article-body p,
body.dark-mode .article-body li,
body.dark-mode .error-404-container p {
    color: #d1d1db !important;
}

body.dark-mode .share-and-tags-wrapper {
    border-color: #26262b !important;
}

body.dark-mode .share-title,
body.dark-mode .tags-label {
    color: #b0b0bc !important;
}

body.dark-mode .tag-link-subtle {
    color: #a0a0b0 !important;
}

body.dark-mode .tag-link-subtle:hover {
    color: var(--accent-color, #e50914) !important;
}

/* CARDS & SEÇÕES NO DARK MODE (CORREÇÃO DOS 4 CARDS INFERIORES) */
body.dark-mode .news-card-item,
body.dark-mode .news-card-item a,
body.dark-mode .grid-card-style,
body.dark-mode .horizontal-post-card a,
body.dark-mode .rank-item,
body.dark-mode #respond,
body.dark-mode .comment-list .comment {
    background-color: #16161a !important;
    color: #ffffff !important;
    border-color: #26262b !important;
    box-shadow: none !important;
}

body.dark-mode .grid-card-style {
    background: #16161a !important;
}

body.dark-mode .videos-section,
body.dark-mode .videos-grid-container,
body.dark-mode .video-thumb-item,
body.dark-mode .main-hero-card,
body.dark-mode [class*="card"],
body.dark-mode [class*="grid-item"],
body.dark-mode [class*="block"] {
    background-color: #16161a;
    border-color: #26262b;
}

body.dark-mode .videos-section {
    background-color: #111113 !important;
    border: 1px solid #26262b !important;
}

body.dark-mode .video-thumb-item {
    background-color: #1c1c1f !important;
    border-color: #2a2a30 !important;
}

body.dark-mode .video-thumb-item:hover, 
body.dark-mode .video-thumb-item.active {
    background-color: #26262b !important;
    border-color: var(--accent-color, #e50914) !important;
}

body.dark-mode .read-also-section {
    background-color: #16161a !important;
    border: 1px solid #26262b !important;
}

body.dark-mode .read-also-section .section-header h2,
body.dark-mode .read-also-section .section-header h2 span {
    color: #ffffff !important;
}

body.dark-mode .read-also-list li {
    border-bottom-color: #26262b !important;
}

body.dark-mode .read-also-list li a {
    color: #f0f0f5 !important;
}

body.dark-mode .read-also-list li a:hover {
    color: var(--accent-color, #e50914) !important;
}

/* Comentários e Formulários no Dark Mode */
body.dark-mode .comments-area {
    border-top-color: #26262b;
}

body.dark-mode .comments-title {
    color: #ffffff;
}

body.dark-mode .comment-card-inner {
    background-color: #16161a;
    border-color: #26262b;
}

body.dark-mode .comment-author-name strong,
body.dark-mode .comment-author-name strong a {
    color: #ffffff !important;
}

body.dark-mode .comment-date-time,
body.dark-mode .comment-edit-btn a {
    color: #a0a0ab;
}

body.dark-mode .comment-text-body {
    color: #d1d1db;
}

body.dark-mode .comment-list .children {
    border-left-color: #26262b;
}

body.dark-mode .logged-in-as {
    color: #a0a0ab !important;
}

body.dark-mode .logged-in-as a {
    color: var(--accent-color, #e50914) !important;
}

body.dark-mode #comment,
body.dark-mode #author,
body.dark-mode #email {
    background-color: #1f1f24 !important;
    color: #ffffff !important;
    border-color: #33333a !important;
}

body.dark-mode #comment::placeholder,
body.dark-mode #author::placeholder,
body.dark-mode #email::placeholder {
    color: #888894 !important;
}

body.dark-mode .pagination-wrapper .page-numbers {
    background: #16161a;
    color: #ffffff;
    border-color: #26262b;
}

/* Gaveta Lateral no Dark Mode */
body.dark-mode .side-drawer {
    background-color: #16161a !important;
    color: #ffffff;
}

body.dark-mode .drawer-user-actions {
    background-color: #1a1a1e;
    border-bottom-color: #26262b;
}

body.dark-mode .drawer-action-btn {
    background: #252529;
    border-color: #33333a;
    color: #ffffff;
}

body.dark-mode .drawer-login-btn {
    background-color: #26262b !important;
    color: #ffffff !important;
    border-color: #383840 !important;
}

body.dark-mode .drawer-login-btn:hover {
    background-color: #33333a !important;
}

body.dark-mode .drawer-menu-list li {
    border-bottom-color: #26262b;
}

body.dark-mode .drawer-menu-list li a {
    color: #e1e1e6;
}

body.dark-mode .drawer-menu-list li a:hover {
    background-color: #252529;
}

/* Rodapé no Dark Mode */
body.dark-mode .site-footer {
    background-color: #0d0d0f !important;
    border-top: 1px solid #1f1f24;
}

body.dark-mode .footer-divider-full {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-copy,
body.dark-mode .footer-copy p,
body.dark-mode .footer-column,
body.dark-mode .footer-column p,
body.dark-mode .footer-column ul li a {
    color: #ffffff !important;
    opacity: 0.95;
}

/* ==========================================================================
   10. SOBREPOSIÇÃO DA BARRA DE ADMIN DO WORDPRESS
   ========================================================================== */

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ==========================================================================
   11. RESPONSIVIDADE (MOBILE & TABLETS)
   ========================================================================== */

@media screen and (max-width: 900px) {
    .top-news-section, .videos-grid-container, .dual-columns-section {
        grid-template-columns: 1fr;
    }
    .main-hero-card {
        height: 300px;
    }
    .horizontal-post-card img {
        width: 100px;
        height: 80px;
    }
}

@media screen and (max-width: 768px) {
    .desktop-only-btn,
    .desktop-only-actions {
        display: none !important;
    }

    .header-container {
        padding: 12px 16px;
    }

    button.icon-box-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .site-logo,
    .site-logo a {
        max-height: 36px;
    }

    .site-logo img {
        max-height: 36px !important;
        max-width: 160px !important;
    }

    .site-logo .text-logo {
        font-size: 18px;
    }

    .site-logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text-brand {
        font-size: 18px;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        text-align: center;
        gap: 16px;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-social-container {
        justify-content: center;
    }
}