/* assets/css/style.css */

/* --- AJUSTE DE SEGURANÇA CONTRA SCROLL HORIZONTAL --- */
/* Força o scroll horizontal a ser escondido no body/html, resolvendo problemas de largura inesperada em formulários. */
html, body {
    overflow-x: hidden;
}

/* --- 1. ANIMAÇÃO FADE IN (Carregamento Suave) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Correção para o conteúdo não ser escondido pela navbar fixed-bottom */
/* Aplica-se apenas em telas menores que o breakpoint 'md' (768px) */
@media (max-width: 767.98px) {
    /* Ajuste o valor '70px' conforme a altura final da sua navbar inferior */
    body {
        padding-bottom: 20px; 
    }
}

.fade-in-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0; /* Começa invisível para não piscar */
}

/* Delay em cascata para um efeito elegante */
.fade-in-card:nth-child(1) { animation-delay: 0.1s; }
.fade-in-card:nth-child(2) { animation-delay: 0.15s; }
.fade-in-card:nth-child(3) { animation-delay: 0.2s; }
.fade-in-card:nth-child(4) { animation-delay: 0.25s; }
.fade-in-card:nth-child(5) { animation-delay: 0.3s; }

/* --- 2. SCROLL HORIZONTAL (Estilo Stories/Netflix) --- */
.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
    padding-bottom: 10px; /* Espaço para a scrollbar não colar no card */
    cursor: grab; /* Ícone de mãozinha */
    scrollbar-width: none; /* Firefox: Esconde barra */
}

/* Esconde a barra de rolagem no Chrome/Safari/Edge */
.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.scrolling-wrapper:active {
    cursor: grabbing;
}

.scrolling-card {
    display: inline-block;
    width: 260px; /* Largura fixa ideal para mobile e desktop */
    white-space: normal; /* Garante que o texto dentro do card quebre linha */
    margin-right: 15px; /* Espaço entre os cards */
    vertical-align: top;
}

/* --- 3. CORREÇÃO ÍCONES PERFIL (Evita distorção oval) --- */
.icon-square {
    width: 45px;
    height: 45px;
    min-width: 45px; /* O segredo: impede o flexbox de esmagar o ícone */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- 4. UTILITÁRIOS GERAIS --- */
.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Ajuste para o badge do topo ficar bonito */
.badge-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}