/* ========================================
   ESTILOS ADICIONAIS - Mão a Mão
   ======================================== */

/* Correção do Layout Flexbox */
header {
    flex-shrink: 0;
}

nav {
    flex-shrink: 0;
}

main {
    flex: 1 0 auto;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

/* Carousel */
.carousel-img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 1rem;
}

/* Team Members */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Comments */
.comment-card {
    border-left: 4px solid #0d6efd;
}

.comment-card:hover {
    border-left-color: #6ea8fe;
}

/* Social Buttons */
.social-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Timeline */
.timeline-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Team Member Cards */
.team-member-card:hover {
    transform: translateY(-10px);
}

.member-avatar i {
    transition: transform 0.5s ease;
}

.team-member-card:hover .member-avatar i {
    transform: scale(1.2) rotate(360deg);
}

/* Tech Cards */
.tech-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-15px);
}

.tech-card i {
    transition: transform 0.5s ease;
}

.tech-card:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Espaçamento adicional para seções */
section:last-of-type {
    margin-bottom: 3rem;
}

/* Garantir espaço antes do footer */
main.container {
    margin-bottom: 3rem;
}

/* Prevenir sobreposição */
.card:last-child,
.row:last-child {
    margin-bottom: 2rem;
}

/* Footer sempre no final */
body {
    position: relative;
    padding-bottom: 0;
}

footer {
    clear: both;
    position: relative;
}

/* Admin page - espaçamento confortável */
.admin-page main {
    min-height: calc(100vh - 400px);
}

/* Última seção do admin */
#mensagens {
    margin-bottom: 3rem !important;
}

/* Cards de comentários no admin */
.table-responsive {
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }

    .hero-section {
        padding: 2rem 0;
    }

    section:last-of-type {
        margin-bottom: 2rem;
    }

    main.container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-img {
        height: 250px;
    }

    section:last-of-type {
        margin-bottom: 1.5rem;
    }

    main.container {
        margin-bottom: 1.5rem;
    }
}
