/*
Theme Name: Moedas Mais
Theme URI: https://moedasmais.com.br
Author: Gemini & Moedas Mais
Description: Tema exclusivo, moderno e minimalista para numismática. Focado em exibição de moedas em grade de 5 colunas e zoom de alta precisão. Inspirado em padrões estéticos de e-commerce.
Version: 3.9
License: GNU General Public License v2 or later
Text Domain: moedasmais
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
}

/* REGRA GLOBAL PARA IMAGENS */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- AJUSTE DA IMAGEM DESTACADA (POSTS E PÁGINAS) --- */
.post-thumbnail-container img, 
.page-thumbnail img {
    width: 50% !important; 
    max-width: 50% !important;
    height: auto;
    margin: 0 auto; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* REMOÇÃO TOTAL DE PONTOS DE LISTA */
ul, li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- CABEÇALHO --- */
.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    background: #fff;
}

.header-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 15px;
}

.site-header img,
.header-linha-1 img,
.header-linha-2 img,
.widget-header img,
.logo-site img {
    max-width: 120px !important; 
    height: auto !important;
    display: block;
    margin-bottom: 5px;
}

/* --- BUSCA --- */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.search-form label {
    width: 100%;
    margin-bottom: 0;
}

.search-form .screen-reader-text {
    display: none;
}

.search-form input[type="search"] {
    width: 100%;
    border-radius: 8px 0 0 8px !important;
    margin-bottom: 0 !important;
    border-right: none;
    text-align: left;
    padding: 10px 15px;
}

.search-form input[type="submit"] {
    width: auto;
    border-radius: 0 8px 8px 0 !important;
    margin: 0 !important;
    padding: 10px 20px;
    background: #0f2a63;
}

/* --- MENU --- */
.main-navigation {
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    display: block;
    padding: 15px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #a67c00;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: #a67c00;
}

/* --- ESTRUTURA --- */
.layout-principal {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.conteudo-colunas { 
    flex: 4; 
    min-width: 0;
}

/* --- GRID MOEDAS --- */
.grid-moedas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card-moeda {
    background: #ffffff;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-moeda:hover {
    transform: translateY(-5px);
}

.zoom-foto { 
    overflow: hidden; 
    display: block; 
    margin-bottom: 15px;
    background: #fdfdfd;
    border-radius: 8px;
}

/* --- RODAPÉ --- */
.site-footer {
    margin-top: 30px;
    padding-top: 40px;
    background-color: #0f2a63;
}

/* Caixa Branca Linha 1 */
.footer-linha-1 .footer-coluna {
    background: #fff !important;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Links comuns na Linha 1 (Artigos/Categorias) em Azul */
.footer-linha-1 .footer-coluna p,
.footer-linha-1 .footer-coluna .widget,
.footer-linha-1 .footer-coluna li,
.footer-linha-1 .footer-coluna li a {
    color: #0f2a63;
}

.footer-linha-1 .footer-coluna li a:hover {
    color: #a67c00 !important;
}

/* --- PROTEÇÃO DO BOTÃO DE ENTRAR (Texto deve ser Branco) --- */
.btn-login-site {
    display: inline-block !important;
    background-color: #0f2a63 !important;
    color: #ffffff !important; 
    padding: 10px 25px !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px !important;
    margin-top: 15px;
    transition: transform 0.2s, background 0.3s;
    border: none !important;
}

.btn-login-site:hover {
    background-color: #a67c00 !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Proteção dos BOTÕES SOCIAIS */
.footer-linha-1 .footer-coluna .btn-social,
.footer-linha-1 .footer-coluna .btn-social a,
.footer-linha-1 .footer-coluna .btn-social i {
    color: #ffffff !important;
}

/* Título das caixas brancas */
.footer-linha-1 .footer-coluna h4, 
.footer-linha-1 .footer-coluna .widget-title,
.footer-linha-1 .footer-coluna .widgettitle {
    color: #0f2a63 !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
}

/* Linhas 2 e 3 (Fundo Azul) - Tudo Branco */
.footer-linha-2 .footer-coluna, 
.footer-linha-3 .footer-coluna,
.footer-linha-2 a, 
.footer-linha-3 a {
    color: #ffffff !important;
    text-align: center;
}

/* --- COPYRIGHT --- */
.site-footer .footer-bottom p a,
.site-footer .footer-bottom a {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Menus Legais */
.footer-linha-2 .widget_nav_menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Botões Sociais */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 5px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    background-color: #0f2a63 !important; 
    color: #ffffff !important; 
    border: 2px solid #0f2a63;
}

/* --- RESPONSIVIDADE MOBILE OTIMIZADA (V.3.9) --- */
@media screen and (max-width: 800px) {
    .container {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Cabeçalho compacto com Logo e Título na mesma linha */
    .site-header { margin-bottom: 0 !important; padding: 5px 0 !important; }
    
    .logo-site-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .logo-site { 
        margin: 0 !important; 
        flex: 0 0 auto !important; 
    }

    .logo-site img { 
        max-width: 80px !important; 
        margin: 0 !important; 
    }

    .titulo-site-mobile { 
        flex: 0 1 auto !important; 
    }

    h1.site-title, .titulo-site-mobile h1 {
        font-size: 20px !important;
        margin: 0 !important;
        text-align: left !important;
    }

    /* Busca logo abaixo */
    .header-linha-2 .header-grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .search-form { 
        width: 100% !important;
        margin: 5px 0 !important;
    }

    /* Eliminar espaços entre cabeçalho e conteúdo */
    .header-linha-3 { display: none !important; } /* Esconde menus redundantes no mobile */
    
    .layout-principal { 
        margin-top: 0 !important; 
    }
    
    .site-content { 
        padding-top: 5px !important; 
    }

    .grid-moedas { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
        margin-top: 0 !important;
    }

    .footer-grid-3 { grid-template-columns: 1fr !important; }
}