/* ================================
   HOME CEAC - CSS v1.0.0
   ================================ */

/* Container principal */
.home-buttons-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título da seção */
.home-buttons-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.2;
}

/* Descrição */
.home-buttons-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de botões */
.home-buttons-grid {
    display: grid;
    gap: 30px;
    justify-content: center;
    align-items: start;
}

/* Configurações de colunas */
.home-buttons-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
}

.home-buttons-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

.home-buttons-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

.home-buttons-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
}

/* Wrapper do botão */
.home-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botão principal */
.home-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 140px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff !important;
    background-color: #164194 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 65, 148, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    padding: 15px 10px;
}

/* Efeito hover */
.home-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(22, 65, 148, 0.4);
    color: #ffffff !important;
    text-decoration: none;
    background-color: #164194 !important;
}

/* Efeito de clique */
.home-button:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 65, 148, 0.25);
}

/* Imagem do botão */
.home-button .button-image {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Efeito hover na imagem */
.home-button:hover .button-image {
    transform: scale(1.1);
}

/* Label do botão */
.button-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    word-wrap: break-word;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efeito de brilho no hover */
.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.home-button:hover::before {
    left: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .home-buttons-container {
        padding: 30px 15px;
    }
    
    .home-buttons-title {
        font-size: 2rem;
    }
    
    .home-buttons-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .home-buttons-grid.columns-3,
    .home-buttons-grid.columns-4,
    .home-buttons-grid.columns-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .home-button {
        width: 100px;
        height: 120px;
    }
    
    .home-button .button-image {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .button-label {
        font-size: 0.7rem;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .home-buttons-grid.columns-2,
    .home-buttons-grid.columns-3,
    .home-buttons-grid.columns-4,
    .home-buttons-grid.columns-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .home-button {
        width: 90px;
        height: 110px;
    }
    
    .home-button .button-image {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }
    
    .button-label {
        font-size: 0.65rem;
        max-width: 70px;
    }
    
    .home-buttons-title {
        font-size: 1.8rem;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-button-wrapper {
    animation: fadeInUp 0.6s ease forwards;
}

.home-button-wrapper:nth-child(1) { animation-delay: 0.1s; }
.home-button-wrapper:nth-child(2) { animation-delay: 0.2s; }
.home-button-wrapper:nth-child(3) { animation-delay: 0.3s; }
.home-button-wrapper:nth-child(4) { animation-delay: 0.4s; }
.home-button-wrapper:nth-child(5) { animation-delay: 0.5s; }
.home-button-wrapper:nth-child(6) { animation-delay: 0.6s; }
.home-button-wrapper:nth-child(7) { animation-delay: 0.7s; }
.home-button-wrapper:nth-child(8) { animation-delay: 0.8s; }
.home-button-wrapper:nth-child(9) { animation-delay: 0.9s; }

/* Estados de carregamento */
.home-buttons-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Melhorias de acessibilidade */
.home-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Suporte para modo escuro */
@media (prefers-color-scheme: dark) {
    .home-buttons-title {
        color: #ffffff;
    }
    
    .home-buttons-description {
        color: #cccccc;
    }
} 