/*
Theme Name: Leão da Barra
Theme URI: https://www.leaodabarra.com.br
Author: Leão da Barra
Author URI: https://www.leaodabarra.com.br
Description: Tema oficial do EC Vitória - Portal do torcedor rubro-negro. Design moderno, responsivo e otimizado para SEO.
Version: 1.0.0
License: GPL v2 or later
Text Domain: leaodabarra
Tags: sports, rubro-negro, futebol, notícias, bootstrap
*/

:root {
    --rubro: #cc0000;
    --negro: #0a0a0a;
    --ouro: #f5a623;
    --cinza-claro: #f8f9fa;
    --cinza-escuro: #343a40;
    --cinza-texto: #4a4a4a;
    --transicao: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: var(--negro);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--negro); }
::-webkit-scrollbar-thumb { background: var(--rubro); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ouro); }

/* ===== NAVBAR ===== */
.navbar-leao {
    background: var(--negro);
    padding: 0.8rem 0;
    border-bottom: 3px solid var(--rubro);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-leao .navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
}

.navbar-leao .navbar-brand span {
    color: var(--rubro);
}

.navbar-leao .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: var(--transicao);
}

.navbar-leao .nav-link:hover,
.navbar-leao .nav-link.active {
    color: var(--rubro) !important;
}

.navbar-leao .dropdown-menu {
    background: var(--negro);
    border: 1px solid #333;
}

.navbar-leao .dropdown-item {
    color: white;
    padding: 0.5rem 1rem;
}

.navbar-leao .dropdown-item:hover {
    background: var(--rubro);
    color: white;
}

.btn-search {
    background: var(--rubro);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    transition: var(--transicao);
}

.btn-search:hover {
    background: var(--ouro);
    color: var(--negro);
}

/* ===== HERO POSTS SECTION ===== */
.hero-posts {
    margin-top: 90px;
    padding: 2rem 0;
    background: linear-gradient(145deg, var(--negro), #1a1a1a);
}

.hero-post-principal {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: block;
    transition: transform 0.5s;
}

.hero-post-principal:hover {
    transform: scale(1.02);
}

.hero-post-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
}

.hero-post-categoria {
    display: inline-block;
    background: var(--rubro);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-post-titulo {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-post-meta {
    color: #ddd;
    font-size: 0.9rem;
}

.hero-post-meta i {
    color: var(--ouro);
    margin-right: 0.3rem;
}

.hero-post-secundario {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    display: block;
    transition: transform 0.5s;
    margin-bottom: 20px;
}

.hero-post-secundario:last-child {
    margin-bottom: 0;
}

.hero-post-secundario:hover {
    transform: scale(1.02);
}

.hero-post-secundario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%);
    z-index: 1;
}

.hero-post-secundario .hero-post-content {
    padding: 1.5rem;
}

.hero-post-secundario .hero-post-titulo {
    font-size: 1.3rem;
    font-weight: 700;
}

.hero-post-secundario .hero-post-categoria {
    font-size: 0.7rem;
    padding: 0.2rem 1rem;
}

/* ===== PRÓXIMO JOGO ===== */
.next-game-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 2rem 0;
    border-left: 5px solid var(--rubro);
}

.game-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.countdown-item {
    background: var(--negro);
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ouro);
    line-height: 1;
}

/* ===== SEÇÕES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--negro);
    margin: 2rem 0 1.5rem;
    border-left: 5px solid var(--rubro);
    padding-left: 1rem;
}

.section-title i {
    color: var(--rubro);
    margin-right: 0.5rem;
}

/* ===== CARDS DE NOTÍCIAS ===== */
.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transicao);
    height: 100%;
    border: 1px solid #eee;
    position: relative;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(204,0,0,0.15);
}

.noticia-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.noticia-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(145deg, #333, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.noticia-categoria {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--rubro);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--negro);
}

.noticia-titulo a {
    color: inherit;
    text-decoration: none;
}

.noticia-titulo a:hover {
    color: var(--rubro);
}

.noticia-meta {
    color: #666;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
}

/* ===== CARDS POPULARES ===== */
.popular-card {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    transition: var(--transicao);
}

.popular-card:hover {
    background: #fafafa;
    border-color: var(--rubro);
}

.popular-img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(145deg, #333, #111);
}

.popular-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.popular-info h4 a {
    color: var(--negro);
    text-decoration: none;
}

/* ===== CLASSIFICAÇÃO ===== */
.tabela-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #eee;
}

.tabela-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tabela-item.vitoria {
    background: rgba(204,0,0,0.05);
    border-left: 3px solid var(--rubro);
    padding-left: 0.5rem;
    font-weight: 700;
}

.tabela-pos {
    width: 35px;
    font-weight: 700;
    color: var(--rubro);
}

.tabela-time {
    flex: 1;
}

.tabela-pontos {
    background: var(--negro);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* ===== JOGOS TIMELINE ===== */
.jogo-timeline {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.jogo-data {
    background: var(--negro);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
    margin-right: 1rem;
}

.jogo-data .dia {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ouro);
}

/* ===== TAG CLOUD ===== */
.tag-cloud {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #eee;
}

.tag-item {
    display: inline-block;
    background: #f0f0f0;
    color: var(--negro);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin: 0.3rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transicao);
}

.tag-item:hover {
    background: var(--rubro);
    color: white;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--rubro);
    padding-bottom: 0.5rem;
}

/* ===== SINGLE POST ===== */
.single-post {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.single-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    font-size: 0.95rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cinza-texto);
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--negro);
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    color: var(--negro);
    text-decoration: none;
    transition: var(--transicao);
}

.pagination .page-numbers.current {
    background: var(--rubro);
    color: white;
    border-color: var(--rubro);
}

.pagination .page-numbers:hover {
    background: var(--rubro);
    color: white;
}

/* ===== FOOTER ===== */
.footer-leao {
    background: var(--negro);
    color: #999;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 5px solid var(--rubro);
    position: relative;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-link {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transicao);
}

.footer-link:hover {
    color: var(--rubro);
    transform: translateX(5px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991px) {
    .hero-post-principal { height: 400px; }
    .hero-post-secundario { height: 200px; }
    .hero-post-titulo { font-size: 1.8rem; }
    .hero-post-secundario .hero-post-titulo { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero-post-principal { height: 350px; margin-bottom: 20px; }
    .hero-post-secundario { height: 180px; }
    .hero-post-titulo { font-size: 1.5rem; }
    .game-countdown { flex-wrap: wrap; }
    .section-title { font-size: 1.5rem; }
    .single-title { font-size: 1.8rem; }
}

/* ===== FOOTER CORRIGIDO ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

.footer-leao {
    flex-shrink: 0;
    background: var(--negro);
    color: #999;
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--rubro);
    width: 100%;
    margin-top: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--rubro);
    color: white;
    transform: translateY(-3px);
}

/* ===== HERO POSTS QUADRADOS ===== */
.hero-post-quadrado {
    height: 240px;
    width: 100%;
}

.hero-post-quadrado .hero-post-content {
    padding: 1.2rem;
}

.hero-post-quadrado .hero-post-titulo {
    font-size: 1rem;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .hero-post-quadrado {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-post-quadrado {
        height: 200px;
    }
}

/* ===== DROPDOWN MENU ===== */
.navbar-leao .dropdown-menu {
    background: var(--negro);
    border: 1px solid #333;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 0.5rem 0;
}

.navbar-leao .dropdown-item {
    color: white;
    padding: 0.5rem 1.5rem;
    transition: 0.3s;
}

.navbar-leao .dropdown-item:hover {
    background: var(--rubro);
    color: white;
}

.navbar-leao .dropdown-divider {
    border-color: #333;
    margin: 0.3rem 0;
}

/* Dropdown menu */
.navbar-leao .dropdown-menu {
    background: var(--negro);
    border: 1px solid #333;
    margin-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 0.5rem 0;
    min-width: 220px;
}

.navbar-leao .dropdown-item {
    color: white;
    padding: 0.5rem 1.5rem;
    transition: 0.3s;
    font-size: 0.9rem;
}

.navbar-leao .dropdown-item:hover,
.navbar-leao .dropdown-item.active {
    background: var(--rubro);
    color: white;
}

.navbar-leao .dropdown-header {
    color: var(--ouro);
    font-weight: 700;
    padding: 0.3rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.navbar-leao .dropdown-divider {
    border-color: #333;
    margin: 0.3rem 0;
}

/* Sidebar widgets */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--rubro);
    padding-bottom: 0.5rem;
}

/* Próximo jogo widget */
.next-game-widget {
    background: linear-gradient(145deg, #fff9f9, #fff);
    border-left: 3px solid var(--rubro);
}

.team-next {
    text-align: center;
    font-size: 0.8rem;
}

.vs-badge {
    background: var(--negro);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
}

.game-countdown-mini {
    background: var(--negro);
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
}

.countdown-mini-item {
    text-align: center;
    font-size: 0.7rem;
}

.countdown-number-mini {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ouro);
    line-height: 1;
}

.next-game-info {
    font-size: 0.9rem;
    color: #666;
}

.next-game-info i {
    color: var(--rubro);
    margin-right: 0.3rem;
}

/* Últimos jogos compactos */
.last-game-item {
    font-size: 0.85rem;
}

.last-game-item .text-success {
    color: #28a745 !important;
}

.last-game-item .text-danger {
    color: #dc3545 !important;
}

.last-game-item .text-warning {
    color: #ffc107 !important;
}

/* Tabela classificação */
.tabela-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tabela-item.vitoria {
    background: rgba(204,0,0,0.05);
    border-left: 3px solid var(--rubro);
    padding-left: 0.5rem;
    font-weight: 700;
    margin-left: -0.5rem;
    padding-right: 0.5rem;
    border-radius: 0 5px 5px 0;
}

.tabela-pos {
    width: 35px;
    font-weight: 700;
    color: var(--rubro);
}

.tabela-time {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tabela-pontos {
    background: var(--negro);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Tag cloud */
.tag-item {
    display: inline-block;
    background: #f0f0f0;
    color: var(--negro);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin: 0.2rem;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.tag-item:hover {
    background: var(--rubro);
    color: white;
}
/* ===== FOOTER COLADO NO BOTTOM ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.footer-leao {
    flex-shrink: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--negro);
    color: #999;
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--rubro);
    box-sizing: border-box;
}

.footer-leao .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Garantir que não haja margens extras */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajuste para o conteúdo principal */
.container.mt-5.pt-5 {
    margin-top: 0 !important;
    padding-top: 90px !important; /* Ajuste para compensar a navbar fixa */
}

/* Remover margens inferiores extras */
section, div {
    margin-bottom: 0;
}

/* Garantir que o último elemento antes do footer não tenha margem */
.post-item:last-child,
.noticia-card:last-child,
.row:last-child {
    margin-bottom: 0;
}