/*
Theme Name: Blocksy Child
Theme URI: https://tenhamaissaude.com.br/
Description: Tema filho para o Blocksy.
Author: Manus AI
Author URI: https://manus.im/
Template: blocksy
Version: 1.0.0
*/

/* ===== MELHORIAS GLOBAIS TENHA MAIS SAÚDE ===== */

/* Tipografia e cores base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.6 !important;
  color: #2C3E50 !important;
  background-color: #FFFFFF !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #2C3E50 !important;
  margin-bottom: 1rem !important;
}

h1 { font-size: 2.5rem !important; }
h2 { font-size: 2rem !important; }
h3 { font-size: 1.5rem !important; }
h4 { font-size: 1.25rem !important; }
h5 { font-size: 1.1rem !important; }
h6 { font-size: 1rem !important; }

p {
  margin-bottom: 1.2rem !important;
  line-height: 1.7 !important;
  color: #2C3E50 !important;
}

/* Links e cores */
a {
  color: #4CAF50 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

a:hover {
  color: #2E7D32 !important;
  text-decoration: underline !important;
}

/* ===== CARDS DE BLOG ===== */
article,
.ct-blog-post-card,
.post {
  background: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

/* ===== AJUSTES FINAIS DO RODAPÉ ===== */

/* Estilo para o menu de rodapé */
#menu-rodape {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    flex-wrap: wrap;
}

#menu-rodape li {
    margin: 0 15px;
}

#menu-rodape li a {
    font-size: 14px;
    color: #666 !important;
    text-decoration: none;
}

#menu-rodape li a:hover {
    color: #4CAF50 !important;
}

/* Layout Responsivo do Rodapé */
.ct-footer {
    padding: 20px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.ct-footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Desktop: Uma única linha */
@media (min-width: 768px) {
    .ct-footer-inner {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 70px; /* Altura aproximada de 60-80px */
    }
    
    #menu-rodape {
        margin: 0 0 0 20px;
        padding-left: 20px;
        border-left: 1px solid #ccc;
    }
}

/* Mobile: Empilhado */
@media (max-width: 767px) {
    .ct-footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0;
    }
    
    #menu-rodape {
        flex-direction: column;
        margin-top: 15px;
    }
    
    #menu-rodape li {
        margin: 5px 0;
    }
}

/* ===== RODAPÉ PERSONALIZADO TENHA MAIS SAÚDE ===== */

/* Ocultar rodapé original do Blocksy */
footer.ct-footer {
    display: none !important;
}

/* Estilização do novo rodapé */
#tms-custom-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.tms-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 40px;
}

.tms-copyright {
    margin-right: 10px;
}

.tms-footer-menu {
    display: flex;
    align-items: center;
}

.tms-footer-menu a {
    color: #6c757d !important;
    text-decoration: none !important;
    margin: 0 10px;
    transition: color 0.2s;
}

.tms-footer-menu a:hover {
    color: #4CAF50 !important;
}

.tms-separator {
    color: #dee2e6;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .tms-footer-container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .tms-copyright {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tms-footer-menu {
        flex-direction: column;
    }
    
    .tms-footer-menu a {
        margin: 5px 0;
    }
    
    .tms-separator {
        display: none;
    }
}

/* ===== RODAPÉ PERSONALIZADO TENHA MAIS SAÚDE ===== */

/* Ocultar rodapé original do Blocksy */
footer.ct-footer, .ct-footer {
    display: none !important;
}

/* Estilização do novo rodapé */
#tms-custom-footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 20px 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #6c757d !important;
    clear: both !important;
}

.tms-footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.tms-copyright {
    margin-right: 15px !important;
}

.tms-footer-menu {
    display: flex !important;
    align-items: center !important;
}

.tms-footer-menu a {
    color: #6c757d !important;
    text-decoration: none !important;
    margin: 0 10px !important;
    transition: color 0.2s !important;
}

.tms-footer-menu a:hover {
    color: #4CAF50 !important;
}

.tms-separator {
    color: #dee2e6 !important;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .tms-footer-container {
        flex-direction: column !important;
        padding: 15px 0 !important;
    }
    
    .tms-copyright {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .tms-footer-menu {
        flex-direction: column !important;
    }
    
    .tms-footer-menu a {
        margin: 5px 0 !important;
    }
    
    .tms-separator {
        display: none !important;
    }
}

/* ===== AJUSTES DE ESPAÇAMENTO E RODAPÉ COMPACTO ===== */

/* Remover min-height excessivo que empurra o rodapé para baixo */
#main-container {
    min-height: auto !important;
}

/* Ajustar espaçamento do rodapé customizado */
#tms-custom-footer {
    padding: 12px 0 !important; /* Compacto: 12px */
    margin-top: 24px !important; /* Reduzir de 48px para 24px */
    min-height: 0 !important;
}

/* Ajustar espaçamentos em páginas de arquivo e blog */
.archive .site-main, 
.blog .site-main,
.archive .ct-container,
.blog .ct-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ajustar espaçamento da paginação se presente */
.ct-pagination {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

/* Garantir que o conteúdo principal não tenha padding inferior excessivo */
main#main {
    padding-bottom: 20px !important;
}


/* ===== ESTILOS PARA CALCULADORAS E SUBSTÂNCIAS ===== */

.tms-calculator-container,
.tms-substance-container {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tms-calculator-container h3,
.tms-substance-container h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.tms-calculator-container p,
.tms-substance-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tms-input-group {
    margin-bottom: 15px;
}

.tms-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.tms-input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.tms-calculator-container button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: background-color 0.3s ease;
}

.tms-calculator-container button:hover {
    background-color: #45a049;
}

.tms-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e7d32;
}

.tms-result p {
    margin: 0;
}

.tms-disclaimer {
    font-size: 0.85rem;
    color: #777;
    margin-top: 20px;
    text-align: center;
}

.tms-error {
    color: #d32f2f;
    font-weight: bold;
}

/* Estilos para as páginas de substâncias */
.tms-substance-section {
    margin-bottom: 25px;
}

.tms-substance-section h4 {
    color: #4CAF50;
    font-size: 1.4rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.tms-substance-section ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.tms-substance-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.tms-substance-section strong {
    color: #333;
}

/* Estilos para tabelas de informações nutricionais */
.tms-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tms-info-table th,
.tms-info-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.tms-info-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.tms-info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tms-info-table tr:hover {
    background-color: #f1f1f1;
}

