/* Estilos para o sistema de tabs da página Quem Somos */

/* Container principal das tabs - sem fundo */
.tabs-container {
    background: transparent;
}

/* Navegação das tabs em formato chips */
.tabs-navigation {
    background: transparent;
    padding: 0;
}

.tabs-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estado padrão dos chips */
.tab-button {
    color: #3b82f6;
    background: white;
    border: 2px solid #3b82f6;
}

.tab-button:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
}

.tab-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Estado ativo dos chips */
.tab-button.active {
    color: white;
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
}

.tab-button.active:active {
    transform: scale(0.95) translateY(-2px);
}

.tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Conteúdo das tabs */
.tabs-content {
    padding: 2rem;
}

.tab-content {
    animation: fadeInUp 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards de colaboradores */
.colaborador-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.colaborador-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Grid de categorias */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: linear-gradient(135deg, #f8fafc, white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* Responsividade para chips */
@media (max-width: 768px) {
    .tabs-nav-list {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-height: 2.5rem;
    }
    
    .tabs-content {
        padding: 1rem 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tabs-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .tab-button {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
        text-align: center;
        min-height: 3rem;
    }
}

@media (max-width: 480px) {
    .tabs-content {
        padding: 0.75rem 0;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .category-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Acessibilidade */
.tab-button[aria-selected="true"] {

    border-bottom-color: #3b82f6;
}

.tab-content[aria-hidden="true"] {
    display: none;
}

/* Estados de loading */
.tab-content.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tab-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias de performance */
.tab-content {
    will-change: opacity, transform;
}

.tab-button {
    will-change: color, border-color;
}

/* Print styles */
@media print {
    .tabs-navigation {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        animation: none;
    }
    
    .tabs-container {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
