/* public/css/style.css - VERSÃO MODERNIZADA */

/* --- Estilos Gerais --- */
body {
    padding-top: 130px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f6; /* Um fundo um pouco mais suave */
}

/* --- Estilos do Header (sem alterações) --- */
.top-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    z-index: 1031;
    height: 79px;
}
.top-bar img { height: 60px; margin-right: 15px; }
.navbar-custom {
    background-color: #900000;
    top: 79px;
    z-index: 1030;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link { color: #fff !important; }
.navbar-custom .nav-link:hover { color: #ccc !important; }

/* --- Estilos do Conteúdo Principal --- */
.container.mt-4 {
    flex: 1;
}

/* --- Estilos para feedback visual --- */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.custom-notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- NOVOS ESTILOS PARA A VITRINE DE PROJETOS (index.php) --- */

/* 1. Layout em Grade (Grid) */
.project-grid {
    display: grid;
    /* Cria colunas responsivas: no mínimo 220px de largura, preenchendo o espaço.
       Em telas grandes, isso resultará em 4 ou 5 colunas. */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem; /* Espaçamento entre os cartões */
}

/* 2. Novo Estilo do Cartão */
.project-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Garante que a imagem não vaze das bordas arredondadas */
    position: relative; /* Necessário para o overlay */
    opacity: 0; /* Começa invisível para a animação de entrada */
    transform: translateY(20px); /* Começa um pouco abaixo para a animação */
    animation: fadeInUp 0.5s ease forwards;
}

/* Animação de entrada dos cartões */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
}
.card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 1rem;
    background-color: #fff;
}

.card-title-modern {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-semester {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 3. Overlay que aparece no hover */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-progress .progress-bar {
    color: rgba(0,0,0,0.5); /* Sombra no texto da barra para melhor leitura */
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}
.overlay-details-btn {
    align-self: flex-end; /* Alinha o botão à direita */
    margin-top: 0.5rem;
}


/* --- Estilos do Footer (sem alterações) --- */
.footer {
    color: #f8f9fa !important;
    margin-top: auto;
}
.footer .text-muted {
    color: #ced4da !important;
}