/**
 * Breadcrumbs Modern Style
 * Design moderno e responsivo para navegação em breadcrumbs
 */

/* Container principal */
.breadcrumb-nav {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Efeito decorativo de fundo */
.breadcrumb-nav::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Container dos items */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Cada item do breadcrumb */
.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
    position: relative;
}

/* Separador entre items */
.breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #94a3b8;
    border-top: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin: 0 0.75rem;
}

/* Links */
.breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    position: relative;
    font-weight: 500;
}

/* Hover nos links */
.breadcrumb-item a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Efeito underline animado no hover */
.breadcrumb-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.breadcrumb-item a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Item ativo (página atual) */
.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumb-item.active span {
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ícone home para o primeiro item */
.breadcrumb-item:first-child a::before {
    content: '\f015';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    display: inline-block;
    transform: none;
    position: static;
    background: none;
    height: auto;
    width: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb {
        padding: 0 15px;
        gap: 0.25rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8125rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.5rem;
    }
    
    .breadcrumb-item a {
        padding: 0.125rem 0.25rem;
    }
    
    .breadcrumb-item.active span {
        padding: 0.125rem 0.5rem;
    }
    
    /* Esconde texto "Início" no mobile, deixa só o ícone */
    .breadcrumb-item:first-child a {
        font-size: 0;
    }
    
    .breadcrumb-item:first-child a::before {
        font-size: 0.875rem;
        margin-right: 0;
    }
}

/* Tema dark (opcional) */
@media (prefers-color-scheme: dark) {
    .breadcrumb-nav {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-bottom-color: #475569;
    }
    
    .breadcrumb-item {
        color: #94a3b8;
    }
    
    .breadcrumb-item a {
        color: #cbd5e1;
    }
    
    .breadcrumb-item a:hover {
        color: #60a5fa;
        background: rgba(96, 165, 250, 0.1);
    }
    
    .breadcrumb-item.active {
        color: #f1f5f9;
    }
    
    .breadcrumb-item.active span {
        background: #334155;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-item {
    animation: fadeInUp 0.5s ease forwards;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }