/*
Theme Name: DigitalEDU Theme
Description: Tema personalizado para DigitalEDU - Sistema independente sem dependências externas
Version: 1.1.2
Author: DigitalEDU
Author URI: https://digitaledu.com.br
Text Domain: digitaledu
*/

/* Este arquivo é obrigatório para WordPress reconhecer o tema */
/* Os estilos principais estão nos arquivos específicos do sistema */

/* ===== ESTILOS PERSONALIZADOS DO TEMA DIGITALEDU ===== */

/* Header Personalizado */
.site-header {
  background: #002b7a;
  color: #fff;
  padding: 1px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;

  /* ajuda a manter o container centralizado mesmo se o tema envolver wrappers */
  display: flex;
  justify-content: center;
}

/* Container do header (centralizado) */
.header-container {
  display: flex;
  align-items: center;

  /* distância uniforme entre os itens no geral */
  gap: 12px;

  /* limite e centralização */
  max-width: 1200px;
  width: 100%;
  margin: 2px auto;      /* <=== centraliza o container e mantém 2px em cima/baixo */
  padding: 0 10px;
}

/* Mantém o primeiro item (logo) grudado à esquerda
   e empurra os demais para a direita */
.header-container > :first-child {
  margin-right: auto;
}

/* Garante a MESMA distância entre os itens do lado direito
   (se houver mais de um, todos ficam espaçados igualmente) */
.header-container > :not(:first-child) {
  margin-left: 12px;
}

/* (Opcional) ajustes estéticos comuns aos botões/links do header */
.header-container a.button,
.header-container .btn,
.header-container button {
  line-height: 1;
  padding: 8px 14px;
  border-radius: 8px;
}


/* Seção da logo */
.logo-section {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.custom-logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .custom-logo {
    transform: scale(1.05);
}

/* Seção do certificado */
.certificate-section {
    flex: 0 0 auto;
}

.certificate-link {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.certificate-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}



/* Footer Personalizado */
.site-footer {
    background: #002b7a;
    color: white;
    padding: 8px 0 5px;
    text-align: center;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.site-info {
    position: relative;
    z-index: 2;
    font-size: 16px;
    line-height: 1.6;
}



/* Conteúdo do footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Torna a logo branca */
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    flex: 0 0 auto;
    text-align: right;
}

.copyright-text {
    color: white;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsividade */
@media (max-width: 768px) {
    .site-header {
        padding: 1px 0;
    }
    
    .header-container {
        flex-direction: inline-block;
        gap: 10px;
        margin-left: 15px;
        margin-right: 15px;
        text-align: center;
    }
    
    .custom-logo {
        height: 25px;
    }
    
    .certificate-link {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    /* Footer responsivo */
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .copyright-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1px 0;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .custom-logo {
        height: 25px;
    }
    
    .certificate-link {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    /* Footer responsivo para telas muito pequenas */
    .footer-content {
        gap: 12px;
    }
    
    .footer-logo-img {
        height: 30px;
    }
    
    .copyright-text {
        font-size: 12px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header,
.site-footer {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== BOTÃO BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #002b7a; /* DigitalEDU blue */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 43, 122, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top:hover {
    background: #001f5a; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 43, 122, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Ícone da seta para cima */
.back-to-top::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white;
    margin-top: -2px; /* Ajuste fino da posição */
}

/* Responsividade */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}